Skip to content

Commit

Permalink
build_utils/get_rev_number: remove SVN references
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed Oct 29, 2018
1 parent 6242210 commit 712a5c1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tools/build_utils/get_revision_number
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
#!/bin/sh

export LANG=C
export LC_MESSAGES=C
export LC_ALL=C

[ -z "$1" ] || cd $1

if [ -s $1/../REVISION ]; then
cat ../REVISION

elif svn info >/dev/null 2>&1 ; then
echo -n "svn:"
svn info 2>&1 | grep "Last Changed Rev: " | cut -d: -f2 | tr -d ' '
[ -z "$1" ] || cd "$1"

if [ -s "$1/../REVISION" ]; then
cat "$1/../REVISION"
elif git rev-parse > /dev/null 2>&1 ; then
echo -n "git:"
git rev-parse --short HEAD

fi

0 comments on commit 712a5c1

Please sign in to comment.