summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/extrapaths.sh
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
commit31cae2538311f58c8bba5441313d041436f11ce6 (patch)
treecc1fef0aaed8a6affc57b8abff2f8cf7690bb6c1 /base/aaabasicfs/extrapaths.sh
downloadnutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.gz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.bz2
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.xz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.zip
Ajout de aaabasicfs#2009-1
Diffstat (limited to 'base/aaabasicfs/extrapaths.sh')
-rw-r--r--base/aaabasicfs/extrapaths.sh21
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