diff --git a/scripts/create-release.sh b/scripts/create-release.sh index 62538436d..94f6fa491 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -2,6 +2,10 @@ # # $Id$ # +# 2004-04-16, lem9@users.sourceforge.net: +# - daily snapshot when called with first parameter "snapshot" +# - remove directory used for the checkout +# # 2003-11-18, nijel@users.sourceforge.net: # - switch php3 -> php # @@ -59,8 +63,25 @@ then branch="-r $2" fi +if [ $1 == "snapshot" ] +then + mode="snapshot" + date_snapshot=`date +%Y%m%d-%H%M%S` +fi -cat < phpMyAdmin/RELEASE-DATE-$1 -find phpMyAdmin \( -name .cvsignore -o -name CVS \) -print0 | xargs -0 rm -rf +LC_ALL=C date -u > phpMyAdmin/RELEASE-DATE-${target} + +# Olivier asked to keep those in the cvs release, to allow testers to use +# cvs update on it +if [ "$mode" != "snapshot" ] +then + find phpMyAdmin \( -name .cvsignore -o -name CVS \) -print0 | xargs -0 rm -rf +fi + find phpMyAdmin -type d -print0 | xargs -0 chmod 755 find phpMyAdmin -type f -print0 | xargs -0 chmod 644 find phpMyAdmin \( -name '*.sh' -o -name '*.pl' \) -print0 | xargs -0 chmod 755 @@ -117,13 +152,19 @@ find phpMyAdmin \( -name '*.sh' -o -name '*.pl' \) -print0 | xargs -0 chmod 755 lynx --dont_wrap_pre --nolist --dump phpMyAdmin/Documentation.html > phpMyAdmin/Documentation.txt # Renaming directory -mv phpMyAdmin phpMyAdmin-$1 + mv phpMyAdmin phpMyAdmin-$target # Building distribution kits -zip -9 -r phpMyAdmin-$1.zip phpMyAdmin-$1 -tar cvf phpMyAdmin-$1.tar phpMyAdmin-$1 -bzip2 -9kv phpMyAdmin-$1.tar -gzip -9v phpMyAdmin-$1.tar +zip -9 -r phpMyAdmin-${target}.zip phpMyAdmin-${target} +tar cvf phpMyAdmin-${target}.tar phpMyAdmin-${target} +bzip2 -9kv phpMyAdmin-${target}.tar +gzip -9v phpMyAdmin-${target}.tar + +# Cleanup +rm -rf phpMyAdmin-${target} + +if [ "$mode" != "snapshot" ] +then echo "" @@ -149,11 +190,6 @@ ls -l --block-size=k *.{gz,zip,bz2} | sed -r "s/[a-z-]+[[:space:]]+[0-9]+[[:spac echo echo "Add these to /home/groups/p/ph/phpmyadmin/htdocs/home_page/files.inc.php on sf" -cd .. -find cvs -type d -print0 | xargs -0 chmod 775 -find cvs -type f -print0 | xargs -0 chmod 664 - - cat <