diff options
Diffstat (limited to 'contrib/aix/buildbff.sh')
-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 d531e53f4..5c09c6b75 100755 --- a/contrib/aix/buildbff.sh +++ b/contrib/aix/buildbff.sh | |||
@@ -18,6 +18,16 @@ X11_FORWARDING=no | |||
18 | 18 | ||
19 | umask 022 | 19 | umask 022 |
20 | 20 | ||
21 | startdir=`pwd` | ||
22 | |||
23 | # Path to inventory.sh: same place as buildbff.sh | ||
24 | if echo $0 | egrep '^/' | ||
25 | then | ||
26 | inventory=`dirname $0`/inventory.sh # absolute path | ||
27 | else | ||
28 | inventory=`pwd`/`dirname $0`/inventory.sh # relative path | ||
29 | fi | ||
30 | |||
21 | # | 31 | # |
22 | # We still support running from contrib/aix, but this is depreciated | 32 | # We still support running from contrib/aix, but this is depreciated |
23 | # | 33 | # |
@@ -45,14 +55,6 @@ objdir=`pwd` | |||
45 | PKGNAME=openssh | 55 | PKGNAME=openssh |
46 | PKGDIR=package | 56 | PKGDIR=package |
47 | 57 | ||
48 | # Path to inventory.sh: same place as buildbff.sh | ||
49 | if echo $0 | egrep '^/' | ||
50 | then | ||
51 | inventory=`dirname $0`/inventory.sh # absolute path | ||
52 | else | ||
53 | inventory=`pwd`/`dirname $0`/inventory.sh # relative path | ||
54 | fi | ||
55 | |||
56 | # | 58 | # |
57 | # Collect local configuration settings to override defaults | 59 | # Collect local configuration settings to override defaults |
58 | # | 60 | # |
@@ -328,15 +330,10 @@ rm -f $PKGNAME-$VERSION.bff | |||
328 | ) | backup -i -q -f ../$PKGNAME-$VERSION.bff $filelist | 330 | ) | backup -i -q -f ../$PKGNAME-$VERSION.bff $filelist |
329 | 331 | ||
330 | # | 332 | # |
331 | # Move package into final location | 333 | # Move package into final location and clean up |
332 | # | 334 | # |
333 | if [ "$contribaix" = "1" ] | 335 | mv ../$PKGNAME-$VERSION.bff $startdir |
334 | then | 336 | cd $startdir |
335 | mv ../$PKGNAME-$VERSION.bff $objdir/contrib/aix | ||
336 | else | ||
337 | mv ../$PKGNAME-$VERSION.bff $objdir | ||
338 | fi | ||
339 | |||
340 | rm -rf $objdir/$PKGDIR | 337 | rm -rf $objdir/$PKGDIR |
341 | 338 | ||
342 | echo $0: done. | 339 | echo $0: done. |