Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e5592394d9
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (32 sloc) 1.081 kb
#!/usr/bin/env bash
if [ -d ".hg" ]; then
QUEUE=$(hg qqueue | grep active | cut -d " " -f 1)
QUEUE=${QUEUE// /}
CSET=$(hg log -l 1 | grep "changeset:" | cut -d ":" -f 2)
CSET=${CSET// /}
TAG=$(hg log -l 1 | grep "tag:" | head -1 | cut -d ":" -f 2)
TAG=${TAG// /}
NAME="bld_${QUEUE}_${CSET}_${TAG}"
FOLDER="$HOME/zspace/builds/$NAME"
if [ -e "$FOLDER" ]; then
bkn "$FOLDER"
fi
mkdir "$FOLDER"
cp $HOME/zspace/builds/fennec-*.en-US.android-arm.apk $FOLDER
cp -R .hg/patches-$QUEUE $FOLDER/
hg diff > $FOLDER/unstaged.diff
elif [ -d ".git" ]; then
BRANCH=$(git branch | grep "*" | cut -d " " -f 2)
BRANCH=${BRANCH// /}
CSET=$(git log -1 --oneline | cut -d " " -f 1)
NAME="bld_${BRANCH}_${CSET}"
FOLDER="$HOME/zspace/builds/$NAME"
if [ -e "$FOLDER" ]; then
bkn "$FOLDER"
fi
mkdir "$FOLDER"
cp $HOME/zspace/builds/fennec-*.en-US.android-arm.apk $FOLDER
git format-patch -o $FOLDER master
git diff --cached > $FOLDER/staged.diff
git diff > $FOLDER/unstaged.diff
fi;
Jump to Line
Something went wrong with that request. Please try again.