[zaptel-commits] tzafrir: branch 1.4 r4639 - /branches/1.4/build_tools/zaptel_svn_tarball

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue May 26 02:55:47 CDT 2009


Author: tzafrir
Date: Tue May 26 02:55:43 2009
New Revision: 4639

URL: http://svn.asterisk.org/svn-view/zaptel?view=rev&rev=4639
Log:
zaptel_svn_tarball: a poor-mans's ChangeLog generator.

svn2log from repotools has too many dependencies for my target usage
(Feel free to patch the script to use it if available, though).

Modified:
    branches/1.4/build_tools/zaptel_svn_tarball

Modified: branches/1.4/build_tools/zaptel_svn_tarball
URL: http://svn.asterisk.org/svn-view/zaptel/branches/1.4/build_tools/zaptel_svn_tarball?view=diff&rev=4639&r1=4638&r2=4639
==============================================================================
--- branches/1.4/build_tools/zaptel_svn_tarball (original)
+++ branches/1.4/build_tools/zaptel_svn_tarball Tue May 26 02:55:43 2009
@@ -28,6 +28,18 @@
   echo >&2 "   -r --rev REV:       extract xpp-zaptel from this revision ($REV)."
   echo >&2 "   -s --show:          Just show  versions. Do nothing"
 
+}
+
+gen_changelog() {
+	SVN2CL_CMD="${SVN2CL_CMD:-`which svn2cl`}"
+	# FIXME: add better parsing here if you want to pass extra
+	# arguments through the environment to SVN2CL_CMD
+	if [ ! -x "$SVN2CL_CMD" ]; then
+		say "Not creating changelog: svn2cl not available."
+		# FIXME: any point in creating an empty ChangeLog file?
+		return
+	fi
+	$SVN2CL_CMD --include-rev --output "$1" -r 1:$REV "$2"
 }
 
 opt_showonly=no
@@ -84,6 +96,7 @@
 # Package a tarball from the subversion, using 'make dist':
 svn export -q -r $REV $ZAPTEL_URL $ZAP_CHECKOUT_DIR/$tar_name
 echo "$ver_full" >$ZAP_CHECKOUT_DIR/$tar_name/.version
+gen_changelog $ZAP_CHECKOUT_DIR/$tar_name/ChangeLog $ZAPTEL_URL
 tar cz -C $ZAP_CHECKOUT_DIR -f $tar_ball_full $tar_name
 
 rm -rf $ZAP_CHECKOUT_DIR




More information about the zaptel-commits mailing list