Let's just go with revcount since we're going to build from tip anyway where it matters (this should be ok for LGPL and release repo)
parent
c1a06438ba
commit
d12c9550e9
|
|
@ -394,14 +394,14 @@ fi
|
|||
if [ \( $WANTS_VERSION -eq $TRUE \) -o \( $WANTS_CONFIG -eq $TRUE \) ] ; then
|
||||
echo "Versioning..."
|
||||
pushd ..
|
||||
if [ -d .git ]
|
||||
then
|
||||
buildVer=${AUTOBUILD_BUILD_ID}
|
||||
else
|
||||
buildVer=`hg summary | head -1 | cut -d " " -f 2 | cut -d : -f 1 | grep "[0-9]*"`
|
||||
AUTOBUILD_BUILD_ID=${buildVer}
|
||||
fi
|
||||
|
||||
if [ -d .git ]
|
||||
then
|
||||
buildVer=`git rev-list --count HEAD`
|
||||
else
|
||||
buildVer=`hg summary | head -1 | cut -d " " -f 2 | cut -d : -f 1 | grep "[0-9]*"`
|
||||
fi
|
||||
export revision=${buildVer}
|
||||
|
||||
majorVer=`cat indra/newview/VIEWER_VERSION.txt | cut -d "." -f 1`
|
||||
minorVer=`cat indra/newview/VIEWER_VERSION.txt | cut -d "." -f 2`
|
||||
patchVer=`cat indra/newview/VIEWER_VERSION.txt | cut -d "." -f 3`
|
||||
|
|
|
|||
Loading…
Reference in New Issue