diff options
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash -e |
2 | 2 | ||
3 | if ! [ "$1" ] | 3 | if ! [ "$1" ] |
4 | then | 4 | then |
@@ -14,6 +14,9 @@ fi | |||
14 | 14 | ||
15 | make clean || exit 1 | 15 | make clean || exit 1 |
16 | 16 | ||
17 | if [ "$1" != "scm" ] | ||
18 | then | ||
19 | |||
17 | grep -q "\"$1\"" rockspec || { | 20 | grep -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 | ||
59 | fi | ||
60 | |||
56 | out="luarocks-$1" | 61 | out="luarocks-$1" |
57 | rm -rf "$out" | 62 | rm -rf "$out" |
58 | mkdir "$out" | 63 | mkdir "$out" |