home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / phptriad / phptriad2-2-1.exe / htdocs / phpmyadmin / scripts / create-release.sh next >
Linux/UNIX/POSIX Shell Script  |  2002-01-05  |  3KB  |  101 lines

  1. #!/bin/sh
  2. #
  3. # $Id: create-release.sh,v 1.10 2002/01/05 17:21:45 loic1 Exp $ 
  4. #
  5. # 2001-08-08, swix@users.sourceforge.net:
  6. # - created script
  7. # - added release todo list
  8. #
  9.  
  10. if [ $# != 1 ]
  11. then
  12.   echo "Usage: create-release.sh version"
  13.   echo "  (no spaces allowed!)"
  14.   echo ""
  15.   echo "Example: create-release.sh 2.2.2-rc1"
  16.   exit
  17. fi
  18.  
  19.  
  20. cat <<END
  21.  
  22. Please ensure you have:
  23.   1. incremented rc count or version in CVS :
  24.      - in libraries/defines.lib.php3 the line
  25.           " define('PHPMYADMIN_VERSION', '$1'); "
  26.      - in Documentation.html the line
  27.           " <h1>phpMyAdmin $1 Documentation</h1> "
  28.   2. built the new "Documentation.txt" version using the Lynx "print" command
  29.      on the "Documentation.html" file.
  30.  
  31. Continue (y/n)?
  32. END
  33. printf "\a"
  34. read do_release
  35.  
  36. if [ $do_release != 'y' ]
  37. then
  38.   exit
  39. fi
  40.  
  41.  
  42. (mv cvs cvs-`date +%s`)
  43. mkdir cvs
  44. cd cvs
  45. echo "Press [ENTER]!"
  46. cvs -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin login
  47. cvs -z3 -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin co phpMyAdmin
  48.  
  49. date > phpMyAdmin/RELEASE-DATE-$1
  50. mv phpMyAdmin phpMyAdmin-$1
  51. zip -9 -r phpMyAdmin-$1-php3.zip phpMyAdmin-$1
  52. tar cvzf phpMyAdmin-$1-php3.tar.gz phpMyAdmin-$1
  53. tar cvIf phpMyAdmin-$1-php3.tar.bz2 phpMyAdmin-$1
  54. cd phpMyAdmin-$1
  55. ./scripts/extchg.sh php3 php
  56. cd ..
  57. zip -9 -r phpMyAdmin-$1-php.zip phpMyAdmin-$1
  58. tar cvzf phpMyAdmin-$1-php.tar.gz phpMyAdmin-$1
  59. tar cvIf phpMyAdmin-$1-php.tar.bz2 phpMyAdmin-$1
  60.  
  61. echo ""
  62. echo ""
  63. echo ""
  64. echo "Files:"
  65. echo "------"
  66.  
  67. ls -la *.gz *.zip *.bz2
  68. cd ..
  69. chmod -R 775 cvs
  70.  
  71.  
  72. cat <<END
  73.  
  74.  
  75. Todo now:
  76. ---------
  77.  1. tag the cvs tree with the new revision number for a plain release or a
  78.     release candidate
  79.  2. upload the files to SF:
  80.         ftp upload.sourceforge.net
  81.         cd incoming
  82.         mput cvs/*.gz *.zip *.bz2
  83.  3. add files to SF files page (cut and paste changelog since last release)
  84.  4. add SF news item to phpMyAdmin project
  85.  5. update the download page: /home/groups/p/ph/phpmyadmin/htdocs
  86.  6. announce release on freshmeat (http://freshmeat.net/projects/phpmyadmin/)
  87.  7. announce release on http://phpwizard.net/phorum/list.php?f=1
  88.  8. send a short mail (with list of major changes) to 
  89.         phpmyadmin-devel@lists.sourceforge.net
  90.         phpmyadmin-news@lists.sourceforge.net
  91.         phpmyadmin-users@lists.sourceforge.net
  92.  9. increment rc count or version in CVS :
  93.         - in libraries/defines.lib.php3 the line
  94.               " define('PHPMYADMIN_VERSION', '2.2.2-rc1'); "
  95.         - in Documentation.html the line
  96.               " <h1>phpMyAdmin 2.2.2-rc1 Documentation</h1> "
  97. 10. the end :-)
  98.  
  99. END
  100.  
  101.