aboutsummaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist18
1 files changed, 2 insertions, 16 deletions
diff --git a/makedist b/makedist
index ac7a466e..8b65a62e 100755
--- a/makedist
+++ b/makedist
@@ -61,8 +61,6 @@ then
61 sed -i 's/version = "[^"]*"/version = "'$version'-1"/' $ROCKSPEC 61 sed -i 's/version = "[^"]*"/version = "'$version'-1"/' $ROCKSPEC
62 sed -i 's/\( url = "[^"]*",\)/\1\n tag = "v'$version'"/' $ROCKSPEC 62 sed -i 's/\( url = "[^"]*",\)/\1\n tag = "v'$version'"/' $ROCKSPEC
63 sed -i 's/program_version = "[^"]*"/program_version = "'$version'"/' src/luarocks/core/cfg.lua 63 sed -i 's/program_version = "[^"]*"/program_version = "'$version'"/' src/luarocks/core/cfg.lua
64 sed -i 's/version: [0-9.]*/version: '$version'./' appveyor.yml
65 sed -i 's/LUAROCKS_VER: [0-9.]*/LUAROCKS_VER: '$version'/' appveyor.yml
66 sed -i 's/vars.VERSION = "[0-9.]*"/vars.VERSION = "'$xyversion'"/' install.bat 64 sed -i 's/vars.VERSION = "[0-9.]*"/vars.VERSION = "'$xyversion'"/' install.bat
67 echo "===============================================================================" 65 echo "==============================================================================="
68 git diff 66 git diff
@@ -100,18 +98,6 @@ grep -q "program_version = \"$version\"" src/luarocks/core/cfg.lua || {
100 exit 1 98 exit 1
101} 99}
102 100
103grep -q "version: $version\\." appveyor.yml || {
104 echo
105 echo "version in appveyor.yml is incorrect. Please fix it."
106 exit 1
107}
108
109grep -q "LUAROCKS_VER: $version" appveyor.yml || {
110 echo
111 echo "LUAROCKS_VER in appveyor.yml is incorrect. Please fix it."
112 exit 1
113}
114
115grep -q "vars.VERSION = \"$xyversion\"" install.bat || { 101grep -q "vars.VERSION = \"$xyversion\"" install.bat || {
116 echo 102 echo
117 echo "vars.VERSION in install.bat is incorrect. Please fix it." 103 echo "vars.VERSION in install.bat is incorrect. Please fix it."
@@ -143,7 +129,7 @@ mkdir "release-windows"
143mv "$out" "release-windows/$out-win32" 129mv "$out" "release-windows/$out-win32"
144 130
145cd "release-unix/$out" 131cd "release-unix/$out"
146rm -rf makedist install.bat win32 .github .gitignore appveyor* .appveyor 132rm -rf makedist install.bat win32 .github .gitignore
147cd .. 133cd ..
148tar czvpf ../"$out.tar.gz" "$out" 134tar czvpf ../"$out.tar.gz" "$out"
149rm -f ../"$out.tar.gz.asc" 135rm -f ../"$out.tar.gz.asc"
@@ -151,7 +137,7 @@ cd ..
151rm -rf "release-unix" 137rm -rf "release-unix"
152 138
153cd "release-windows/$out-win32" 139cd "release-windows/$out-win32"
154rm -rf makedist Makefile GNUmakefile configure .github .gitignore test appveyor* .appveyor 140rm -rf makedist Makefile GNUmakefile configure .github .gitignore test
155cd .. 141cd ..
156zip -r ../"$out-win32.zip" "$out-win32" 142zip -r ../"$out-win32.zip" "$out-win32"
157rm -f ../"$out-win32.zip.asc" 143rm -f ../"$out-win32.zip.asc"