aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
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"