OSSP CVS Repository

ossp - Check-in [4766]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4766
Date: 2004-Oct-24 21:10:38 (local)
2004-Oct-24 19:10:38 (UTC)
User:rse
Branch:
Comment: add df wrapper; fix platform inits; add ps wrapper
Tickets:
Inspections:
Files:
ossp-pkg/due/.due/due.fs.sh      1.1 -> 1.2     3 inserted, 0 deleted
ossp-pkg/due/.due/due.platform.sh      1.2 -> 1.3     18 inserted, 4 deleted

ossp-pkg/due/.due/due.fs.sh 1.1 -> 1.2

--- due.fs.sh    2004/10/22 19:32:52     1.1
+++ due.fs.sh    2004/10/24 19:10:38     1.2
@@ -42,3 +42,6 @@
     return 0
 }
 
+#   canonicalization of df(1) output
+alias df='command df -k'
+


ossp-pkg/due/.due/due.platform.sh 1.2 -> 1.3

--- due.platform.sh      2004/10/22 19:32:52     1.2
+++ due.platform.sh      2004/10/24 19:10:38     1.3
@@ -35,13 +35,13 @@
 OSVEND=unknown
 
 #   adjust platform specific base run-time environment
-case $OSTYPE in
-    FreeBSD* )
+case $OSNAME in
+    freebsd )
         PATH="/bin:/usr/bin:/sbin:/usr/sbin"
         LD_LIBRARY_PATH="/usr/lib:/usr/lib/compat"
         MANPATH="/usr/share/man"
         ;;
-    Linux* )
+    linux )
         PATH="/bin:/usr/bin:/sbin:/usr/sbin"
         LD_LIBRARY_PATH="/lib:/usr/lib"
         MANPATH="/usr/man:/usr/share/man"
@@ -51,7 +51,7 @@
         elif [ -f /etc/SuSE-release   ]; then OSVEND=SuSE
         fi
         ;;
-    SunOS* ) 
+    solaris ) 
         PATH="/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin"
         LD_LIBRARY_PATH="/usr/lib:/usr/ccs/lib"
         MANPATH="/usr/share/man"
@@ -64,3 +64,17 @@
 esac
 activate_generic /usr/X11R6 /usr/X11 /usr/openwin
 
+#   platform specific convenience command line argument mapping
+case $OSNAME in
+    solaris | hpux )
+        function ps () { 
+            if [ ".$1" = ".-ax" -o ".$1" = ".-aux" ]; then
+                shift
+                command ps -ef "$@"
+            else
+                command ps "$@"
+            fi
+        }
+        ;;
+esac    
+

CVSTrac 2.0.1