Rev 5367: Try bzr and, if this is a brz checkout,
use bzr branch nick and in
http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/
Michael Adam
ma at sernet.de
Wed Apr 18 11:31:12 GMT 2007
Hi,
since using bazaar branches for work in isolated projects seems
to be rather popular, would anyone besides me find this
addition to mkversion.sh useful also in SAMBA_3_0 svn?
It puts BZR-$(bzr nick)-$(bzr revno) instead of SVN-${SVN_REVISION}
in the SAMBA_VERSION_STRING if the current directory
1. is neither an svn nor an svk checkout and
2. is a bzr checkout.
Cheers, Michael
On Mi, Apr 18, 2007 at 01:17:39 +0200, Michael Adam wrote:
> At http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/
>
> ------------------------------------------------------------
> revno: 5367
> revision-id: ma at sernet.de-20070418111737-d6f0d4da2e435822
> parent: ma at sernet.de-20070417203314-fd8138bdafee1c09
> committer: Michael Adam <ma at sernet.de>
> branch nick: SAMBA_3_0-registry.bzr
> timestamp: Wed 2007-04-18 13:17:37 +0200
> message:
> Try bzr and, if this is a brz checkout, use bzr branch nick and
> revision number for the version string if svn info and svk info fail.
> modified:
> source/script/mkversion.sh mkversion.sh-20060530022627-7fabc53ed219204b
> === modified file 'source/script/mkversion.sh'
> --- a/source/script/mkversion.sh 2006-05-30 08:59:01 +0000
> +++ b/source/script/mkversion.sh 2007-04-18 11:17:37 +0000
> @@ -82,6 +82,13 @@
> else
> TMP_SVK_REVISION_STR="${TMP_REVISION}-${USER}@${HOSTNAME}"
> fi
> + if test x"${HAVESVK}" = x"no";then
> + HAVEBZR=no
> + bzr revno > /dev/null 2>&1 && HAVEBZR=yes
> + TMP_BZR_REVNO=`bzr revno 2> /dev/null`
> + TMP_BZR_NICK=`bzr nick 2> /dev/null`
> + TMP_BZR_REVISION_STR="${TMP_BZR_NICK}-${TMP_BZR_REVNO}"
> + fi
> fi
>
> if test x"${HAVESVN}" = x"yes";then
> @@ -89,6 +96,8 @@
> echo "#define SAMBA_VERSION_SVN_REVISION ${TMP_REVISION}" >> $OUTPUT_FILE
> elif test x"${HAVESVK}" = x"yes";then
> SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-SVK-build-${TMP_SVK_REVISION_STR}"
> + elif test x"${HAVEBZR}" = x"yes";then
> + SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-BZR-build-${TMP_BZR_REVISION_STR}"
> else
> SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-SVN-build-UNKNOWN"
> fi
>
--
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
More information about the samba-technical
mailing list