diff options
author | Erik Troan <ewt@redhat.com> | 2000-04-12 22:36:08 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-04-12 22:36:08 +0000 |
commit | 9f24a0217b199271c0f17cb3ba4f5f983d88a604 (patch) | |
tree | 2f877f01838edbc1fb0f37de415568fb3a70c3f7 /scripts | |
parent | 35d4d265c965ff7b21c95f16dbd07d8191935a48 (diff) | |
download | anaconda-9f24a0217b199271c0f17cb3ba4f5f983d88a604.tar.gz anaconda-9f24a0217b199271c0f17cb3ba4f5f983d88a604.tar.xz anaconda-9f24a0217b199271c0f17cb3ba4f5f983d88a604.zip |
use TOPDIR to find arch-specific scripts
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mk-images | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/mk-images b/scripts/mk-images index 844d11bcf..0da3f68bc 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -7,6 +7,13 @@ usage () { if [ -z "$1" -o -z "$2" -o -z "$3" ]; then usage; fi +TOPDIR=$(echo $0 | sed "s,/[^/]*$,,") +if [ $TOPDIR = $0 ]; then + $TOPDIR="." +fi + +TOPDIR=$(cd $TOPDIR; pwd) + # Set, verify, and create paths KERNELPATH=$1 IMAGEPATH=$2 @@ -355,6 +362,6 @@ makedriverdisk () { rundepmod "$KERNELROOT/lib/modules/$version/*/*.o" $MODDEPS rm -f $MODDEPS.foo -. mk-images.${ARCH} +. $TOPDIR/mk-images.${ARCH} rm -rf $KERNELROOT |