Mercurial > hg > vamp-build-and-test
view SCRIPTS/include.sh @ 77:2e60b888e526
Try distclean before clean (otherwise we can end up trying to add to archives of the wrong arch for example)
author | Chris Cannam |
---|---|
date | Thu, 30 Oct 2014 16:06:26 +0000 |
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 ) }