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
163 1. tag the subversion tree with the new revision number for a plain release
164 or a release candidate:
165 version 2.7.0 gets two tags: RELEASE_2_7_0 and STABLE
166 version 2.7.1-rc1 gets RELEASE_2_7_1RC1 and TESTING
168 2. prepare a phpMyAdmin-xxx-notes.html explaining in short the goal of
169 this release and paste into it the ChangeLog for this release
170 3. upload the files and the notes file to SF (procedure explained on the sf.net Project Admin/File Manager help page)
171 4. add SF news item to phpMyAdmin project
172 5. announce release on freshmeat (http://freshmeat.net/projects/phpmyadmin/)
173 6. send a short mail (with list of major changes) to
174 phpmyadmin-devel@lists.sourceforge.net
175 phpmyadmin-news@lists.sourceforge.net
176 phpmyadmin-users@lists.sourceforge.net
178 Don't forget to update the Description section in the announcement,
179 based on Documentation.html.
181 7. increment rc count or version in subversion :
182 - in libraries/Config.class.php PMA_Config::__constructor() the line
183 " $this->set( 'PMA_VERSION', '2.7.1-dev' ); "
184 - in Documentation.html the 2 lines
185 " <title>phpMyAdmin 2.2.2-rc1 - Documentation</title> "
186 " <h1>phpMyAdmin 2.2.2-rc1 Documentation</h1> "
187 - in translators.html
189 8. add a group for bug tracking this new version, at
190 https://sourceforge.net/tracker/admin/index.php?group_id=23067&atid=377408&add_group=1