Code

Fix fetching of remote branches
[nagiosplug.git] / doc / RELEASING
index c5d81951e8f174cfd2b7b4c18e0f4942fc12f419..34bed9394dfcfbb0495180056428673323cc593e 100644 (file)
@@ -1,47 +1,64 @@
 NOTES ON RELEASING NEW VERSION OF NAGIOSPLUG
 
-svn update in main area
+NB: A copy of this document is located at:
+    http://nagiosplugins.org/node/96
+
+*** Pre-release
+git pull
 . tools/devmode, if feeling adventurous
 check compilation, check tinderbox screens
 
+*** Prepare and commit files
 Update BUGS, NEWS file
 Update AUTHORS if new members
-Update configure.in and package.def with version
-Run svn2cl (get from http://ch.tudelft.nl/~arthur/svn2cl):
-svn2cl.sh --break-before-msg --reparagraph -i http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk
+Update configure.in, package.def and NP-VERSION-GEN with version
+Run git2cl (get from http://josefsson.org/git2cl/):
+git2cl >Changelog
 commit BUGS NEWS configure.in package.def ChangeLog
 
-svn copy http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk 
-http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/tags/release-1.4.10
+*** Create new annotated tag
+git tag -a release-1.4.14 -m release-1.4.14
+
+*** Push the code and tag to origin
+git push origin master
+git push origin release-1.4.14
+
+*** Checkout new version
+rm -fr /tmp/nagioslug
+# If you need to checkout the tag, don't forget to "checkout master" later to
+# get back to your development branch:
+git checkout tags/release-1.4.14
+# Beware: the trailing slash of --prefix is REQUIRED
+git checkout-index --prefix=/tmp/nagioslug/ -a
 
-checkout new version:
-cd /tmp
-rm -fr nagiosplug
-svn export http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/tags/release-1.4.10 nagiosplug
-cd nagiosplug
+*** Build the tarball
+cd /tmp/nagioslug
 tools/setup
 ./configure
 make dist
 
-sftp upload.sf.net
-cd uploads
+*** Upload generated tarball to sourceforge
+sftp frs.sourceforge.net
+SF username and password
+cd /uploads
 put file
 
 SF -> Submit News about release. Make sure it is called "Nagios Plugins" (with those caps)
 Link to download at http://sourceforge.net/project/showfiles.php?group_id=29880
 Include contents of NEWS for this release
-List all people on team involved. 
+List all people on team involved.
 Add acknowledgement to contributors
 Submit. Get URL to news item
 
 SF -> Admin -> File Releases
 Add a release to nagiosplug and create a file release
-Name: 1.4.1 
+Name: 1.4.14
 Create release
 Step 1: Add release notes pointing to news item
 Step 2: add file
 Step 3: *.tar.gz, Platform Independent, Source .gz
 Step 4: Send notice
 
+*** Announce new release
 Send email to nagiosplug-help, nagios-announce with the news text
 Add a news item to http://nagiosplugins.org