Fixes to scripts:

- hg updates to the parent revision (for cases that use bookmarks
instead of branches - recommended when interacting with git)
- ccache now points to the "external" cache
This commit is contained in:
Bernhard Gschaider 2014-02-10 14:22:01 +01:00
parent 20d25e610c
commit 5572d00013
2 changed files with 15 additions and 3 deletions

View file

@ -44,10 +44,12 @@ then
echo
echo "Parent is mercurial. Hello Bernhard"
echo
branchName=`hg branch -R $OFParent`
# branchName=`hg branch -R $OFParent`
idName=`hg id -i -R $OFParent | sed -e "s/\+//"`
# sed removes + in case of a 'tainted' parent
echo "Parent is on branch $branchName"
su vagrant - -c "hg clone -u $branchName $OFParent $OFClone"
echo "Parent is on id $idName"
su vagrant - -c "hg clone -u $idName $OFParent $OFClone"
echo
else
echo

View file

@ -0,0 +1,10 @@
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export CCACHE_DIR=/vagrant/ccache4vm