]> err.no Git - dotfiles/commitdiff
try to use store intelligently
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 17 Sep 2003 23:45:35 +0000 (23:45 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 17 Sep 2003 23:45:35 +0000 (23:45 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@189 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index 0f4f1c593a7d1176a7b945f050e1ed7857ffdd2f..b86d9fe866409d02866aacd15b24daf221c50c8c 100644 (file)
@@ -10,6 +10,12 @@ if [ `uname -s` = "FreeBSD" ]; then
     unalias ls
 fi
 
+is_debian () {
+    if [ -f /etc/debian_version ]; then
+        return 0
+    fi
+    return 1
+}
 
 setpathifdir () {
     if [ -d "$1" ]; then
@@ -23,8 +29,13 @@ appendpathifdir () {
     fi
 }
 
-appendpathifdir /store/gnu/bin
-appendpathifdir /store/bin
+if is_debian; then
+    appendpathifdir /store/gnu/bin
+    appendpathifdir /store/bin
+else
+    setpathifdir /store/gnu/bin
+    setpathifdir /store/bin
+fi
 setpathifdir /usr/local/bin
 setpathifdir $HOME/usr/bin
 setpathifdir $HOME/bin