From 90f603e2be40d996c421ae8e95464e38911eabaf Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 21 Jun 2014 07:41:41 +0200 Subject: s/TOPDIR/ADK_TOPDIR/ to avoid namespace collisions in some packages, rename TOPDIR. Sorry you need to make cleandir && make prereq && make --- scripts/create.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/create.sh') diff --git a/scripts/create.sh b/scripts/create.sh index f15fdc1bc..7422cbf4f 100755 --- a/scripts/create.sh +++ b/scripts/create.sh @@ -27,13 +27,13 @@ # Create a hard disc image, bootable using GNU GRUB2, with an ext2fs # root partition and an OpenADK cfgfs partition. -TOPDIR=$(pwd) +ADK_TOPDIR=$(pwd) HOST=$(gcc -dumpmachine) me=$0 case :$PATH: in -(*:$TOPDIR/host_$HOST/usr/bin:*) ;; -(*) export PATH=$PATH:$TOPDIR/host_$HOST/usr/bin ;; +(*:$ADK_TOPDIR/host_$HOST/usr/bin:*) ;; +(*) export PATH=$PATH:$ADK_TOPDIR/host_$HOST/usr/bin ;; esac test -n "$KSH_VERSION" || exec mksh "$me" "$@" @@ -46,7 +46,7 @@ fi me=${me##*/} -TOPDIR=$(realpath .) +ADK_TOPDIR=$(realpath .) ostype=$(uname -s) function usage { @@ -182,7 +182,7 @@ else print Preparing partition table... fi dd if=/dev/zero of="$T/firsttrack" count=$partofs 2>/dev/null -echo $corestartsec $coreendsec | mksh "$TOPDIR/scripts/bootgrub.mksh" \ +echo $corestartsec $coreendsec | mksh "$ADK_TOPDIR/scripts/bootgrub.mksh" \ -A -g $((cyls - cfgfs)):$heads:$secs -M 1:0x83 -O $partofs | \ dd of="$T/firsttrack" conv=notrunc 2>/dev/null if (( usegrub )); then @@ -325,6 +325,6 @@ case $tgttype { } print Finishing up... -cd "$TOPDIR" +cd "$ADK_TOPDIR" rm -rf "$T" exit 0 -- cgit v1.2.3