#!/bin/sh # # $Id$ # # 2002-11-22, rabus@users.sourceforge.net: # - changed the CVS server dns to cvs1.sourceforge.net # (cvs.phpmyadmin.sourceforge.net does not work at the SF shell anymore). # # 2002-10-03, rabus@users.sourceforge.net: # - more detailed instructions # # 2002-09-08, robbat2@users.sourceforge.net: # - Tweaked final instruction list # # 2002-06-17, lem9@users.sourceforge.net: # - I option to tar for bzip2 is deprecated, use j # # 2002-27-04, loic@phpmyadmin.net: # - added the cvs branch feature # # 2001-08-08, swix@users.sourceforge.net: # - created script # - added release todo list # if [ $# == 0 ] then echo "Usage: create-release.sh version from_branch" echo " (no spaces allowed!)" echo "" echo "Example: create-release.sh 2.2.7-rc1 v2_2_7-branch" exit 65 fi if [ $# == 1 ] then branch='' fi if [ $# == 2 ] then branch="-r $2" fi cat <phpMyAdmin $1 - Documentation " "

phpMyAdmin $1 Documentation

" - in translators.html 2. built the new "Documentation.txt" version using: lynx --nolist --dump Documentation.html > Documentation.txt 3. synchronized the language files: cd lang ./sync_lang.sh and checked all language files are valid (use the "./scripts/check_lang.php3" script to do it). Continue (y/n)? END printf "\a" read do_release if [ $do_release != 'y' ] then exit fi if [ -e cvs ]; then mv cvs cvs-`date +%s` fi mkdir cvs cd cvs echo "Press [ENTER]!" cvs -d:pserver:anonymous@cvs1.sourceforge.net:/cvsroot/phpmyadmin login cvs -z3 -d:pserver:anonymous@cvs1.sourceforge.net:/cvsroot/phpmyadmin co -P $branch phpMyAdmin date > phpMyAdmin/RELEASE-DATE-$1 mv phpMyAdmin phpMyAdmin-$1 zip -9 -r phpMyAdmin-$1-php3.zip phpMyAdmin-$1 tar cvzf phpMyAdmin-$1-php3.tar.gz phpMyAdmin-$1 tar cvjf phpMyAdmin-$1-php3.tar.bz2 phpMyAdmin-$1 cd phpMyAdmin-$1 ./scripts/extchg.sh php3 php cd .. zip -9 -r phpMyAdmin-$1-php.zip phpMyAdmin-$1 tar cvzf phpMyAdmin-$1-php.tar.gz phpMyAdmin-$1 tar cvjf phpMyAdmin-$1-php.tar.bz2 phpMyAdmin-$1 echo "" echo "" echo "" echo "Files:" echo "------" ls -la *.gz *.zip *.bz2 cd .. chmod -R 775 cvs cat <phpMyAdmin 2.2.2-rc1 - Documentation " "

phpMyAdmin 2.2.2-rc1 Documentation

" - in translators.html 9. the end :-) END # Removed due to not needed thanks to clever scripting by Robbat2 # 9. update the demo subdirectory: # - in htdocs, cvs update phpMyAdmin # - and don't forget to give write rights for the updated scripts to the # whole group