diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-18 01:04:50 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-18 01:04:50 +0000 |
commit | 2faabf3d798a8bab6d6b6a13c40e4c0d51bbf826 (patch) | |
tree | 361c494acac60d6bdebaaf09da449354664eee02 /contrib | |
parent | ffaf4453712ac7b47b0157ba2c7201e77a54c369 (diff) |
- (bal) aixbff package updated by dtucker@zip.com.au
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/aix/buildbff.sh | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/contrib/aix/buildbff.sh b/contrib/aix/buildbff.sh index d531e53f..5c09c6b7 100755 --- a/contrib/aix/buildbff.sh +++ b/contrib/aix/buildbff.sh @@ -18,6 +18,16 @@ X11_FORWARDING=no umask 022 +startdir=`pwd` + +# Path to inventory.sh: same place as buildbff.sh +if echo $0 | egrep '^/' +then + inventory=`dirname $0`/inventory.sh # absolute path +else + inventory=`pwd`/`dirname $0`/inventory.sh # relative path +fi + # # We still support running from contrib/aix, but this is depreciated # @@ -45,14 +55,6 @@ objdir=`pwd` PKGNAME=openssh PKGDIR=package -# Path to inventory.sh: same place as buildbff.sh -if echo $0 | egrep '^/' -then - inventory=`dirname $0`/inventory.sh # absolute path -else - inventory=`pwd`/`dirname $0`/inventory.sh # relative path -fi - # # Collect local configuration settings to override defaults # @@ -328,15 +330,10 @@ rm -f $PKGNAME-$VERSION.bff ) | backup -i -q -f ../$PKGNAME-$VERSION.bff $filelist # -# Move package into final location +# Move package into final location and clean up # -if [ "$contribaix" = "1" ] -then - mv ../$PKGNAME-$VERSION.bff $objdir/contrib/aix -else - mv ../$PKGNAME-$VERSION.bff $objdir -fi - +mv ../$PKGNAME-$VERSION.bff $startdir +cd $startdir rm -rf $objdir/$PKGDIR echo $0: done. |