[cvslog] (2008-06-17 10:49:11 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Tue Jun 17 04:49:11 CST 2008


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2008-06-17 10:49:11 UTC
Commited by: Tothwolf <tothwolf at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 misc/releaseprep

Log message:

Modified releaseprep script to run cvs2cl so we will (hopefully) have an up-to-date ChangeLog file before each release.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.648 eggdrop1.6/doc/UPDATES1.6:1.649
--- eggdrop1.6/doc/UPDATES1.6:1.648	Tue Jun 17 05:15:08 2008
+++ eggdrop1.6/doc/UPDATES1.6	Tue Jun 17 05:49:01 2008
@@ -1,4 +1,4 @@
-$Id: UPDATES1.6,v 1.648 2008-06-17 10:15:08 tothwolf Exp $
+$Id: UPDATES1.6,v 1.649 2008-06-17 10:49:01 tothwolf Exp $
 
 Eggdrop Changes (since v1.6.0)
     _____________________________________________________________________
@@ -26,6 +26,10 @@
       These were nearly 7 years old and way overdue for an update.
     * Patch by: Tothwolf
 
+    - Modified releaseprep script to run cvs2cl so we will (hopefully)
+      have an up-to-date ChangeLog file before each release.
+    * Patch by: Tothwolf
+
 
   1.6.19 (18 April 2008):
     - Update the recommended TCL version to 8.5
Index: eggdrop1.6/misc/releaseprep
diff -u eggdrop1.6/misc/releaseprep:1.16 eggdrop1.6/misc/releaseprep:1.17
--- eggdrop1.6/misc/releaseprep:1.16	Sat Feb 16 15:41:02 2008
+++ eggdrop1.6/misc/releaseprep	Tue Jun 17 05:49:01 2008
@@ -23,7 +23,7 @@
 # configuration script generated by Autoconf, you may include it under
 # the same distribution terms that you use for the rest of that program.
 #
-# $Id: releaseprep,v 1.16 2008-02-16 21:41:02 guppy Exp $
+# $Id: releaseprep,v 1.17 2008-06-17 10:49:01 tothwolf Exp $
 
 show_usage() {
 	echo "Usage: `basename $0` [-h|-r <#>]"
@@ -36,6 +36,31 @@
 	exit 1
 }
 
+regenerate_changelog() {
+	cvs2cl=`which cvs2cl`
+	if test "x${cvs2cl}" = "x"; then
+		echo "Error: Could not locate \`cvs2cl' program."
+		exit 1
+	fi
+	if ! $cvs2cl; then
+		echo "Error while attempting to run \`cvs2cl' program."
+		exit 1
+	fi
+	if test -f ChangeLog; then
+		if test -s ChangeLog; then
+			if test -f ChangeLog.bak; then
+				rm -f ChangeLog.bak
+			fi
+		else
+			echo "Error: Generated ChangeLog file is empty."
+			exit 1
+		fi
+	else
+		echo "Error: No ChangeLog file found."
+		exit 1
+	fi
+}
+
 change_default_make() {
 	cat configure | sed 's/DEFAULT_MAKE="debug"/DEFAULT_MAKE="eggdrop"/g' > configure_
 	cat aclocal.m4 | sed 's/DEFAULT_MAKE="debug"/DEFAULT_MAKE="eggdrop"/g' > aclocal.m4_
@@ -85,6 +110,12 @@
 	exit 1
 fi
 
+
+# Regenerate ChangeLog file before doing anything else...
+echo "Regenerating ChangeLog file..."
+regenerate_changelog
+echo ""
+
 # Change default make from "debug" to "eggdrop"...
 echo -n "Changing default make..."
 change_default_make
----------------------- End of diff -----------------------



More information about the Changes mailing list