[ooo-build-commit] .: bin/g

Thorsten Behrens thorsten at kemper.freedesktop.org
Tue Sep 21 08:49:01 PDT 2010


 bin/g |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d36e6ad9312e90d6196961bce45ee07b9fa06918
Author: Thorsten Behrens <thb at openoffice.org>
Date:   Tue Sep 21 17:31:21 2010 +0200

    Using portable replacement for readlin

diff --git a/bin/g b/bin/g
index a755a6a..4c3de66 100755
--- a/bin/g
+++ b/bin/g
@@ -9,9 +9,9 @@ if [ "$#" -eq "0" ] ; then
     exit $?
 fi
 
-CLONEDIR=`readlink -f $0 | sed 's/\/bin\/g$/\/clone/'`
+CLONEDIR=`perl -e 'use Cwd "abs_path"; print abs_path(shift);' $0 | sed -e ' s/\/bin\/g$/\/clone/'`
 if [ ! -e ${CLONEDIR} ]; then mkdir -p $CLONEDIR; fi
-RAWBUILDDIR=`readlink -f $0 | sed 's/\/bin\/g$/\/rawbuild/'`
+RAWBUILDDIR=`perl -e 'use Cwd "abs_path"; print abs_path(shift);' $0 | sed -e ' s/\/bin\/g$/\/rawbuild/'`
 if [ ! -e ${RAWBUILDDIR} ]; then mkdir -p $RAWBUILDDIR; fi
 
 # extra params for some commands, like log
@@ -72,7 +72,7 @@ while shift ; do
         fi
 
         # make the paths absolute
-        FILES[$FILESNUM]=`readlink -n -f "$PARAM"`
+        FILES[$FILESNUM]=`perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM"`
         if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then
             # it is probably not a file, but a tag name, or something
             FILES[$FILESNUM]="$PARAM"


More information about the ooo-build-commit mailing list