diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-13 12:15:40 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-13 12:15:40 -0400 |
commit | c3e052a979a86cec7465213fc56784f42da186b6 (patch) | |
tree | 47c8d190829c7b68f52eca00c76987e0f749d223 | |
parent | 8d95d5607fdd829d4b77c5225fd6b9015b1df034 (diff) | |
download | luarocks-c3e052a979a86cec7465213fc56784f42da186b6.tar.gz luarocks-c3e052a979a86cec7465213fc56784f42da186b6.tar.bz2 luarocks-c3e052a979a86cec7465213fc56784f42da186b6.zip |
makedist: add version check for configure
-rwxr-xr-x | makedist | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 | ||
27 | grep -q "LuaRocks version $1" "configure" || { | ||
28 | echo | ||
29 | echo "version in configure is incorrect. Please fix it." | ||
30 | exit 1 | ||
31 | } | ||
32 | |||
27 | grep -q "\"$1-1\"" "$ROCKSPEC" || { | 33 | grep -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." |