From: hackbard Date: Wed, 21 Jul 2004 15:27:40 +0000 (+0000) Subject: improved make_tar.sh X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=67dcc62c70801a90e1b44df03a772f90652fa169;p=hdw-linux%2Fhdw-linux.git improved make_tar.sh --- diff --git a/misc/internal/make_tar.sh b/misc/internal/make_tar.sh index e6dfdfc..8d148bf 100755 --- a/misc/internal/make_tar.sh +++ b/misc/internal/make_tar.sh @@ -16,7 +16,7 @@ fi rm -f hdw-linux-${version}.tar.bz2 rm -rf hdw-linux -cvs -d:pserver:anonymous@right-hand:/hdw-linux co hdw-linux +cvs -d:pserver:anonymous@cvs.hackdaworld.dyndns.org:/hdw-linux co hdw-linux && mv hdw-linux hdw-linux-${version} ; cd hdw-linux-${version} rm -rf CVS rm -rf */CVS @@ -28,8 +28,15 @@ rm -rf */*/*/*/*/CVS cd .. tar cvf hdw-linux-${version}.tar hdw-linux-${version} bzip2 hdw-linux-${version}.tar -scp hdw-linux-${version}.tar.bz2 \ -www.hackdaworld.dyndns.org:/chroot/www/htdocs/download/hdw-linux/hdw-linux-$version/snapshot/ +myip=`ifconfig eth0 | grep inet\ addr | awk '{ print $2 }' | \ + awk -F: '{ print $2 }'` +if [ "$myip" = "192.168.10.24" ] ; then + scp hdw-linux-${version}.tar.bz2 \ + www.hackdaworld.dyndns.org:/chroot/www/htdocs/download/hdw-linux/hdw-linux-$version/snapshot/ +else + scp -P 1822 hdw-linux-${version}.tar.bz2 \ + hackdaworld.dyndns.org:/chroot/www/htdocs/download/hdw-linux/hdw-linux-$version/snapshot/ +fi scp hdw-linux-${version}.tar.bz2 \ zirkelfr@everest.physik.uni-augsburg.de:~/public_html/download/hdw-linux/hdw-linux-${version}.tar.bz2 rm -rf hdw-linux-${version}