1
0
Pārlūkot izejas kodu

Skeleton of release script.

Ping @mkroehnert.
Herbert Vojčík 11 gadi atpakaļ
vecāks
revīzija
16438c7892
1 mainītis faili ar 26 papildinājumiem un 0 dzēšanām
  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