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.045042 seconds and 5 git commands to generate.