]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - release.sh
xfs_io.8: rearrange command listings by section
[thirdparty/xfsprogs-dev.git] / release.sh
index e8b8421d4145f48aa9aea21e33d062383812443d..577257a354d442e1cc0a2b9381b11ffbe2f64a71 100755 (executable)
@@ -1,25 +1,36 @@
 #!/bin/sh
 #
-# Automate generation a new release
+# Automate generation of a new release
 #
+# Need to first update these files:
+#
+# VERSION (with new version number)
+# docs/CHANGES (with changelog and version/date string)
+# configure.ac (with new version string)
+# debian/changelog (with new release entry, only for release version)
 
-. VERSION
+. ./VERSION
 
 version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
 date=`date +"%-d %B %Y"`
 
+echo "Cleaning up"
+make realclean
+
 echo "Updating CHANGES"
 sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
        mv doc/CHANGES.tmp doc/CHANGES
 
 echo "Commiting CHANGES update to git"
-git-commit -a -m "${version} release"
+git commit -a -m "${version} release"
 
 echo "Tagging git repository"
-git-tag v${version}
+git tag -a -m "${version} release" v${version}
+
+echo "Making source tarball"
+make dist
 
-echo "Creating source tarball in build/tar/"
-./Makepkgs
+#echo "Sign the source tarball"
+#gpg --detach-sign xfsprogs-${version}.tar.gz
 
-echo "Done."
-echo "Please remember to push out tags using \"git push --tags\""
+echo "Done.  Please remember to push out tags using \"git push --tags\""