Skip to content
This repository
Newer
Older
100755 37 lines (26 sloc) 0.888 kb
818becc3 »
2011-05-19 adding new install script
1 #!/bin/bash
2
3 if [ "X$1" == "X" ]; then
4 echo "you must provide a target installation directory"
5 exit 1
6 fi
7
8 export LANTORRENT_HOME=$1
9
10 pylib=`python -c 'import sys; print sys.prefix'`
11
12 echo "Installing into the python libraries into $pylibs..."
13 echo "Installing wrapper scripts into $LANTORRENT_HOME"
14
15 mkdir -p $LANTORRENT_HOME/bin
16 mkdir -p $LANTORRENT_HOME/etc
17 dir=`dirname $0`
18 cd $dir
19
20 python setup.py install
21 if [ $? -ne 0 ]; then
22 exit 1
23 fi
24
25 ltrequest="$pylib/bin/ltrequest"
26 ltdaemon="$pylib/bin/ltdaemon"
27
28 sed "s^@PGMNAME@^$ltrequest^" etc/exe.in > $LANTORRENT_HOME/bin/lt-request.sh
29 sed "s^@PGMNAME@^$ltdaemon^" etc/exe.in > $LANTORRENT_HOME/bin/lt-daemon.sh
30
31 chmod 755 $LANTORRENT_HOME/bin/lt-request.sh
32 chmod 755 $LANTORRENT_HOME/bin/lt-daemon.sh
dd7fb902 »
2011-05-19 working out test suite issues
33
34 cp -r tests $LANTORRENT_HOME
35 cp etc/xinetd.conf.in $LANTORRENT_HOME/tests
36 cp etc/lantorrent.inet.in $LANTORRENT_HOME/tests
Something went wrong with that request. Please try again.