[Bps-public-commit] Shipwright branch, master, updated. ec1ba4fad9f70bf52dfa3da5892a30fd825a4f3f

? sunnavy sunnavy at bestpractical.com
Wed Jun 30 20:42:12 EDT 2010


The branch, master has been updated
       via  ec1ba4fad9f70bf52dfa3da5892a30fd825a4f3f (commit)
      from  5e2045d229dcae02b6424ca00891d4f2dd62e5da (commit)

Summary of changes:
 share/etc/shipwright-perl-wrapper   |   28 +++++++++++++++-------------
 share/etc/shipwright-script-wrapper |   24 +++++++++++++-----------
 2 files changed, 28 insertions(+), 24 deletions(-)

- Log -----------------------------------------------------------------
commit ec1ba4fad9f70bf52dfa3da5892a30fd825a4f3f
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Jul 1 08:43:14 2010 +0800

    to make solaris happy, thanks to Andy Cobaugh

diff --git a/share/etc/shipwright-perl-wrapper b/share/etc/shipwright-perl-wrapper
index 0b08466..7feb1e8 100755
--- a/share/etc/shipwright-perl-wrapper
+++ b/share/etc/shipwright-perl-wrapper
@@ -1,7 +1,7 @@
 #!/bin/sh
 if [ -z `which readlink` ] || [ "`which readlink | grep 'no readlink in'`" ]; then  
     # if we don't have readlink, we're on some pitiful platform like solaris
-    test -h $0 && LINK=`ls -l $0 | awk -F\>  '{print $NF}'`
+    test -h $0 && LINK=`ls -l $0 | awk -F\>  '{print $NF}' | sed -e 's/^ //'`
 else
     LINK=`readlink $0`
 fi
