summaryrefslogtreecommitdiffstats
path: root/setup_env.sh
diff options
context:
space:
mode:
authorR. Dale Thomas <rdt@rdt1.org>2008-10-16 08:12:19 (GMT)
committerR. Dale Thomas <rdt@rdt1.org>2008-10-16 08:12:19 (GMT)
commit86200220d0f67d160e62e99c4079f2197426c4b9 (patch)
tree3875b0f0e2efc0895a723e77fc730c1ef6159917 /setup_env.sh
parentef7e29326b258de2dbe14d95b7029d3d9c9c2740 (diff)
downloadlinhes_dev-86200220d0f67d160e62e99c4079f2197426c4b9.zip
Make sure the printout lines up as desired.
Diffstat (limited to 'setup_env.sh')
-rwxr-xr-xsetup_env.sh26
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