2 . $
(dirname $0)/common.sh
7 echo "ERROR: '$DIR' already exists"
11 try_python
"$(which python)" "$DIR"
13 find $DIR -name '*.py[co]' |
xargs rm
14 PYTHONVER
=$
(python
-c 'import sys; sys.stdout.write(sys.version[:3])')
19 if [ ! -e python
$i ]; then
20 ln -s python
$PYTHONVER python
$i
25 rsync
-avr $DIR/ $BASENAME/ &&
26 tar czf
$FILE $BASENAME/ &&
29 if [ -d $HOME/htdocs
/ugit
/releases
]; then
30 mv -v $FILE $HOME/htdocs
/ugit
/releases