Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
executable file
·
15 lines (13 loc) · 351 Bytes

File metadata and controls

executable file
·
15 lines (13 loc) · 351 Bytes
 
1
2
3
4
5
6
7
8
#!/bin/sh
#
# Print the current source revision, if available
srcdir=`dirname $0`/..
if [ -d $srcdir/.svn ]; then
cd $srcdir
Jan 19, 2009
Jan 19, 2009
9
10
11
(svnversion -c 2>/dev/null || svnversion .) | \
sed -e 's,\([0-9]*\)[A-Z]*,\1,' \
-e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,'
Sep 19, 2009
Sep 19, 2009
12
13
14
else
cd $srcdir
git svn info | grep Revision | awk '{ print $2 }'