@@ -21,19 +21,21 @@ if [ "$LINK" = '' ] || [ $LINK = '../etc/shipwright-perl-wrapper' ] || [ $LINK =
         PARENT_BASE_DIR=` (cd "$BASE_DIR/.."; pwd) `
         PARENT_WRAPPED_DIR=`basename "$PARENT_BASE_DIR"`
         WRAPPED_DIR="$PARENT_WRAPPED_DIR/$WRAPPED_DIR"
-        PATH=${BASE_DIR}/../../sbin:${BASE_DIR}/../../bin:${BASE_DIR}/../sbin:${BASE_DIR}/../bin:$PATH \
-        SHIPWRIGHT_PERL=$BASE_DIR/../../bin/perl \
-        PERL5LIB=${BASE_DIR}/../../lib/perl5/site_perl:${BASE_DIR}/../../lib/perl5:${PERL5LIB}\
-            LD_LIBRARY_PATH=${BASE_DIR}/../../lib:${LD_LIBRARY_PATH}\
-            DYLD_LIBRARY_PATH=${BASE_DIR}/../../lib:${DYLD_LIBRARY_PATH}\
-            exec ${BASE_DIR}/../../as/$AS/bin/perl ${BASE_DIR}/../../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
+        PATH=${BASE_DIR}/../../sbin:${BASE_DIR}/../../bin:${BASE_DIR}/../sbin:${BASE_DIR}/../bin:$PATH
+        SHIPWRIGHT_PERL=$BASE_DIR/../../bin/perl
+        PERL5LIB=${BASE_DIR}/../../lib/perl5/site_perl:${BASE_DIR}/../../lib/perl5:${PERL5LIB}
+        LD_LIBRARY_PATH=${BASE_DIR}/../../lib:${LD_LIBRARY_PATH}
+        DYLD_LIBRARY_PATH=${BASE_DIR}/../../lib:${DYLD_LIBRARY_PATH}
+        export PATH SHIPWRIGHT_PERL PERL5LIB LD_LIBRARY_PATH DYLD_LIBRARY_PATH
+        exec ${BASE_DIR}/../../as/$AS/bin/perl ${BASE_DIR}/../../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
     else
-        PATH=${BASE_DIR}/../sbin:${BASE_DIR}/../bin:${BASE_DIR}/../usr/sbin:${BASE_DIR}/../usr/bin:$PATH \
-        SHIPWRIGHT_PERL=$BASE_DIR/../bin/perl \
-        PERL5LIB=${BASE_DIR}/../lib/perl5/site_perl:${BASE_DIR}/../lib/perl5:${PERL5LIB}\
-            LD_LIBRARY_PATH=${BASE_DIR}/../lib:${LD_LIBRARY_PATH}\
-            DYLD_LIBRARY_PATH=${BASE_DIR}/../lib:${DYLD_LIBRARY_PATH}\
-            exec ${BASE_DIR}/../as/$AS/bin/perl ${BASE_DIR}/../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
+        PATH=${BASE_DIR}/../sbin:${BASE_DIR}/../bin:${BASE_DIR}/../usr/sbin:${BASE_DIR}/../usr/bin:$PATH
+        SHIPWRIGHT_PERL=$BASE_DIR/../bin/perl
+        PERL5LIB=${BASE_DIR}/../lib/perl5/site_perl:${BASE_DIR}/../lib/perl5:${PERL5LIB}
+        LD_LIBRARY_PATH=${BASE_DIR}/../lib:${LD_LIBRARY_PATH}
+        DYLD_LIBRARY_PATH=${BASE_DIR}/../lib:${DYLD_LIBRARY_PATH}
+        export PATH SHIPWRIGHT_PERL PERL5LIB LD_LIBRARY_PATH DYLD_LIBRARY_PATH
+        exec ${BASE_DIR}/../as/$AS/bin/perl ${BASE_DIR}/../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
     fi
 else
     exec $LINK "$@"
diff --git a/share/etc/shipwright-script-wrapper b/share/etc/shipwright-script-wrapper
index b7e1b07..43bd710 100755
--- a/share/etc/shipwright-script-wrapper
+++ b/share/etc/shipwright-script-wrapper
@@ -1,7 +1,7 @@
 #!/bin/sh
 if [ -z `which readlink` ] || [ "`which readlink | grep 'no readlink in'`" ]; then  
     # if we don't have readlink, we're on some pitiful platform like solaris
-    test -h $0 && LINK=`ls -l $0 | awk -F\>  '{print $NF}'`
+    test -h $0 && LINK=`ls -l $0 | awk -F\>  '{print $NF}' | sed -e 's/^ //'`
 else
     LINK=`readlink $0`
 fi
@@ -19,17 +19,19 @@ if [ "$LINK" = '' ] || [ $LINK = '../etc/shipwright-script-wrapper' ] || [ $LINK
         PARENT_BASE_DIR=` (cd "$BASE_DIR/.."; pwd) `
         PARENT_WRAPPED_DIR=`basename "$PARENT_BASE_DIR"`
         WRAPPED_DIR="$PARENT_WRAPPED_DIR/$WRAPPED_DIR"
-        PATH=${BASE_DIR}/../../sbin:${BASE_DIR}/../../bin:${BASE_DIR}/../sbin:${BASE_DIR}/../bin:$PATH \
-        PERL5LIB=${BASE_DIR}/../../lib/perl5/site_perl:${BASE_DIR}/../../lib/perl5:${PERL5LIB}\
-            LD_LIBRARY_PATH=${BASE_DIR}/../../lib:${LD_LIBRARY_PATH}\
-            DYLD_LIBRARY_PATH=${BASE_DIR}/../../lib:${DYLD_LIBRARY_PATH}\
-            exec ${BASE_DIR}/../../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
+        PATH=${BASE_DIR}/../../sbin:${BASE_DIR}/../../bin:${BASE_DIR}/../sbin:${BASE_DIR}/../bin:$PATH 
+        PERL5LIB=${BASE_DIR}/../../lib/perl5/site_perl:${BASE_DIR}/../../lib/perl5:${PERL5LIB}
+        LD_LIBRARY_PATH=${BASE_DIR}/../../lib:${LD_LIBRARY_PATH}
+        DYLD_LIBRARY_PATH=${BASE_DIR}/../../lib:${DYLD_LIBRARY_PATH}
+        export PATH PERL5LIB LD_LIBRARY_PATH DYLD_LIBRARY_PATH
+        exec ${BASE_DIR}/../../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
     else
-        PATH=${BASE_DIR}/../sbin:${BASE_DIR}/../bin:${BASE_DIR}/../usr/sbin:${BASE_DIR}/../usr/bin:$PATH \
-        PERL5LIB=${BASE_DIR}/../lib/perl5/site_perl:${BASE_DIR}/../lib/perl5:${PERL5LIB}\
-            LD_LIBRARY_PATH=${BASE_DIR}/../lib:${LD_LIBRARY_PATH}\
-            DYLD_LIBRARY_PATH=${BASE_DIR}/../lib:${DYLD_LIBRARY_PATH}\
-            exec ${BASE_DIR}/../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
+        PATH=${BASE_DIR}/../sbin:${BASE_DIR}/../bin:${BASE_DIR}/../usr/sbin:${BASE_DIR}/../usr/bin:$PATH
+        PERL5LIB=${BASE_DIR}/../lib/perl5/site_perl:${BASE_DIR}/../lib/perl5:${PERL5LIB}
+        LD_LIBRARY_PATH=${BASE_DIR}/../lib:${LD_LIBRARY_PATH}
+        DYLD_LIBRARY_PATH=${BASE_DIR}/../lib:${DYLD_LIBRARY_PATH}
+        export PATH PERL5LIB LD_LIBRARY_PATH DYLD_LIBRARY_PATH
+        exec ${BASE_DIR}/../as/$AS/${WRAPPED_DIR}/${FILENAME}  "$@"
     fi
 else
     exec $LINK "$@"

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list