072d71425326445589dce97cf51e9587f624db0a
3 revision
=$
(svn info|
grep Revision|
sed 's/Revision: //')
4 stat
=$
(svn status|
grep '^M')
5 elif [ -d .git
/svn
]; then
6 revision
=$
(git svn info|
grep Revision|
sed 's/Revision: //')
7 stat
=$
(git status|
grep 'modified: ')
9 echo No SVN working copy
!
13 if [ -n "$stat" ]; then
14 status
=" with local changes"
19 echo '// This file is created automatically, your changes will be lost.' > svnrevision.h
20 echo '#define SVNREVISION "r'$revision$status'"' >> svnrevision.h
This page took 0.042113 seconds and 3 git commands to generate.