aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2017-09-13 12:46:22 -0300
committerHisham Muhammad <hisham@gobolinux.org>2017-09-13 12:46:22 -0300
commitf1473f71235bb89555dea7041b536144d32bac8c (patch)
tree5c0b9215801ea1711c7919c1b42085d1b5687075 /makedist
parent1eb598706f9000361f0059a303c3cf99be5a8ceb (diff)
parent9c853b1e7ec0f30e0e539fb56d7c81edbe5c8d7d (diff)
downloadluarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.gz
luarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.bz2
luarocks-f1473f71235bb89555dea7041b536144d32bac8c.zip
Merge branch 'luarocks-3'
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist23
1 files changed, 19 insertions, 4 deletions
diff --git a/makedist b/makedist
index fb41b981..5e22b688 100755
--- a/makedist
+++ b/makedist
@@ -20,9 +20,9 @@ grep -q "\"$1\"" rockspec || {
20 exit 1 20 exit 1
21} 21}
22 22
23grep -q "program_version = \"$1\"" src/luarocks/cfg.lua || { 23grep -q "program_version = \"$1\"" src/luarocks/core/cfg.lua || {
24 echo 24 echo
25 echo "program_version in src/luarocks/cfg.lua is incorrect. Please fix it." 25 echo "program_version in src/luarocks/core/cfg.lua is incorrect. Please fix it."
26 exit 1 26 exit 1
27} 27}
28 28
@@ -41,9 +41,9 @@ grep -q "LUAROCKS_VER: $1" appveyor.yml || {
41# e.g. if $1 is "2.3.0", $program_series is "2.3" 41# e.g. if $1 is "2.3.0", $program_series is "2.3"
42program_series=${1%.*} 42program_series=${1%.*}
43 43
44grep -q "program_series = \"$program_series\"" src/luarocks/cfg.lua || { 44grep -q "program_series = \"$program_series\"" src/luarocks/core/cfg.lua || {
45 echo 45 echo
46 echo "program_series in src/luarocks/cfg.lua is incorrect. Please fix it." 46 echo "program_series in src/luarocks/core/cfg.lua is incorrect. Please fix it."
47 exit 1 47 exit 1
48} 48}
49 49
@@ -80,6 +80,21 @@ then
80 exit 1 80 exit 1
81fi 81fi
82 82
83cat Makefile.setup.inc | tr ' \\' '\n\n' | grep 'lua$' | while read i
84do
85 if [ ! -e src/luarocks/$i ]
86 then
87 echo "Ref in Makefile.setup.inc for file that no longer exists: $i"
88 touch "outdated_ref"
89 exit 1
90 fi
91done
92if [ -e "outdated_ref" ]
93then
94 rm -f "outdated_ref"
95 exit 1
96fi
97
83rm -rf "release-unix" "release-windows" "$out.tar.gz" "$out-win32.zip" 98rm -rf "release-unix" "release-windows" "$out.tar.gz" "$out-win32.zip"
84 99
85mkdir "release-unix" 100mkdir "release-unix"