summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrian J. Tarricone <brian@tarricone.org>2009-08-26 14:46:13 -0700
committerBrian J. Tarricone <brian@tarricone.org>2009-08-26 14:46:13 -0700
commit65753f2d0307d51b2d15e66e76ef6599fac17264 (patch)
tree1b2ce60cad6eb0d104845ee60015fcae822cf8e4 /scripts
parent2aea2c13e03ac17169bbfd5cb279cca513c2ffd8 (diff)
downloadxfce4-dev-tools-65753f2d0307d51b2d15e66e76ef6599fac17264.tar.gz
print warning if attempting to compare git revision versions
we can't tell version ordering, but it's possible it's fine, so just print a warning and proceed. autogen.sh writers shouldn't depend on particular git revisions, only on release versions, but let's soft-allow it.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xdt-autogen.in.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in
index 6856b04..f8932fe 100644
--- a/scripts/xdt-autogen.in.in
+++ b/scripts/xdt-autogen.in.in
@@ -186,9 +186,10 @@ do_version_check() {
XDT_AUTOGEN_VERSION_REV_NUM=`echo "$XDT_AUTOGEN_VERSION_REVISION" | sed -e 's/svn-r\([[:digit:]]\+\)/\1/'`
test $rev_num -le $XDT_AUTOGEN_VERSION_REV_NUM || return 1
elif echo "$revision" | grep -q "git"; then
- echo "Error: git revision comparison not yet implemented. Please file a bug:"
- echo "@PACKAGE_BUGREPORT@"
- exit 1
+ # since git rev info is of the form "git-$SHORT_SHA1", they cannot
+ # be ordered without knowing the full git history.
+ echo "xdt-autogen: Git revision comparison is not reliable. Continuing anyway." >&2
+ echo " If you experience problems, upgrade xfce4-dev-tools." >&2
fi
fi