lang
[phpmyadmin/crack.git] / scripts / create-release.sh
blobb86301aab079f50d72606b9201ec5def93dde1a2
1 #!/bin/sh
3 # $Id$
5 # 2003-01-17, rabus@users.sourceforge.net:
6 # - Changed the CVS hostname to cvs1 because cvs1.sourceforge.net is now blocked
7 # for the SF shell servers, too. Note: The script now works on the SF shell
8 # servers ONLY!
10 # 2002-11-22, rabus@users.sourceforge.net:
11 # - changed the CVS server dns to cvs1.sourceforge.net
12 # (cvs.phpmyadmin.sourceforge.net does not work at the SF shell anymore).
14 # 2002-10-03, rabus@users.sourceforge.net:
15 # - more detailed instructions
17 # 2002-09-08, robbat2@users.sourceforge.net:
18 # - Tweaked final instruction list
20 # 2002-06-17, lem9@users.sourceforge.net:
21 # - I option to tar for bzip2 is deprecated, use j
23 # 2002-27-04, loic@phpmyadmin.net:
24 # - added the cvs branch feature
26 # 2001-08-08, swix@users.sourceforge.net:
27 # - created script
28 # - added release todo list
32 if [ $# == 0 ]
33 then
34 echo "Usage: create-release.sh version from_branch"
35 echo " (no spaces allowed!)"
36 echo ""
37 echo "Example: create-release.sh 2.2.7-rc1 v2_2_7-branch"
38 exit 65
41 if [ $# == 1 ]
42 then
43 branch=''
45 if [ $# == 2 ]
46 then
47 branch="-r $2"
51 cat <<END
53 Please ensure you have:
54 1. incremented rc count or version in CVS :
55 - in libraries/defines_php.lib.php3 the line
56 " define('PMA_VERSION', '$1'); "
57 - in Documentation.html the 2 lines
58 " <title>phpMyAdmin $1 - Documentation</title> "
59 " <h1>phpMyAdmin $1 Documentation</h1> "
60 - in translators.html
61 2. built the new "Documentation.txt" version using:
62 lynx --dont_wrap_pre --nolist --dump Documentation.html > Documentation.txt
63 3. synchronized the language files:
64 cd lang
65 ./sync_lang.sh
66 and checked all language files are valid (use
67 the "./scripts/check_lang.php3" script to do it).
69 Continue (y/n)?
70 END
71 printf "\a"
72 read do_release
74 if [ $do_release != 'y' ]
75 then
76 exit
80 if [ -e cvs ];
81 then
82 mv cvs cvs-`date +%s`
84 mkdir cvs
85 cd cvs
86 echo "Press [ENTER]!"
87 cvs -d:pserver:anonymous@cvs1:/cvsroot/phpmyadmin login
88 cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/phpmyadmin co -P $branch phpMyAdmin
90 date > phpMyAdmin/RELEASE-DATE-$1
91 mv phpMyAdmin phpMyAdmin-$1
92 zip -9 -r phpMyAdmin-$1-php3.zip phpMyAdmin-$1
93 tar cvzf phpMyAdmin-$1-php3.tar.gz phpMyAdmin-$1
94 tar cvjf phpMyAdmin-$1-php3.tar.bz2 phpMyAdmin-$1
95 cd phpMyAdmin-$1
96 ./scripts/extchg.sh php3 php
97 cd ..
98 zip -9 -r phpMyAdmin-$1-php.zip phpMyAdmin-$1
99 tar cvzf phpMyAdmin-$1-php.tar.gz phpMyAdmin-$1
100 tar cvjf phpMyAdmin-$1-php.tar.bz2 phpMyAdmin-$1
102 echo ""
103 echo ""
104 echo ""
105 echo "Files:"
106 echo "------"
108 ls -la *.gz *.zip *.bz2
109 cd ..
110 chmod -R 775 cvs
113 cat <<END
116 Todo now:
117 ---------
118 1. tag the cvs tree with the new revision number for a plain release or a
119 release candidate
120 2. upload the files to SF:
121 ftp upload.sourceforge.net
122 cd incoming
123 binary
124 mput cvs/*.gz *.zip *.bz2
125 3. add files to SF files page (cut and paste changelog since last release)
126 4. add SF news item to phpMyAdmin project
127 5. update the download page: /home/groups/p/ph/phpmyadmin/htdocs
128 6. announce release on freshmeat (http://freshmeat.net/projects/phpmyadmin/)
129 7. send a short mail (with list of major changes) to
130 phpmyadmin-devel@lists.sourceforge.net
131 phpmyadmin-news@lists.sourceforge.net
132 phpmyadmin-users@lists.sourceforge.net
133 8. increment rc count or version in CVS :
134 - in libraries/defines_php.lib.php3 the line
135 " define('PHPMYADMIN_VERSION', '2.2.2-rc1'); "
136 - in Documentation.html the 2 lines
137 " <title>phpMyAdmin 2.2.2-rc1 - Documentation</title> "
138 " <h1>phpMyAdmin 2.2.2-rc1 Documentation</h1> "
139 - in translators.html
140 9. the end :-)
144 # Removed due to not needed thanks to clever scripting by Robbat2
145 # 9. update the demo subdirectory:
146 # - in htdocs, cvs update phpMyAdmin
147 # - and don't forget to give write rights for the updated scripts to the
148 # whole group