Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dequis/purple-facebook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgeboski <jgeboski@gmail.com>2015-06-27 08:59:51 +0300
committerjgeboski <jgeboski@gmail.com>2015-06-27 08:59:51 +0300
commitf3555951d380ba95c975fc366db5d29c7c5664ff (patch)
tree9ec3f53c7d2297e28cd1b0461be3caab8a1fb4c5 /update.sh
parent845fef6ca62e9ea476e1bd673e36372b1c91f5d3 (diff)
update: allow overriding of the revision
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 259ff6a..79d9c2c 100755
--- a/update.sh
+++ b/update.sh
@@ -13,7 +13,9 @@ test -z "$srcdir" && srcdir=.
cd "$srcdir"
-REV=$(head -n18 configure.ac | tail -n1 | tr -d '[ ],')
+if test -z "$REVISION"; then
+ REVISION=$(head -n18 configure.ac | tail -n1 | tr -d '[ ],')
+fi
if ! test -d .pidgin/.hg; then
rm -rf .pidgin
@@ -21,7 +23,7 @@ if ! test -d .pidgin/.hg; then
fi
hg -R .pidgin -v pull
-hg -R .pidgin -v update -C "$REV"
+hg -R .pidgin -v update -C "$REVISION"
rm -rf pidgin
for FILE in $(cat MANIFEST_PIDGIN); do