summaryrefslogtreecommitdiff
path: root/source4/script/mkversion.sh
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-07-03 14:44:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:01 -0500
commitee1ca9a41091677154737ec56d7c443c323fbc59 (patch)
treeeca384e8bfb05e4fc8dc43af8217e6b03deccff5 /source4/script/mkversion.sh
parent91e68b1d9034655645271455a61c6047a093d636 (diff)
downloadsamba-ee1ca9a41091677154737ec56d7c443c323fbc59.tar.gz
samba-ee1ca9a41091677154737ec56d7c443c323fbc59.tar.bz2
samba-ee1ca9a41091677154737ec56d7c443c323fbc59.zip
r23684: Only use the bzr and git information when there's
a .bzr or .git in the top branch directory I use bzr for my home directory and bzr version-info in ~/devel/samba/4.0/samba4-git gives the info about the ~/.bzr branch metze (This used to be commit 7bb81c1fc335697b5136fd1f705c5dca8eebcd7a)
Diffstat (limited to 'source4/script/mkversion.sh')
-rwxr-xr-xsource4/script/mkversion.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/script/mkversion.sh b/source4/script/mkversion.sh
index 7c7cb6b404..bbc2745940 100755
--- a/source4/script/mkversion.sh
+++ b/source4/script/mkversion.sh
@@ -91,7 +91,7 @@ if test x"${SAMBA_VERSION_IS_SVN_SNAPSHOT}" = x"yes";then
TMP_MIRRORED_REVISION=`echo -e "${SVK_INFO}" | grep 'Mirrored From:.*samba\.org.*' |sed -e 's/Mirrored From: .* Rev\..* \([0-9]*\).*/\1/'`
fi
- if test x"${HAVEVER}" != x"yes";then
+ if test x"${HAVEVER}" != x"yes" -a -d "${SOURCE_DIR}../.bzr";then
HAVEBZR=no
BZR_INFO=`bzr version-info --check-clean ${SOURCE_DIR} 2>/dev/null`
TMP_REVISION=`echo -e "${BZR_INFO}" | grep 'revno:' |sed -e 's/revno: \([0-9]*\).*/\1/'`
@@ -104,7 +104,7 @@ if test x"${SAMBA_VERSION_IS_SVN_SNAPSHOT}" = x"yes";then
TMP_CLEAN_TREE=`echo -e "${BZR_INFO}" | grep 'clean:' |sed -e 's/clean: \([a-zA-Z]*\).*/\1/'`
fi
- if test x"${HAVEVER}" != x"yes";then
+ if test x"${HAVEVER}" != x"yes" -a -d "${SOURCE_DIR}../.git";then
HAVEGIT=no
GIT_INFO=`git show --abbrev-commit HEAD 2>/dev/null`
TMP_REVISION=`echo -e "${GIT_INFO}" | grep 'commit ' | sed 1q |sed -e 's/commit \([0-9a-f]*\).*/\1/'`