]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
adapted make_tar script
authorhackbard <hackbard>
Wed, 21 Jul 2004 15:03:52 +0000 (15:03 +0000)
committerhackbard <hackbard>
Wed, 21 Jul 2004 15:03:52 +0000 (15:03 +0000)
doc/CHANGELOG
misc/internal/make_tar.sh

index 0cbe1b28694a62a4bf28cc67ea207fb48511fdc5..efa6f9c7c6e719a804f45a5f1a5bb38cba40d3be 100644 (file)
@@ -1,5 +1,6 @@
 *) 2004-07-21
 
+- adapted make_tar.sh script
 - fixed firefox and mozilla config typo
 
 ############################################################################
index 65f2672fe895a75a23232f5d421425fd274eff0b..e6dfdfcb7bd6b67f3be09d672a57f344fa996541 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
@@ -8,41 +8,30 @@
 
 # make a tarball from the hdw sources
 if [ -z "$1" ] ; then 
-       version="0.3-dev"
+       version="cvs"
 else
-       version="$2"
+       version="$1"
 fi
 
-d_tag=`date | awk '{ print $6 "-" $2 "-" $3 }'`
-c_tag=`date | awk '{ print $4 }' | sed 's/:/-/g'`
-tag="-${d_tag}-${c_tag}"
-[ -z "`echo $version | grep 'dev'`" ] && tag=""
+rm -f hdw-linux-${version}.tar.bz2
+rm -rf hdw-linux
 
-if [ -f hdw-linux-${version}${tag}* ] ; then
-       echo "delete old tarball pls!"
-       exit 1
-fi
-
-rm -rf hdw-linux-${version}
-cvs -d:pserver:anonymous@right-hand:/hdw-linux co hdw-linux-${version}
-cd hdw-linux-${version}
-rm -r CVS
-rm -r */CVS
-rm -r */*/CVS
-rm -r */*/*/CVS
-rm -r */*/*/*/CVS
-rm -r */*/*/*/*/CVS
+cvs -d:pserver:anonymous@right-hand:/hdw-linux co hdw-linux
+mv hdw-linux hdw-linux-${version} ; cd hdw-linux-${version}
+rm -rf CVS
+rm -rf */CVS
+rm -rf */*/CVS
+rm -rf */*/*/CVS
+rm -rf */*/*/*/CVS
+rm -rf */*/*/*/*/CVS
 
 cd ..
-tar cvf hdw-linux-${version}${tag}.tar hdw-linux-${version}
-bzip2 hdw-linux-${version}${tag}.tar
-scp hdw-linux-${version}${tag}.tar.bz2 \
-right-hand:/chroot/www/htdocs/download/hdw-linux/hdw-linux-$version/snapshots/
-scp hdw-linux-${version}${tag}.tar.bz2 \
+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/
+scp hdw-linux-${version}.tar.bz2 \
 zirkelfr@everest.physik.uni-augsburg.de:~/public_html/download/hdw-linux/hdw-linux-${version}.tar.bz2
-#rm hdw-linux-${version}${tag}.tar.bz2
-rm -r hdw-linux-${version}
+rm -rf hdw-linux-${version}
 
 echo "done"
-
-