aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist7
1 files changed, 6 insertions, 1 deletions
diff --git a/makedist b/makedist
index 5e22b688..5e5e3461 100755
--- a/makedist
+++ b/makedist
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/bash -e
2 2
3if ! [ "$1" ] 3if ! [ "$1" ]
4then 4then
@@ -14,6 +14,9 @@ fi
14 14
15make clean || exit 1 15make clean || exit 1
16 16
17if [ "$1" != "scm" ]
18then
19
17grep -q "\"$1\"" rockspec || { 20grep -q "\"$1\"" rockspec || {
18 echo 21 echo
19 echo "version in rockspec is incorrect. Please fix it." 22 echo "version in rockspec is incorrect. Please fix it."
@@ -53,6 +56,8 @@ grep -q "vars.VERSION = \"$program_series\"" install.bat || {
53 exit 1 56 exit 1
54} 57}
55 58
59fi
60
56out="luarocks-$1" 61out="luarocks-$1"
57rm -rf "$out" 62rm -rf "$out"
58mkdir "$out" 63mkdir "$out"