From: Rudolf Polzer Date: Fri, 20 May 2011 12:44:25 +0000 (+0200) Subject: make sure we actually read the user profile when compiling remotely (needed for ccache) X-Git-Tag: xonotic-v0.5.0~94 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=c8b899ef1adc8e88174085a04bd42698271f0ad7;hp=d5b2b8067a4b7aa59390a5a8e5528671a8010294;p=xonotic%2Fxonotic.git make sure we actually read the user profile when compiling remotely (needed for ccache) --- diff --git a/all b/all index 207f645b..381e9f7f 100755 --- a/all +++ b/all @@ -1619,7 +1619,7 @@ case "$cmd" in *) verbose rsync --delete -zLvaSHP "$srcdir"/ "$host:$buildpath/" verbose rsync --delete -zLvaSHP "$depsdir"/ "$host:$buildpath.deps/" - verbose ssh "$host" "export LC_ALL=C; ln -snf $buildpath.deps $buildpath/.deps && cd $buildpath && nice -`nice` make clean $maketargets $makeflags" + verbose ssh "$host" "[ -f /etc/profile ] && . /etc/profile; [ -f ~/.profile ] && . ~/.profile; export LC_ALL=C; ln -snf $buildpath.deps $buildpath/.deps && cd $buildpath && nice -`nice` make clean $maketargets $makeflags" for f in $targetfiles; do verbose rsync -zvaSHP "$host:$buildpath/${f%:*}" "${f##*:}" || true done