Browse Source

Rebuild cli while releasing.

`amber repl` shows wrong version (0.13.0-pre instead of 0.12.3
in case of last one in npm).
Herbert Vojčík 10 years ago
parent
commit
98ee1a97f3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cli/support/release-worker.sh

+ 3 - 0
cli/support/release-worker.sh

@@ -16,6 +16,9 @@ if [ "$VER" = "0" ]; then :; else
 	sed -e 's@/amber.git.*"@/amber.git#'"$VER"'"@' package.json.bak >package.json
 	rm package.json.bak
 	git add package.json
+	bin/amberc -m AmberCli -n amber_cli -l Compiler-Exceptions,Compiler-Core,Compiler-AST,Compiler-IR,Compiler-Inlining,Compiler-Semantic,Compiler-Interpreter,parser cli/st/AmberCli.st cli/support/amber-cli
+	rm cli/st/*.js
+	git add cli/support/amber-cli.js
 	git commit -a -m "Release version $VER"
 	git tag -a "$VER" -m "Release version $VER"
 # bower does not publish explicitly but implictly via semver tag