diff options
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -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 | ||
103 | grep -q "version: $version\\." appveyor.yml || { | ||
104 | echo | ||
105 | echo "version in appveyor.yml is incorrect. Please fix it." | ||
106 | exit 1 | ||
107 | } | ||
108 | |||
109 | grep -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 | |||
115 | grep -q "vars.VERSION = \"$xyversion\"" install.bat || { | 101 | grep -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" | |||
143 | mv "$out" "release-windows/$out-win32" | 129 | mv "$out" "release-windows/$out-win32" |
144 | 130 | ||
145 | cd "release-unix/$out" | 131 | cd "release-unix/$out" |
146 | rm -rf makedist install.bat win32 .github .gitignore appveyor* .appveyor | 132 | rm -rf makedist install.bat win32 .github .gitignore |
147 | cd .. | 133 | cd .. |
148 | tar czvpf ../"$out.tar.gz" "$out" | 134 | tar czvpf ../"$out.tar.gz" "$out" |
149 | rm -f ../"$out.tar.gz.asc" | 135 | rm -f ../"$out.tar.gz.asc" |
@@ -151,7 +137,7 @@ cd .. | |||
151 | rm -rf "release-unix" | 137 | rm -rf "release-unix" |
152 | 138 | ||
153 | cd "release-windows/$out-win32" | 139 | cd "release-windows/$out-win32" |
154 | rm -rf makedist Makefile GNUmakefile configure .github .gitignore test appveyor* .appveyor | 140 | rm -rf makedist Makefile GNUmakefile configure .github .gitignore test |
155 | cd .. | 141 | cd .. |
156 | zip -r ../"$out-win32.zip" "$out-win32" | 142 | zip -r ../"$out-win32.zip" "$out-win32" |
157 | rm -f ../"$out-win32.zip.asc" | 143 | rm -f ../"$out-win32.zip.asc" |