1
0
Ver Fonte

Skeleton of release script.

Ping @mkroehnert.
Herbert Vojčík há 11 anos atrás
pai
commit
16438c7892
1 ficheiros alterados com 26 adições e 0 exclusões
  1. 26 0
      bin/release.sh

+ 26 - 0
bin/release.sh

@@ -0,0 +1,26 @@
+#!/bin/sh
+cd `dirname "$0"`/..
+pwd
+echo -n "Which version are you going to publish [0 to skip]? "
+VER=`head -n 1`
+if [ "$VER" = "0" ]; then :; else
+	echo "Publishing version $VER"
+	bin/setversion.sh "$VER"
+	cp package.json package.json.bak
+	sed -e 's@/amber.git.*"@/amber.git#'"$VER"'"@' package.json.bak >package.json
+	rm package.json.bak
+	echo git commit -a -m "Release version $VER"
+	echo git tag -a "$VER"
+	echo bower upload
+	echo npm upload
+fi
+echo -n "Which version are you going to work on? "
+VERF=`head -n 1`
+VER="${VER}-pre"
+echo "Setting version $VER"
+bin/setversion.sh "$VER"
+cp package.json package.json.bak
+sed -e 's@/amber.git.*"@/amber.git"@' package.json.bak >package.json
+rm package.json.bak
+echo git commit -a -m "Working on $VERF"
+echo git push --tags