Skip to content

Commit 16230d7

Browse files
committed
Improved release tooling.
1 parent 712d4b5 commit 16230d7

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
2424
if [ "$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
2929
fi
3030
if [[ "$1" =~ ^r(el(ease)?)?$ ]]; then
@@ -193,5 +193,9 @@ fi
193193
mv "$BUILD" "$CHROMIUM_UNPACKED"
194194

195195
if [ "$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

nscl_gitsync.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+

0 commit comments

Comments
 (0)