howto_release.txt 7.3 KB

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