howto_release.txt 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. How to release GRASS binaries and source code
  2. $Date$
  3. Note: This text contains *some* rules only applicable to the
  4. development coordinators at CEA (currently Markus Neteler).
  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 (basically at FEM, Italy)
  12. - svn up
  13. - check if
  14. ( cd doc/raster/r.example/ ; make )
  15. ( cd doc/vector/v.example/ ; make )
  16. still compile; fix otherwise
  17. - make distclean
  18. - cleanup rubbish:
  19. rm -f locale/templates/*.pot
  20. find . -name '*~' | xargs rm
  21. find . -name '*.bak' | xargs rm
  22. find . -name '.#*' | xargs rm
  23. find . -name '*.orig' | xargs rm
  24. find . -name '*.rej' | xargs rm
  25. find . -name '*.o' | xargs rm
  26. chmod -R a+r *
  27. svn status
  28. - Create release branch (only if not yet existing)
  29. - Update VERSION file to release version:
  30. vim include/VERSION
  31. #example:
  32. 7
  33. 0
  34. 0RC1
  35. 2010
  36. rm -f include/VERSION~
  37. #version:
  38. MAJOR=`cat include/VERSION | head -1 | tail -1`
  39. MINOR=`cat include/VERSION | head -2 | tail -1`
  40. RELEASE=`cat include/VERSION | head -3 | tail -1`
  41. VERSION=${MAJOR}.${MINOR}.${RELEASE}
  42. echo $VERSION
  43. svn ci -m"GRASS $VERSION" include/VERSION
  44. svn up
  45. o Create Changelog file on release branch:
  46. # http://ch.tudelft.nl/~arthur/svn2cl/
  47. svn2cl
  48. mv ChangeLog ChangeLog_$VERSION
  49. head ChangeLog_$VERSION
  50. gzip ChangeLog_$VERSION
  51. o Tag release (http://trac.osgeo.org/grass/browser/grass/tags):
  52. http://svnbook.red-bean.com/en/1.4/svn.branchmerge.tags.html
  53. TODAY=`date +"%Y%m%d"`
  54. RELEASETAG=release_${TODAY}_grass_${MAJOR}_${MINOR}_${RELEASE}
  55. echo $RELEASETAG
  56. URL=https://svn.osgeo.org/grass
  57. svn copy $URL/grass/branches/releasebranch_7_0 \
  58. $URL/grass/tags/$RELEASETAG \
  59. -m "Tagging release grass_${MAJOR}_${MINOR}_${RELEASE}"
  60. o create source package (in the source directory):
  61. echo grass-${VERSION}
  62. mkdir grass-${VERSION}
  63. mv * grass-${VERSION}/
  64. # do not include the debian control files:
  65. mv grass-${VERSION}/debian .
  66. # create the package:
  67. tar cvfzh grass-${VERSION}.tar.gz grass-${VERSION}/* --exclude=.svn
  68. # restore src code location:
  69. mv ./grass-${VERSION}/* .
  70. rmdir ./grass-${VERSION}
  71. # Calculating MD5 sum:
  72. md5sum grass-${VERSION}.tar.gz > grass-${VERSION}.md5sum
  73. o reset include/VERSION file to SVN version:
  74. vim include/VERSION
  75. #example
  76. 7
  77. 0
  78. 0svn
  79. 2010
  80. rm -f include/VERSION~
  81. svn ci -m"back to SVN" include/VERSION
  82. o Store the source tarball (twice) in (use scp -p FILES grass:):
  83. SERVER1=grass.osgeo.org:/osgeo/grass/grass-cms/grass$MAJOR$MINOR/source/
  84. SERVER2=download.osgeo.org:/osgeo/download/grass/grass$MAJOR$MINOR/source/
  85. echo $SERVER1
  86. echo $SERVER2
  87. along with associated files:
  88. scp -p grass-$VERSION.* AUTHORS COPYING ChangeLog_$VERSION.gz \
  89. INSTALL REQUIREMENTS.html SUBMITTING SUBMITTING_DOCS \
  90. SUBMITTING_PYTHON SUBMITTING_SCRIPTS neteler@$SERVER1
  91. scp -p grass-$VERSION.* AUTHORS COPYING ChangeLog_$VERSION.gz \
  92. INSTALL REQUIREMENTS.html SUBMITTING SUBMITTING_DOCS \
  93. SUBMITTING_PYTHON SUBMITTING_SCRIPTS neteler@$SERVER2
  94. o update web site to new version: CMS
  95. - News section
  96. - http://grass.osgeo.org/download/software/
  97. - http://grass.osgeo.org/download/software/sources/
  98. - http://grass.osgeo.org/grass64/ <- to be moved to CMS
  99. - http://grass.osgeo.org/home/history/releases/
  100. - http://grass.osgeo.org/development/svn/svn-tags/ (add tag): echo $RELEASETAG
  101. write announcement
  102. - store in trac: http://trac.osgeo.org/grass/wiki/Release/6.XX.YY-News
  103. - store in Web as announces/announce_grass$MAJOR$MINOR$RELEASE.html <- how? with protected PHP upload page?
  104. o upload user HTML manual in case of *final release* from compiled English
  105. version at (warning: needs stuff to be compiled).
  106. - download new source code package, compile with most settings
  107. - cd dist.$ARCH/docs/html
  108. echo www/grass$MAJOR$MINOR/manuals/html$MAJOR${MINOR}_user/
  109. scp -r * neteler@grass.osgeo.org:/osgeo/grass/grass-cms/grass$MAJOR$MINOR/manuals/html$MAJOR${MINOR}_user/
  110. scp -r * neteler@download.osgeo.org:/osgeo/download/grass/grass$MAJOR$MINOR/manuals/html$MAJOR${MINOR}_user/
  111. o stable release: update cronjob 'cron_grass_HEAD_src_snapshot.sh' to next but one
  112. release tag for the differences
  113. 2. Tell others about it:
  114. * If release candidate:
  115. - <grass-announce@lists.osgeo.org>
  116. - <grass-dev@lists.osgeo.org>
  117. * If official release:
  118. - publish related announcement press release at:
  119. Our GRASS web site: /announces/
  120. Note: DON'T use relative links there
  121. Our main mailing lists:
  122. http://lists.osgeo.org/mailman/listinfo/grass-announce
  123. <grass-announce@lists.osgeo.org>
  124. http://lists.osgeo.org/mailman/listinfo/grass-dev
  125. <grass-dev@lists.osgeo.org>
  126. http://lists.osgeo.org/mailman/listinfo/grassuser
  127. <grass-user@lists.osgeo.org>
  128. http://lists.osgeo.org/mailman/listinfo/wingrass
  129. <wingrass@lists.osgeo.org>
  130. DebianGIS: <debian-gis@lists.debian.org>
  131. FreeGIS: <freegis-list@intevation.de>
  132. Geowanking: <geowanking@lists.burri.to>
  133. OSGeo.org: <news_item@osgeo.org>
  134. Email:
  135. http://www.gis-news.de/ (franz-josef.behr@gismngt.de)
  136. http://www.gisdevelopment.net (news@gisdevelopment.net)
  137. http://spatialnews.geocomm.com/submitnews.html (not free any more, convince editor@geocomm.com)
  138. redazione@geoforus.it
  139. mfeilner@linuxnewmedia.de
  140. info@harzer.de
  141. info@j-geoinfo.net
  142. pr@geocomm.com
  143. editor-geo@geoconnexion.com
  144. Web:
  145. https://plus.google.com/u/0/communities/111147786674687562495 (G+ GRASS GIS community)
  146. http://slashgeo.org/submit.pl
  147. http://freshmeat.net/projects/grass/?highlight=GRASS (update, MN)
  148. http://linuxtoday.com/contribute.php3
  149. https://www.osor.eu/projects/grassgis (update, MN)
  150. https://forge.osor.eu/news/submit.php?group_id=44 (submit news, MN)
  151. http://www.macnn.com/contact/newstips/1
  152. http://www10.giscafe.com/submit_material/submit_options.php#Press (MN)
  153. http://www.freegis.org (update, MN)
  154. http://www.directionsmag.com/pressreleases/ (News -> Post Press Release)
  155. http://www.gnu.org/directory/science/geography/grass.html
  156. http://www.kde-apps.org/content/show.php?content=19776
  157. http://www.opendesktop.org/content/show.php?content=19776
  158. http://news.eoportal.org/share_news.html (MN)
  159. -> Share your news with the EO community
  160. http://www.osdir.com/Downloads+index-req-viewsdownload-sid-206.phtml
  161. http://groups.google.com/group/Remote-Sensing-GIS-for-a-New-World
  162. http://groups.google.com/group/comp.infosystems.gis
  163. http://www.heise.de/software/download/edit_7105 (update, MN)
  164. See also: http://grass.osgeo.org/wiki/Contact_Databases
  165. ... anywhere else? Please add here.
  166. ###########################################
  167. (B) HOWTO create a branch
  168. 1. see SVN book:
  169. http://svnbook.red-bean.com/en/1.1/ch04s07.html
  170. GRASS 7.0 release branch:
  171. BRANCH=releasebranch_7_0
  172. URL=https://svn.osgeo.org/grass
  173. svn copy $URL/grass/trunk \
  174. $URL/grass/branches/$BRANCH \
  175. -m "Development branch for GRASS 7.0.x"
  176. Switching current local copy to above development branch:
  177. (http://svnbook.red-bean.com/en/1.1/ch04s05.html)
  178. cd /path/to/your/local/copy/trunk
  179. svn switch https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0 .