From f53c754ac89000c1a585d7ca3666137d034349c9 Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Thu, 24 Jul 2014 21:10:45 +0100 Subject: [PATCH] Still getting the build/release script right! --- buildall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildall.sh b/buildall.sh index 73d7637..e82ba38 100755 --- a/buildall.sh +++ b/buildall.sh @@ -32,10 +32,11 @@ do if [ "${release}" != "" ] then - old=`cat project.clj | grep "^(defproject mw-" | sed 's/(defproject mw-[a-z]* "\([A-Za-z0-9_.-]*\)"/\1/'` + old=`cat project.clj | grep 'defproject mw' | sed 's/(defproject mw-[a-z]* "\([A-Za-z0-9_.-]*\).*)"/\1/'` + echo "foo ${old}" # Does the 'old' version tag end with the token "-SNAPSHOT"? it probably does! - echo "${old}" | grep "-SNAPSHOT$" + echo "${old}" | grep 'SNAPSHOT$' if [ $? -eq 0 ] then # It does...