aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-03-13 16:18:16 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-03-13 19:21:47 +0000
commit9751d99b7593b8d497fb0e096fa77bb5a08b7b30 (patch)
tree6d26facb31b0b6cbb598603fc7b12ee4a0e8ac98 /makedist
parent84b55ad2186d3243bc6d1f7c449268d03ee02d4c (diff)
downloadluarocks-9751d99b7593b8d497fb0e096fa77bb5a08b7b30.tar.gz
luarocks-9751d99b7593b8d497fb0e096fa77bb5a08b7b30.tar.bz2
luarocks-9751d99b7593b8d497fb0e096fa77bb5a08b7b30.zip
makedist: make lua54dir an explicit requirement
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist13
1 files changed, 11 insertions, 2 deletions
diff --git a/makedist b/makedist
index 0cc247d3..77899d51 100755
--- a/makedist
+++ b/makedist
@@ -2,7 +2,7 @@
2 2
3if ! [ "$1" ] 3if ! [ "$1" ]
4then 4then
5 echo "usage: $0 <version>" 5 echo "usage: $0 <version> <lua54dir>"
6 exit 1 6 exit 1
7fi 7fi
8 8
@@ -17,6 +17,15 @@ make clean || exit 1
17version=$1 17version=$1
18shift 18shift
19 19
20lua54dir=$1
21shift
22
23if ! [ -d "$lua54dir" ]
24then
25 echo "Second argument must be the Lua 5.4 prefix."
26 exit 1
27fi
28
20#------------------------------------------------------------------------------- 29#-------------------------------------------------------------------------------
21if ! [ "$version" = "dev" ] 30if ! [ "$version" = "dev" ]
22then 31then
@@ -150,7 +159,7 @@ if [ "$1" = "binary" ]
150then 159then
151 shift 160 shift
152 161
153 ./configure --lua-version=5.4 162 ./configure --lua-version=5.4 --with-lua=$lua54dir
154 163
155 make binary 164 make binary
156 cd build-binary 165 cd build-binary