]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Clean up bash rc
authorBrian West <brian@freeswitch.org>
Fri, 21 Mar 2014 15:59:38 +0000 (10:59 -0500)
committerBrian West <brian@freeswitch.org>
Fri, 21 Mar 2014 15:59:38 +0000 (10:59 -0500)
support-d/.bashrc

index 3efd07f20e935914b8be31898d0428c02a40b538..ce221896bfeefe2b26ee438d1d5e9b3be27c6804 100644 (file)
@@ -1,11 +1,37 @@
 #
 # /etc/profile: system-wide defaults for bash(1) login shells
 #
+export UNAME=`uname -s`
 
 if [ "`id -u`" = "0" ]; then
-    export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/usr/local/sbin:/usr/local/freeswitch/bin"
-else
-    export PATH="/bin:/usr/bin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/usr/local/sbin"
+    if [ "${UNAME}" = "Linux" ]; then
+       export PATH="$PATH:/opt/bin:/usr/local/bin:/usr/local/sbin:/usr/local/freeswitch/bin"
+       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig
+    fi
+    if [ "${UNAME}" = "SunOS" ]; then
+       export PATH="$PATH:/opt/64/bin:/opt/bin:/usr/local/bin:/usr/local/sbin:/usr/local/freeswitch/bin"
+       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/64/lib/pkgconfig:/usr/lib/amd64/pkgconfig:/opt/lib/pkgconfig:/usr/lib/pkgconfig
+    fi
+    if [ "${UNAME}" = "OpenBSD" ]; then
+       export PATH="$PATH:/usr/local/freeswitch/bin"
+       export AUTOCONF_VERSION=2.69
+       export AUTOMAKE_VERSION=1.13
+       export LIBTOOL=/usr/local/bin/libtoolize
+       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
+    fi
+    if [ "${UNAME}" = "NetBSD" ]; then
+       export PATH="$PATH:/usr/local/freeswitch/bin"
+       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/pkg/lib/pkgconfig
+       export PKG_PATH=ftp://199.233.217.249/pub/pkgsrc/packages/NetBSD/amd64/6.1.3/All
+    fi
+    if [ "${UNAME}" = "FreeBSD" ]; then
+       export PATH="$PATH:/usr/local/freeswitch/bin"
+       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/pkg/lib/pkgconfig
+    fi
+    if [ "${UNAME}" = "DragonFly" ]; then
+       export PATH="$PATH:/usr/local/freeswitch/bin"
+       export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/pkg/lib/pkgconfig
+    fi
 fi
 
 if [ ! -f ~/.inputrc ]; then
@@ -19,7 +45,6 @@ export LESS="-R"
 export CHARSET="ISO-8859-1"
 export PS1='\n\[\033[01;31m\]\u@\h\[\033[01;36m\] [\d \@] \[\033[01;33m\] \w\n\[\033[00m\]<\#>:'
 export PS2="\[\033[1m\]> \[\033[0m\]"
-export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
 export VISUAL=emacs
 export GIT_SSL_NO_VERIFY=true