aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-03-10 18:17:18 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-03-10 18:17:18 -0300
commit739320d62c6b74c07f6942004aed1aedca1a2fc8 (patch)
tree4a883084c9b139b5fc7f0194914d85adb797addf
parent0431ed91571e4b7986a1178df48232abff7c0916 (diff)
downloadluarocks-739320d62c6b74c07f6942004aed1aedca1a2fc8.tar.gz
luarocks-739320d62c6b74c07f6942004aed1aedca1a2fc8.tar.bz2
luarocks-739320d62c6b74c07f6942004aed1aedca1a2fc8.zip
make sure rockspec is consistent when running makedist
-rwxr-xr-xmakedist6
1 files changed, 6 insertions, 0 deletions
diff --git a/makedist b/makedist
index 402ef71f..073a9998 100755
--- a/makedist
+++ b/makedist
@@ -14,6 +14,12 @@ fi
14 14
15make clean || exit 1 15make clean || exit 1
16 16
17grep -q "\"$1\"" rockspec || {
18 echo
19 echo "Version in rockspec is incorrect. Please fix it."
20 exit 1
21}
22
17out="luarocks-$1" 23out="luarocks-$1"
18rm -rf "$out" 24rm -rf "$out"
19mkdir "$out" 25mkdir "$out"