Skip to content

Commit

Permalink
Add support for tup variants
Browse files Browse the repository at this point in the history
  • Loading branch information
eszabpt committed Dec 22, 2014
1 parent 4f1f326 commit 516cd6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/gcc-rtags-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ if [ "$RTAGS_GCC_WRAPPER" = "1" ]; then
fi

pushd . >/dev/null
if pwd | grep -q /.tup/mnt/@tupjob-; then
if pwd | grep --quiet /.tup/mnt/@tupjob-; then
cd "/${PWD#*/.tup/mnt/@tupjob-*/}"
cd "$(pwd | sed 's|/build-[^/]*/|/|')"
fi

rc=$(which rc)
Expand Down

0 comments on commit 516cd6d

Please sign in to comment.