aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2017-09-29 20:17:52 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-03-12 21:03:50 -0300
commit3422dd2ae3cf2c3676846e4300529a5cc9a36191 (patch)
tree12111c1e3da98e3996af4e7dfcd431b9f6bbae8d /makedist
parentdb78c190806b742b6380b340432600f010cde7ae (diff)
downloadluarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.tar.gz
luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.tar.bz2
luarocks-3422dd2ae3cf2c3676846e4300529a5cc9a36191.zip
Travis: add cache
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist7
1 files changed, 6 insertions, 1 deletions
diff --git a/makedist b/makedist
index fb41b981..1a16a115 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"