don't check when its clang masquerading as gcc
[AROS.git] / scripts / repo_id.sh
blob64f578a001f64210a5f2a71c05490a80475a693c
1 #!/bin/sh
3 # get repository ID 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 cd $1
10 svn info | grep '^URL' | awk '{print $NF}'
11 else
12 if [ "$inside_git_repo" = "true" ]; then
13 cd $1
14 git config --get remote.origin.url
15 else
16 echo "Unknown"