diff options
Diffstat (limited to 'base/aaabasicfs/extrapaths.sh')
-rw-r--r-- | base/aaabasicfs/extrapaths.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/base/aaabasicfs/extrapaths.sh b/base/aaabasicfs/extrapaths.sh new file mode 100644 index 000000000..c21ca0aae --- /dev/null +++ b/base/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 |