From: hackbard Date: Wed, 21 Jul 2004 15:03:52 +0000 (+0000) Subject: adapted make_tar script X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=acf2d92874d97ae46d8903d141ac80d00f4bd0af;p=hdw-linux%2Fhdw-linux.git adapted make_tar script --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 0cbe1b2..efa6f9c 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,5 +1,6 @@ *) 2004-07-21 +- adapted make_tar.sh script - fixed firefox and mozilla config typo ############################################################################ diff --git a/misc/internal/make_tar.sh b/misc/internal/make_tar.sh index 65f2672..e6dfdfc 100755 --- a/misc/internal/make_tar.sh +++ b/misc/internal/make_tar.sh @@ -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" - -