howto_release.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. How to release GRASS GIS binaries and source code
  2. $Date$
  3. Note: This text contains *some* rules only applicable to the
  4. development coordinator (currently Markus Neteler, PSC Chair).
  5. ###########################################
  6. Contents
  7. (A) HOWTO create a release
  8. (B) HOWTO create a branch
  9. ###########################################
  10. (A) HOWTO create a release
  11. 1. Local work (done by release coordinator)
  12. - svn up
  13. - check if
  14. ( cd doc/raster/r.example/ ; make clean ; make )
  15. ( cd doc/vector/v.example/ ; make clean ; make )
  16. still compile; fix otherwise
  17. - Check that autoconf scripts are up-to-date (to do only in RC cycle!):
  18. rm -f config.guess config.sub
  19. wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess
  20. wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
  21. svn diff config.guess config.sub
  22. autoconf-2.13
  23. # check and submit to SVN:
  24. svn ci -m"config.guess + config.sub: updated from http://git.savannah.gnu.org/cgit/config.git/plain/" config.guess config.sub configure
  25. # test by running ./configure
  26. - make distclean
  27. - cleanup rubbish:
  28. rm -f locale/templates/*.pot
  29. rm -f locale/po/messages.mo
  30. find . -name '*~' | xargs rm
  31. find . -name '*.bak' | xargs rm
  32. find . -name '.#*' | xargs rm
  33. find . -name '*.orig' | xargs rm
  34. find . -name '*.rej' | xargs rm
  35. find . -name '*.o' | xargs rm
  36. find . -name '*.pyc' | xargs rm
  37. rm -f gui/wxpython/menustrings.py gui/wxpython/build_ext.pyc gui/wxpython/xml/menudata.xml gui/wxpython/xml/module_tree_menudata.xml
  38. chmod -R a+r *
  39. svn status
  40. - Create release branch (only if not yet existing)
  41. - Update VERSION file to release version:
  42. vim include/VERSION
  43. #example:
  44. 7
  45. 0
  46. 5RC1
  47. 2016
  48. rm -f include/VERSION~
  49. - Update OSGeo4W setup.hint file
  50. mswindows/osgeo4w/setup.hint
  51. for RC candidates use 'test' keyword
  52. for final version use 'curr' keyword
  53. #version:
  54. MAJOR=`cat include/VERSION | head -1 | tail -1`
  55. MINOR=`cat include/VERSION | head -2 | tail -1`
  56. RELEASE=`cat include/VERSION | head -3 | tail -1`
  57. VERSION=${MAJOR}.${MINOR}.${RELEASE}
  58. echo $VERSION
  59. svn ci -m"GRASS GIS $VERSION" include/VERSION mswindows/osgeo4w/setup.hint
  60. svn up
  61. o Create Changelog file on release branch:
  62. # http://ch.tudelft.nl/~arthur/svn2cl/
  63. svn2cl
  64. mv ChangeLog ChangeLog_$VERSION
  65. head ChangeLog_$VERSION
  66. gzip ChangeLog_$VERSION
  67. o Tag release (http://trac.osgeo.org/grass/browser/grass/tags):
  68. http://svnbook.red-bean.com/en/1.4/svn.branchmerge.tags.html
  69. TODAY=`date +"%Y%m%d"`
  70. RELEASETAG=release_${TODAY}_grass_${MAJOR}_${MINOR}_${RELEASE}
  71. echo $RELEASETAG
  72. URL=https://svn.osgeo.org/grass
  73. svn copy $URL/grass/branches/releasebranch_7_0 \
  74. $URL/grass/tags/$RELEASETAG \
  75. -m "Tagging release grass_${MAJOR}_${MINOR}_${RELEASE}"
  76. o create source package (in the source directory):
  77. echo grass-${VERSION}
  78. mkdir grass-${VERSION}
  79. mv * grass-${VERSION}/
  80. # do not include the debian control files:
  81. mv grass-${VERSION}/debian .
  82. # create the package:
  83. tar cvfzh grass-${VERSION}.tar.gz grass-${VERSION}/* --exclude=.svn
  84. # restore src code location:
  85. mv ./grass-${VERSION}/* .
  86. rmdir ./grass-${VERSION}
  87. # Calculating MD5 sum:
  88. md5sum grass-${VERSION}.tar.gz > grass-${VERSION}.md5sum
  89. o reset include/VERSION file to SVN version:
  90. vim include/VERSION
  91. #example
  92. 7
  93. 0
  94. 5svn
  95. 2016
  96. rm -f include/VERSION~
  97. svn ci -m"back to SVN" include/VERSION
  98. o Store the source tarball (twice) in (use scp -p FILES grass:):
  99. SERVER1=grass.osgeo.org:/var/www/grass/grass-cms/grass$MAJOR$MINOR/source/
  100. SERVER2=upload.osgeo.org:/osgeo/download/grass/grass$MAJOR$MINOR/source/
  101. echo $SERVER1
  102. echo $SERVER2
  103. # copy along with associated files:
  104. scp -p grass-$VERSION.* AUTHORS COPYING ChangeLog_$VERSION.gz \
  105. INSTALL REQUIREMENTS.html SUBMITTING neteler@$SERVER1
  106. scp -p grass-$VERSION.* AUTHORS COPYING ChangeLog_$VERSION.gz \
  107. INSTALL REQUIREMENTS.html SUBMITTING neteler@$SERVER2
  108. o update winGRASS related files
  109. - Update the winGRASS version
  110. grass-addons/tools/wingrass-packager/grass_packager_release.bat
  111. grass-addons/tools/wingrass-packager/grass_addons.sh
  112. grass-addons/tools/wingrass-packager/grass_copy_wwwroot.sh
  113. o update web site to new version: CMS
  114. - News section
  115. - http://grass.osgeo.org/download/software/
  116. - http://grass.osgeo.org/download/software/sources/
  117. - http://grass.osgeo.org/download/software/linux/
  118. - http://grass.osgeo.org/home/history/releases/
  119. - http://grass.osgeo.org/development/svn/svn-tags/ (add tag): echo $RELEASETAG
  120. write announcement
  121. - store in trac: http://trac.osgeo.org/grass/wiki/Release/7.XX.YY-News
  122. - update version in https://grasswiki.osgeo.org/wiki/GRASS-Wiki
  123. - store in Web as announces/announce_grass$MAJOR$MINOR$RELEASE.html <- how? with protected PHP upload page?
  124. full release:
  125. - update trac
  126. - milesstone/add next: https://trac.osgeo.org/grass/admin/ticket/milestones
  127. - add released version: https://trac.osgeo.org/grass/admin/ticket/versions
  128. o upload user HTML manual in case of *final release* from compiled English
  129. version at (warning: needs stuff to be compiled).
  130. - download new source code package, compile with most settings
  131. - cd dist.$ARCH/docs/html
  132. echo www/grass$MAJOR$MINOR/manuals/
  133. scp -r * neteler@grass.osgeo.org:/osgeo/grass/grass-cms/grass$MAJOR$MINOR/manuals/
  134. scp -r * neteler@upload.osgeo.org:/osgeo/download/grass/grass$MAJOR$MINOR/manuals/
  135. o stable release: update cronjob 'cron_grass_HEAD_src_snapshot.sh' on grass.osgeo.org to next but one
  136. release tag for the differences
  137. o Trac updates:
  138. - Add new release to https://trac.osgeo.org/grass/admin/ticket/versions
  139. - Set "complete" flag in https://trac.osgeo.org/grass/milestone/7.0.x --> Edit Milestone
  140. (this ideally batch-migrates assigned tickets to next milestone)
  141. - batch modify tickets, set to next milestone (update this query accordingly)
  142. https://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&milestone=7.0.4&milestone=7.0.5&group=status&col=id&col=summary&col=owner&col=type&col=priority&col=component&col=version&order=priority
  143. - under "Comment" add Field "Milestone" and set to next version
  144. - Select all shown tickets via Status: assigned/new/reopened
  145. - then "Change ticket" button
  146. - Only in case of new release branch
  147. Add Wiki Macro definitions for manual pages G7X:modulename
  148. - Edit: https://trac.osgeo.org/grass/wiki/InterMapTxt
  149. o WinGRASS notes:
  150. Update grass_packager_release.bat, eg.
  151. set MAJOR=7
  152. set MINOR=0
  153. set PATCH=5RC1
  154. Update addons (grass_addons.sh) rules, eg.
  155. compile $SVN_PATH/grass7 $GISBASE_PATH/grass705RC1 $ADDON_PATH/grass705RC1/addons
  156. Modify grass_copy_wwwroot.sh accordingly, eg.
  157. copy_addon 705RC1 7.0.5RC1
  158. o Launchpad notes:
  159. Create milestone and release: https://launchpad.net/grass/+series
  160. Upload tarball for created release
  161. Update daily recipe contents: https://code.launchpad.net/~grass/+recipe/grass70-release-daily
  162. 2. Tell others about it:
  163. * If release candidate:
  164. - <grass-announce@lists.osgeo.org>
  165. - <grass-dev@lists.osgeo.org>
  166. * If official release:
  167. - publish related announcement press release at:
  168. Our GRASS web site: /announces/
  169. Note: DON'T use relative links there
  170. Our main mailing lists:
  171. http://lists.osgeo.org/mailman/listinfo/grass-announce
  172. <grass-announce@lists.osgeo.org>
  173. http://lists.osgeo.org/mailman/listinfo/grass-dev
  174. <grass-dev@lists.osgeo.org>
  175. http://lists.osgeo.org/mailman/listinfo/grassuser
  176. <grass-user@lists.osgeo.org>
  177. DebianGIS: <debian-gis@lists.debian.org>
  178. FreeGIS: <freegis-list@intevation.de>
  179. Geowanking: <geowanking@geowanking.org>
  180. OSGeo.org: <news_item@osgeo.org>
  181. Email:
  182. info@osgeo.org
  183. http://www.gis-news.de/ (franz-josef.behr@gismngt.de)
  184. http://spatialnews.geocomm.com/submitnews.html (not free any more, convince editor@geocomm.com)
  185. redazione@geoforus.it
  186. mfeilner@linuxnewmedia.de
  187. info@harzer.de
  188. pr@geocomm.com
  189. editor-geo@geoconnexion.com
  190. Web:
  191. https://plus.google.com/u/0/communities/111147786674687562495 (G+ GRASS GIS community)
  192. http://linuxtoday.com/contribute.php3
  193. https://joinup.ec.europa.eu/software/grassgis/home (submit news, MN)
  194. http://www.macnn.com/contact/newstips/1
  195. http://www10.giscafe.com/submit_material/submit_options.php#Press (MN) --> Press releases
  196. http://www.freegis.org (update, MN)
  197. http://www.directionsmag.com/pressreleases/ (News -> Submit Press Release)
  198. http://directory.fsf.org/wiki/GRASS_%28Geographic_Resources_Analysis_Support_System%29
  199. http://www.kde-apps.org/content/show.php?content=19776
  200. http://www.opendesktop.org/content/show.php?content=19776
  201. https://news.eoportal.org/web/eoportal/share-your-news (MN)
  202. -> Share your news with the EO community
  203. http://www.heise.de/software/download/edit_7105 (update, MN)
  204. See also: http://grass.osgeo.org/wiki/Contact_Databases
  205. ... anywhere else? Please add here.
  206. ###########################################
  207. (B) HOWTO create a branch
  208. 1. see SVN book:
  209. http://svnbook.red-bean.com/en/1.1/ch04s07.html
  210. GRASS 7.0 release branch:
  211. BRANCH=releasebranch_7_0
  212. URL=https://svn.osgeo.org/grass
  213. svn copy $URL/grass/trunk \
  214. $URL/grass/branches/$BRANCH \
  215. -m "Development branch for GRASS 7.0.x"
  216. Switching current local copy to above development branch:
  217. (http://svnbook.red-bean.com/en/1.1/ch04s05.html)
  218. cd /path/to/your/local/copy/trunk
  219. svn switch https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0 .
  220. ----------
  221. Example: GRASS GIS 7.0 release branch creation
  222. svn copy https://svn.osgeo.org/grass/grass/trunk/ \
  223. https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0 \
  224. -m "Creating the GRASS GIS 7.0 release branch (development started in 04/2008, r31142)"