Browse Source

Merge pull request #871 from herby/recompile-cli-when-release

Rebuild cli while releasing.
Nicolas Petton 10 years ago
parent
commit
2c771bccba
1 changed files with 6 additions and 0 deletions
  1. 6 0
      cli/support/release-worker.sh

+ 6 - 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
@@ -30,5 +33,8 @@ cp package.json package.json.bak
 sed -e 's@/amber.git.*"@/amber.git"@' 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 "Working on $VERF"
 git push --tags