diff options
Diffstat (limited to 'setup_env.sh')
-rwxr-xr-x | setup_env.sh | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/setup_env.sh b/setup_env.sh index 1a1972a..ace578d 100755 --- a/setup_env.sh +++ b/setup_env.sh @@ -75,10 +75,10 @@ sed -e "s/REPLACEME/$ARCH/g" templates/pacman.conf.chroot > /tmp/pacman.conf.chr status=$? if [ ! $status = 0 ] then - echo - echo "********************************************************" - echo "*** An error occured creating the chroot ***" - echo "********************************************************" + printf "\n" + printf "%s\n" "********************************************************" + printf "*** %-48s ***\n" " An error occured creating the chroot" + printf "%s\n" "********************************************************" exit 1 fi #clear out the default resolve.con @@ -102,16 +102,14 @@ fi #create custom enter_dev_chroot.sh script #sed -e "s/REPLACEME/$ARCH/g" templates/enter_dev_chroot.sh > ../enter_dev_chroot.$ARCH.sh -DIR=$(pwd) ; DIR=${DIR##*/} -ln -s $DIR/templates/enter_dev_chroot.sh ../enter_dev_chroot.$ARCH - -chmod 755 ../enter_dev_chroot.$ARCH.sh -echo "********************************************************" -echo "** To enter the chroot (build_root.$ARCH) run: **" -echo "** cd .. **" -echo "** ./enter_dev_chroot.$ARCH **" -echo "********************************************************" - +cp templates/enter_dev_chroot.sh ../enter_dev_chroot.$ARCH +chmod 755 ../enter_dev_chroot.$ARCH + +printf "%s\n" "********************************************************" +printf "** %-50s **\n" " To enter the chroot (build_root.$ARCH) run:" +printf "** %-50s **\n" " cd .." +printf "** %-50s **\n" " ./enter_dev_chroot.$ARCH" +printf "%s\n" "********************************************************" #copy makepkg.conf into the chroot sed -e "s/i686/$ARCH/g" templates/makepkg.conf > ../build_root.$ARCH/etc/makepkg.conf |