Mercurial > hg > vamp-build-and-test
view SCRIPTS/include.sh @ 100:793467b5e61c
Don't use subrepos, they're too fragile. Just use a list of repos and a script instead.
author | Chris Cannam |
---|---|
date | Fri, 04 Sep 2015 12:01:02 +0100 |
parents | a76b96026c2d |
children | b107ed308636 |
line wrap: on
line source
#!/bin/bash vcs_id() { dir="$1" ( cd "$dir" ; if [ -d .hg ]; then hg id | awk '{ print $1; }' elif [ -d .git ]; then git rev-parse --short HEAD elif [ -d .svn ]; then svn info | grep ^Revision | awk '{ print $2; }' else echo "unknown" fi ) }