aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-06-08 17:44:26 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-06-08 17:44:26 -0300
commit18d6b6b72b4a923ef7cf0c605af9078ca115fa9d (patch)
tree13451940172a1a3b688abedc85441ba61529c02b
parent96e72c4a8782d62dc3fb53ad60fdcf7cb39418c1 (diff)
downloadluarocks-18d6b6b72b4a923ef7cf0c605af9078ca115fa9d.tar.gz
luarocks-18d6b6b72b4a923ef7cf0c605af9078ca115fa9d.tar.bz2
luarocks-18d6b6b72b4a923ef7cf0c605af9078ca115fa9d.zip
add check to avoid incorrect program_version, as happened for 2.0.9 :(
-rwxr-xr-xmakedist6
1 files changed, 6 insertions, 0 deletions
diff --git a/makedist b/makedist
index 073a9998..ac77696c 100755
--- a/makedist
+++ b/makedist
@@ -20,6 +20,12 @@ grep -q "\"$1\"" rockspec || {
20 exit 1 20 exit 1
21} 21}
22 22
23grep -q "program_version = \"$1\"" src/luarocks/cfg.lua || {
24 echo
25 echo "Version in src/luarocks/cfg.lua is incorrect. Please fix it."
26 exit 1
27}
28
23out="luarocks-$1" 29out="luarocks-$1"
24rm -rf "$out" 30rm -rf "$out"
25mkdir "$out" 31mkdir "$out"