aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-12-06 19:09:10 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-12-06 19:09:10 -0200
commit98fa937c7368bc32ffcd0658657e3884d77242cb (patch)
tree6d1bf7cb649caaec957135557689e63af4a3a9a9
parent98175bd8d34d442d43ca5e64e2c906f723282a89 (diff)
parentfbe0915c8e5a59267decde4a538145ae62fb5869 (diff)
downloadluarocks-2.3.0-rc1.tar.gz
luarocks-2.3.0-rc1.tar.bz2
luarocks-2.3.0-rc1.zip
Merge branch 'master' into 2.3.0v2.3.0-rc1
-rwxr-xr-xmakedist31
1 files 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
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