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
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}