From 87f332f2a9c6613b3015b2f992958abc8e70298e Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 11 Mar 2006 11:14:28 +0000 Subject: [PATCH] More topinstalldir trouble. This fixes it for now but it needs a rethink --- buildpkg.packaging.irix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index 7c56973..2c16c3c 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -352,13 +352,14 @@ add_dir() local defperm=$3 local owner=$4 local group=$5 - local topinstd="${topinstalldir:1}" + local topinstd="$topinstalldir" - [ ! "$topinstalldir" == "/" ] && topinstalldir="${topinstalldir}/" + #[ ! "$topinstalldir" == "/" ] && topinstalldir="${topinstalldir}/" + [ ! "$topinstd" = "/" ] && topinstd="${topinstd:1}/" # This is a workaround # Sometimes $topinstalldir:1 returns garbage when topinstalldir=/ - [ "$topinstalldir" = "/" ] && topinstd="" + [ "$topinstd" = "/" ] && topinstd="" # Note that dir blablah is *not* added to $metadir/files.tmp local FILES=$($FIND $fspec -type d -print)