Revision 7f6d9b30

View differences:

version.sh
4 4
revision=$(cat snapshot_version 2> /dev/null)
5 5
test $revision || revision=$(cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
6 6
test $revision || revision=$(cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2)
7
test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null)
7
test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n
8
p
9
q
10
}' .svn/entries 2>/dev/null)
8 11
test $revision && revision=SVN-r$revision
9 12

  
10 13
# check for git short hash

Also available in: Unified diff