diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-13 16:18:16 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-13 19:21:47 +0000 |
commit | 9751d99b7593b8d497fb0e096fa77bb5a08b7b30 (patch) | |
tree | 6d26facb31b0b6cbb598603fc7b12ee4a0e8ac98 | |
parent | 84b55ad2186d3243bc6d1f7c449268d03ee02d4c (diff) | |
download | luarocks-9751d99b7593b8d497fb0e096fa77bb5a08b7b30.tar.gz luarocks-9751d99b7593b8d497fb0e096fa77bb5a08b7b30.tar.bz2 luarocks-9751d99b7593b8d497fb0e096fa77bb5a08b7b30.zip |
makedist: make lua54dir an explicit requirement
-rw-r--r-- | .github/workflows/test.yml | 4 | ||||
-rwxr-xr-x | makedist | 13 | ||||
-rwxr-xr-x | publishrelease | 4 |
3 files changed, 15 insertions, 6 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b722abe..63391324 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -79,7 +79,7 @@ jobs: | |||
79 | - name: Smoke Test | 79 | - name: Smoke Test |
80 | run: | | 80 | run: | |
81 | ./configure | 81 | ./configure |
82 | ./makedist dev | 82 | ./makedist dev $(dirname $(dirname $(which lua))) |
83 | ./smoke_test.sh luarocks-dev.tar.gz | 83 | ./smoke_test.sh luarocks-dev.tar.gz |
84 | 84 | ||
85 | ############################################################################## | 85 | ############################################################################## |
@@ -95,6 +95,6 @@ jobs: | |||
95 | - name: Binary Build Smoke Test | 95 | - name: Binary Build Smoke Test |
96 | run: | | 96 | run: | |
97 | ./configure | 97 | ./configure |
98 | ./makedist dev | 98 | ./makedist dev $(dirname $(dirname $(which lua))) |
99 | ./smoke_test.sh luarocks-dev.tar.gz binary | 99 | ./smoke_test.sh luarocks-dev.tar.gz binary |
100 | 100 | ||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | if ! [ "$1" ] | 3 | if ! [ "$1" ] |
4 | then | 4 | then |
5 | echo "usage: $0 <version>" | 5 | echo "usage: $0 <version> <lua54dir>" |
6 | exit 1 | 6 | exit 1 |
7 | fi | 7 | fi |
8 | 8 | ||
@@ -17,6 +17,15 @@ make clean || exit 1 | |||
17 | version=$1 | 17 | version=$1 |
18 | shift | 18 | shift |
19 | 19 | ||
20 | lua54dir=$1 | ||
21 | shift | ||
22 | |||
23 | if ! [ -d "$lua54dir" ] | ||
24 | then | ||
25 | echo "Second argument must be the Lua 5.4 prefix." | ||
26 | exit 1 | ||
27 | fi | ||
28 | |||
20 | #------------------------------------------------------------------------------- | 29 | #------------------------------------------------------------------------------- |
21 | if ! [ "$version" = "dev" ] | 30 | if ! [ "$version" = "dev" ] |
22 | then | 31 | then |
@@ -150,7 +159,7 @@ if [ "$1" = "binary" ] | |||
150 | then | 159 | then |
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 |
diff --git a/publishrelease b/publishrelease index 37145092..f11218ec 100755 --- a/publishrelease +++ b/publishrelease | |||
@@ -5,7 +5,7 @@ | |||
5 | echo "example...: $0 3.1.1" | 5 | echo "example...: $0 3.1.1" |
6 | echo | 6 | echo |
7 | echo "Before running this, make sure the packages were built:" | 7 | echo "Before running this, make sure the packages were built:" |
8 | echo " makedist 3.1.1 binary sign" | 8 | echo " makedist 3.1.1 /opt/lua54/ binary sign" |
9 | echo "And the tag was merged:" | 9 | echo "And the tag was merged:" |
10 | echo " mergerelease 3.1.1" | 10 | echo " mergerelease 3.1.1" |
11 | echo | 11 | echo |
@@ -55,7 +55,7 @@ function confirm() { | |||
55 | echo "****************************************" | 55 | echo "****************************************" |
56 | git status | 56 | git status |
57 | echo "****************************************" | 57 | echo "****************************************" |
58 | 58 | ||
59 | echo "Everything looks all right? (y/n)" | 59 | echo "Everything looks all right? (y/n)" |
60 | echo "(Answering y will commit and push)" | 60 | echo "(Answering y will commit and push)" |
61 | read | 61 | read |