Commits

Shlomi Fish committed 5d1129b

Correct the empty ":" CPATH component.

On Debian systems.

Comments (0)

Files changed (1)

shlomif-settings/Bash/defs/common.bash

 export GIT_EDITOR="$SVN_EDITOR" HGEDITOR="$SVN_EDITOR"
 umask 022
 if test -e /etc/debian_version ; then
-    export CPATH="$HOME/apps/libtap/include:$CPATH"
+    export CPATH="$(perl -e 'print join(":", grep { ! $encountered{$_}++ } grep { length($_) > 0 } map { split /:/, $_ } $ENV{CPATH}, "$ENV{HOME}/apps/libtap/include");')"
     export CMAKE_PREFIX_PATH="$HOME/apps/libtap:$CMAKE_PREFIX_PATH"
 fi
 mikmod()