Signed-off-by: Matt Darfeuille <[email protected]>
---
build/release | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/build/release b/build/release
index d85330b6..7d059868 100755
--- a/build/release
+++ b/build/release
@@ -307,9 +307,23 @@ elif [ -n "$CHECKOUT_BRANCH_NAME" ]; then
checkout_branch_func $WEBDIR $CHECKOUT_BRANCH_NAME
fi
-if ! grep "$VERSION" $WEBDIR/index.html > /dev/null 2>&1; then
- fatal_error "File $WEBDIR/index.html does not contain \"${VERSION}\"."
-fi
+case $VERSION in
+ *Beta*)
+ if ! grep -q "$BASEVERSION Beta $(printf "%s" $VERSION | tail -c 1)"
$WEBDIR/index.html; then
+ fatal_error "File $WEBDIR/index.html does not contain
\"$BASEVERSION Beta $(printf "%s" $VERSION | tail -c 1)\"."
+ fi
+ ;;
+ *RC*)
+ if ! grep -q "$BASEVERSION RC $(printf "%s" $VERSION | tail -c 1)"
$WEBDIR/index.html; then
+ fatal_error "File $WEBDIR/index.html does not contain
\"$BASEVERSION RC $(printf "%s" $VERSION | tail -c 1)\"."
+ fi
+ ;;
+ *)
+ if ! grep -q "$VERSION" $WEBDIR/index.html; then
+ fatal_error "File $WEBDIR/index.html does not contain
\"${VERSION}\"."
+ fi
+ ;;
+esac
[ -f "$WEBDIR/index.html" -a -f "$TOOLSDIR/web/publish" ] &&
$TOOLSDIR/web/publish index.html
--
2.17.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel