File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
2424if [ " $1 " == " tag" ]; then
2525 echo " Tagging at $VER "
2626 git tag -a " $VER " -e -m" $( gitcl 2> /dev/null) "
27- git push origin " $VER "
27+ git push && git push origin " $VER "
2828 exit 0
2929fi
3030if [[ " $1 " =~ ^r(el(ease)? )? $ ]]; then
193193mv " $BUILD " " $CHROMIUM_UNPACKED "
194194
195195if [ " $SIGNED " ]; then
196+ # ensure nscl is up-to-date git-wise
197+ ./nscl_gitsync.sh
198+ " $0 " tag
199+ nscl
196200 ../../we-publish " $XPI .xpi"
197- fi
201+ fi
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ BASE=" $( dirname " $0 " ) "
3+ NSCL_PATH=" $BASE /src/nscl"
4+ commit_range=$( git diff " $NSCL_PATH " | grep ' Subproject commit' | sed -r -e' s/\+.* /../' -e' s/.*commit //' | tr -d ' \n' )
5+ if ! [[ $commit_range ]]; then
6+ echo >&2 " nscl commits already in sync."
7+ exit 1
8+ fi
9+ pushd " $NSCL_PATH "
10+ git log --oneline " $commit_range "
11+ if ! git push ; then
12+ popd
13+ exit 1
14+ fi
15+ popd
16+ git commit -m' [nscl] Updated to latest NoScript Commons Library.' " $NSCL_PATH "
17+
You can’t perform that action at this time.
0 commit comments