debian: ugit is now debianized
[ugit.git] / scripts / mktar.sh
blobd31acd520f5a2eef35e5081042a8bd6f2639148d
1 #!/bin/sh
2 . $(dirname $0)/common.sh
3 BASENAME=ugit-$VERSION
4 FILE=$BASENAME.tar.gz
5 DIR=installroot
6 if [ -d $DIR ]; then
7 echo "ERROR: '$DIR' already exists"
8 exit -1
9 fi
11 try_python "$(which python)" "$DIR"
13 rsync -avr $DIR/ $BASENAME/ &&
14 tar czf $FILE $BASENAME/ &&
15 rm -rf $DIR $BASENAME
17 if [ -d $HOME/htdocs/ugit/releases ]; then
18 mv -v $FILE $HOME/htdocs/ugit/releases