4 # vim: expandtab sw=4 ts=4 sts=4:
7 KITS
="all-languages english"
8 COMPRESSIONS
="zip-7z tbz tgz 7z"
13 echo " create-release.sh <version> [from_branch]"
14 echo " create-release.sh snapshot [sf]"
15 echo " (no spaces allowed!)"
18 echo " create-release.sh 2.9.0-rc1 branches/QA_2_9"
19 echo " create-release.sh 2.9.0 tags/RELEASE_2_9_0"
25 if [ "$1" = "snapshot" ] ; then
27 date_snapshot
=`date +%Y%m%d-%H%M%S`
30 if [ "$#" -ge 2 ] ; then
36 Please ensure you have:
37 1. incremented rc count or version in subversion :
38 - in libraries/Config.class.php PMA_Config::__constructor() the line
39 " \$this->set( 'PMA_VERSION', '$1' ); "
40 - in Documentation.html the 2 lines
41 " <title>phpMyAdmin $1 - Documentation</title> "
42 " <h1>phpMyAdmin $1 Documentation</h1> "
45 2. checked that all language files are valid (use
46 the "./scripts/check_lang.php" script to do it).
52 if [ "$do_release" != 'y' ]; then
57 if [ "$mode" = "snapshot" -a "$2" = "sf" ] ; then
59 cd /home
/groups
/p
/ph
/phpmyadmin
/htdocs
61 # Keep one previous version of the cvs directory
62 if [ -e svn-prev
] ; then
72 echo "Exporting repository from subversion"
74 svn
export -q https
://phpmyadmin.svn.sourceforge.net
/svnroot
/phpmyadmin
/$branch/phpMyAdmin
76 if [ $?
-ne 0 ] ; then
77 echo "Subversion checkout failed, bailing out"
82 LC_ALL
=C
date -u > phpMyAdmin
/RELEASE-DATE-
${target}
84 # Building Documentation.txt
85 LC_ALL
=C w3m
-dump phpMyAdmin
/Documentation.html
> phpMyAdmin
/Documentation.txt
87 # Remove test directory from package to avoid Path disclosure messages
88 # if someone runs /test/wui.php and there are test failures
89 rm -rf phpMyAdmin
/test
92 mv phpMyAdmin phpMyAdmin-
$target
97 name
=phpMyAdmin-
$target-$kit
98 cp -r phpMyAdmin-
$target $name
100 # Cleanup translations
101 cd phpMyAdmin-
$target-$kit
102 scripts
/lang-cleanup.sh
$kit
105 # Prepare distributions
106 for comp
in $COMPRESSIONS ; do
109 echo "Creating $name.tar"
110 tar cf
$name.
tar $name
111 if [ $comp = tbz
] ; then
112 echo "Creating $name.tar.bz2"
115 if [ $comp = tgz
] ; then
116 echo "Creating $name.tar.gz"
117 gzip -9c $name.
tar > $name.
tar.gz
122 echo "Creating $name.zip"
123 zip -q -9 -r $name.
zip $name
126 echo "Creating $name.zip"
127 7za a
-bd -tzip $name.
zip $name > /dev
/null
130 echo "Creating $name.7z"
131 7za a
-bd $name.7z
$name > /dev
/null
134 echo "WARNING: ignoring compression '$comp', not known!"
139 # Remove directory with current dist set
144 rm -rf phpMyAdmin-
${target}
146 if [ "$mode" != "snapshot" ]
156 ls -la *.gz
*.
zip *.bz2
*.7z
162 md5sum *.
{gz
,zip,bz2
,7z
} |
sed "s/\([^ ]*\)[ ]*\([^ ]*\)/md5sum['\2'] = '\1'/"
165 echo "Add these to website/data/md5sums.py in SVN"
172 1. tag the subversion tree with the new revision number for a plain release
173 or a release candidate:
174 version 2.7.0 gets two tags: RELEASE_2_7_0 and STABLE
175 version 2.7.1-rc1 gets RELEASE_2_7_1RC1 and TESTING
177 2. upload the files to SF (procedure explained on the sf.net Admin/File Releases page)
178 3. add files to SF files page (cut and paste changelog since last release)
179 4. add SF news item to phpMyAdmin project
181 - add MD5s to website/data/md5sums.py in SVN
182 6. announce release on freshmeat (http://freshmeat.net/projects/phpmyadmin/)
183 7. send a short mail (with list of major changes) to
184 phpmyadmin-devel@lists.sourceforge.net
185 phpmyadmin-news@lists.sourceforge.net
186 phpmyadmin-users@lists.sourceforge.net
188 Don't forget to update the Description section in the announcement,
189 based on Documentation.html.
191 8. increment rc count or version in subversion :
192 - in libraries/Config.class.php PMA_Config::__constructor() the line
193 " $this->set( 'PMA_VERSION', '2.7.1-dev' ); "
194 - in Documentation.html the 2 lines
195 " <title>phpMyAdmin 2.2.2-rc1 - Documentation</title> "
196 " <h1>phpMyAdmin 2.2.2-rc1 Documentation</h1> "
197 - in translators.html
199 9. add a group for bug tracking this new version, at
200 https://sourceforge.net/tracker/admin/index.php?group_id=23067&atid=377408&add_group=1
208 # Removed due to not needed thanks to clever scripting by Robbat2
209 # 9. update the demo subdirectory:
210 # - in htdocs, cvs update phpMyAdmin
211 # - and don't forget to give write rights for the updated scripts to the