revert between 56095 -> 55830 in arch
[AROS.git] / scripts / repo_rev.sh
blobc8d1ebc24ab23ae414a21be9f98f1488056b0180
1 #!/bin/sh
3 # get repository revision via svn or via git
6 inside_git_repo=`cd $1 && git rev-parse --is-inside-work-tree 2>/dev/null`
8 if test -d $1/.svn; then
9 svn info $1 | sed -n 's/Revision: //p'
10 else
11 if [ "$inside_git_repo" = "true" ]; then
12 cd $1
13 git rev-parse --short HEAD
14 else
15 echo "NoRev"