aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-09-13 12:15:40 -0400
committerHisham Muhammad <hisham@gobolinux.org>2018-09-13 12:15:40 -0400
commitc3e052a979a86cec7465213fc56784f42da186b6 (patch)
tree47c8d190829c7b68f52eca00c76987e0f749d223
parent8d95d5607fdd829d4b77c5225fd6b9015b1df034 (diff)
downloadluarocks-c3e052a979a86cec7465213fc56784f42da186b6.tar.gz
luarocks-c3e052a979a86cec7465213fc56784f42da186b6.tar.bz2
luarocks-c3e052a979a86cec7465213fc56784f42da186b6.zip
makedist: add version check for configure
-rwxr-xr-xmakedist6
1 files changed, 6 insertions, 0 deletions
diff --git a/makedist b/makedist
index af07a5fa..9b737588 100755
--- a/makedist
+++ b/makedist
@@ -24,6 +24,12 @@ ROCKSPEC="luarocks-$1-1.rockspec"
24 echo "$ROCKSPEC is missing. Please check rockspec version is correct." 24 echo "$ROCKSPEC is missing. Please check rockspec version is correct."
25} 25}
26 26
27grep -q "LuaRocks version $1" "configure" || {
28 echo
29 echo "version in configure is incorrect. Please fix it."
30 exit 1
31}
32
27grep -q "\"$1-1\"" "$ROCKSPEC" || { 33grep -q "\"$1-1\"" "$ROCKSPEC" || {
28 echo 34 echo
29 echo "version in rockspec is incorrect. Please fix it." 35 echo "version in rockspec is incorrect. Please fix it."