aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml4
-rwxr-xr-xmakedist13
-rwxr-xr-xpublishrelease4
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
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
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