aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure6
-rwxr-xr-xmakedist31
-rwxr-xr-xtest/testing.sh1
3 files changed, 35 insertions, 3 deletions
diff --git a/configure b/configure
index 8b99b2ae..75ba4039 100755
--- a/configure
+++ b/configure
@@ -71,7 +71,11 @@ EOF
71# Helper functions 71# Helper functions
72 72
73find_program() { 73find_program() {
74 command -v "$1" 2>/dev/null 74 prog=`command -v "$1" 2>/dev/null`
75 if [ -n "$prog" ]
76 then
77 dirname "$prog"
78 fi
75} 79}
76 80
77die() { 81die() {
diff --git a/makedist b/makedist
index 1a9ca992..fb41b981 100755
--- a/makedist
+++ b/makedist
@@ -16,13 +16,40 @@ make clean || exit 1
16 16
17grep -q "\"$1\"" rockspec || { 17grep -q "\"$1\"" rockspec || {
18 echo 18 echo
19 echo "Version in rockspec is incorrect. Please fix it." 19 echo "version in rockspec is incorrect. Please fix it."
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/cfg.lua || {
24 echo 24 echo
25 echo "Version in src/luarocks/cfg.lua is incorrect. Please fix it." 25 echo "program_version in src/luarocks/cfg.lua is incorrect. Please fix it."
26 exit 1
27}
28
29grep -q "version: $1\\." appveyor.yml || {
30 echo
31 echo "version in appveyor.yml is incorrect. Please fix it."
32 exit 1
33}
34
35grep -q "LUAROCKS_VER: $1" appveyor.yml || {
36 echo
37 echo "LUAROCKS_VER in appveyor.yml is incorrect. Please fix it."
38 exit 1
39}
40
41# e.g. if $1 is "2.3.0", $program_series is "2.3"
42program_series=${1%.*}
43
44grep -q "program_series = \"$program_series\"" src/luarocks/cfg.lua || {
45 echo
46 echo "program_series in src/luarocks/cfg.lua is incorrect. Please fix it."
47 exit 1
48}
49
50grep -q "vars.VERSION = \"$program_series\"" install.bat || {
51 echo
52 echo "vars.VERSION in install.bat is incorrect. Please fix it."
26 exit 1 53 exit 1
27} 54}
28 55
diff --git a/test/testing.sh b/test/testing.sh
index abda18d4..86d7579b 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -279,6 +279,7 @@ mkdir -p "$testing_server"
279 get "$luarocks_repo/validate-args-1.5.4-1.rockspec" 279 get "$luarocks_repo/validate-args-1.5.4-1.rockspec"
280 get "https://raw.githubusercontent.com/brunoos/luasec/master/luasec-0.6alpha-2.rockspec" 280 get "https://raw.githubusercontent.com/brunoos/luasec/master/luasec-0.6alpha-2.rockspec"
281 get "$luarocks_repo/luabitop-1.0.2-1.rockspec" 281 get "$luarocks_repo/luabitop-1.0.2-1.rockspec"
282 get "$luarocks_repo/luabitop-1.0.2-1.src.rock"
282 get "$luarocks_repo/lpty-1.0.1-1.src.rock" 283 get "$luarocks_repo/lpty-1.0.1-1.src.rock"
283 get "$luarocks_repo/cprint-${verrev_cprint}.src.rock" 284 get "$luarocks_repo/cprint-${verrev_cprint}.src.rock"
284 get "$luarocks_repo/cprint-${verrev_cprint}.rockspec" 285 get "$luarocks_repo/cprint-${verrev_cprint}.rockspec"