diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
commit | 9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch) | |
tree | ae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /aaabasicfs/extrapaths.sh | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2 nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip |
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'aaabasicfs/extrapaths.sh')
-rw-r--r-- | aaabasicfs/extrapaths.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/aaabasicfs/extrapaths.sh b/aaabasicfs/extrapaths.sh new file mode 100644 index 000000000..c21ca0aae --- /dev/null +++ b/aaabasicfs/extrapaths.sh @@ -0,0 +1,21 @@ +if [ -d /usr/local/lib/pkgconfig ] ; then + pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH +fi +if [ -d /usr/local/bin ]; then + pathprepend /usr/local/bin +fi +if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then + pathprepend /usr/local/sbin +fi +for directory in $(find /opt/*/lib/pkgconfig -type d 2>/dev/null); do + pathappend $directory PKG_CONFIG_PATH +done +for directory in $(find /opt/*/bin -type d 2>/dev/null); do + pathappend $directory +done +if [ -d ~/bin ]; then + pathprepend ~/bin +fi +#if [ $EUID -gt 99 ]; then +# pathappend . +#fi |