From 515db853f6631e92b5950bcedf392db2d35e919a Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sun, 6 Dec 2015 21:53:59 +0300 Subject: Fix find_program() in configure which returns path to the program, not to the directory containing it. That causes errors when configuring without --with-lua. The fix is to apply 'dirname' if 'command -v' was a success. --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8b99b2ae..75ba4039 100755 --- a/configure +++ b/configure @@ -71,7 +71,11 @@ EOF # Helper functions find_program() { - command -v "$1" 2>/dev/null + prog=`command -v "$1" 2>/dev/null` + if [ -n "$prog" ] + then + dirname "$prog" + fi } die() { -- cgit v1.2.3-55-g6feb From d7a9e7142655628466baecb302f16ae67e558b52 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 6 Dec 2015 18:52:46 -0200 Subject: Stricter version consistency checks. --- makedist | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/makedist b/makedist index 1a9ca992..fb41b981 100755 --- a/makedist +++ b/makedist @@ -16,13 +16,40 @@ make clean || exit 1 grep -q "\"$1\"" rockspec || { echo - echo "Version in rockspec is incorrect. Please fix it." + echo "version in rockspec is incorrect. Please fix it." exit 1 } grep -q "program_version = \"$1\"" src/luarocks/cfg.lua || { echo - echo "Version in src/luarocks/cfg.lua is incorrect. Please fix it." + echo "program_version in src/luarocks/cfg.lua is incorrect. Please fix it." + exit 1 +} + +grep -q "version: $1\\." appveyor.yml || { + echo + echo "version in appveyor.yml is incorrect. Please fix it." + exit 1 +} + +grep -q "LUAROCKS_VER: $1" appveyor.yml || { + echo + echo "LUAROCKS_VER in appveyor.yml is incorrect. Please fix it." + exit 1 +} + +# e.g. if $1 is "2.3.0", $program_series is "2.3" +program_series=${1%.*} + +grep -q "program_series = \"$program_series\"" src/luarocks/cfg.lua || { + echo + echo "program_series in src/luarocks/cfg.lua is incorrect. Please fix it." + exit 1 +} + +grep -q "vars.VERSION = \"$program_series\"" install.bat || { + echo + echo "vars.VERSION in install.bat is incorrect. Please fix it." exit 1 } -- cgit v1.2.3-55-g6feb From c85cca937fc2cccbe085529c76f0d236c56936bd Mon Sep 17 00:00:00 2001 From: mpeterv Date: Tue, 22 Dec 2015 14:45:39 +0300 Subject: Install luabitop from src rock on travis Fixes Travis failure when attempting to fetch luabitop sources from luajit.org, which has blocked downloads from travis recently. --- test/testing.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testing.sh b/test/testing.sh index 26bdde5f..70bd68b2 100755 --- a/test/testing.sh +++ b/test/testing.sh @@ -244,6 +244,7 @@ mkdir -p "$testing_server" get "$luarocks_repo/validate-args-1.5.4-1.rockspec" get "$luarocks_repo/luasec-0.5-2.rockspec" get "$luarocks_repo/luabitop-1.0.2-1.rockspec" + get "$luarocks_repo/luabitop-1.0.2-1.src.rock" get "$luarocks_repo/lpty-1.0.1-1.src.rock" get "$luarocks_repo/cprint-${verrev_cprint}.src.rock" get "$luarocks_repo/cprint-${verrev_cprint}.rockspec" -- cgit v1.2.3-55-g6feb