]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
improved make_tar.sh
authorhackbard <hackbard>
Wed, 21 Jul 2004 15:27:40 +0000 (15:27 +0000)
committerhackbard <hackbard>
Wed, 21 Jul 2004 15:27:40 +0000 (15:27 +0000)
misc/internal/make_tar.sh

index e6dfdfcb7bd6b67f3be09d672a57f344fa996541..8d148bf283e1b02ccae58e4714b5adcb61028286 100755 (executable)
@@ -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}