diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-13 12:46:22 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-13 12:46:22 -0300 |
commit | f1473f71235bb89555dea7041b536144d32bac8c (patch) | |
tree | 5c0b9215801ea1711c7919c1b42085d1b5687075 /makedist | |
parent | 1eb598706f9000361f0059a303c3cf99be5a8ceb (diff) | |
parent | 9c853b1e7ec0f30e0e539fb56d7c81edbe5c8d7d (diff) | |
download | luarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.gz luarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.bz2 luarocks-f1473f71235bb89555dea7041b536144d32bac8c.zip |
Merge branch 'luarocks-3'
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -20,9 +20,9 @@ grep -q "\"$1\"" rockspec || { | |||
20 | exit 1 | 20 | exit 1 |
21 | } | 21 | } |
22 | 22 | ||
23 | grep -q "program_version = \"$1\"" src/luarocks/cfg.lua || { | 23 | grep -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" |
42 | program_series=${1%.*} | 42 | program_series=${1%.*} |
43 | 43 | ||
44 | grep -q "program_series = \"$program_series\"" src/luarocks/cfg.lua || { | 44 | grep -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 |
81 | fi | 81 | fi |
82 | 82 | ||
83 | cat Makefile.setup.inc | tr ' \\' '\n\n' | grep 'lua$' | while read i | ||
84 | do | ||
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 | ||
91 | done | ||
92 | if [ -e "outdated_ref" ] | ||
93 | then | ||
94 | rm -f "outdated_ref" | ||
95 | exit 1 | ||
96 | fi | ||
97 | |||
83 | rm -rf "release-unix" "release-windows" "$out.tar.gz" "$out-win32.zip" | 98 | rm -rf "release-unix" "release-windows" "$out.tar.gz" "$out-win32.zip" |
84 | 99 | ||
85 | mkdir "release-unix" | 100 | mkdir "release-unix" |