Teach make_release to set the eg_version var
authorDan Scott <dscott@laurentian.ca>
Thu, 27 Sep 2012 03:13:41 +0000 (23:13 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 3 Oct 2012 16:49:18 +0000 (12:49 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
build/tools/make_release

index 8769b0e..516fe9c 100755 (executable)
@@ -220,6 +220,7 @@ if [ $PREV_BRANCH != "PACKAGE" ]; then
         elif [ -n "$UPGRADE_CHECK" ]; then
             echo "Found Upgrade Files! Building Upgrade Script."
             echo "--Upgrade Script for $PREV_VERSION to $VERSION" > $UPGRADE_FILE
+            echo "\set eg_version '''$VERSION'''"
             echo "BEGIN;" >> $UPGRADE_FILE
             grep "config.upgrade_log.*$VERSION" Open-ILS/src/sql/Pg/002.schema.config.sql >> $UPGRADE_FILE
             for NUM in $UPGRADE_CHECK; do