Still getting the build/release script right!

This commit is contained in:
Simon Brooke 2014-07-24 21:10:45 +01:00
parent 31743f4117
commit f53c754ac8

View file

@ -32,10 +32,11 @@ do
if [ "${release}" != "" ] if [ "${release}" != "" ]
then 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! # Does the 'old' version tag end with the token "-SNAPSHOT"? it probably does!
echo "${old}" | grep "-SNAPSHOT$" echo "${old}" | grep 'SNAPSHOT$'
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
# It does... # It does...