From f05495dfc83739c795b5de9cf18e4cd6f29a7803 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 28 Nov 2007 21:20:24 -0600 Subject: Whitespace fixes/cleanup to all of the scripts Add the same vim modeline to all the files, as well as cleanup the newly added scripts a bit. If you look at this diff with the -w option, you'll see it really isn't all that significant. Signed-off-by: Dan McGee --- makechrootpkg | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index be376e4..329def7 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -57,8 +57,8 @@ if [ "$EUID" != "0" ]; then fi if [ ! -f PKGBUILD ]; then - echo "This must be run in a directory containing a PKGBUILD." - exit 1 + echo "This must be run in a directory containing a PKGBUILD." + exit 1 fi source PKGBUILD @@ -123,12 +123,14 @@ chmod +x "$uniondir/chrootbuild" mkarchroot -r "/chrootbuild" "$uniondir" if [ -e ${chrootdir}/rw/build/BUILD_FAILED ]; then - echo "Build failed, check \$CHROOT_DIR/rw/build" - rm ${chrootdir}/rw/build/BUILD_FAILED - exit 1 + echo "Build failed, check \$CHROOT_DIR/rw/build" + rm ${chrootdir}/rw/build/BUILD_FAILED + exit 1 else - source ${WORKDIR}/PKGBUILD - mv ${chrootdir}/rw/build/${pkgname}-${pkgver}-*.pkg.tar.gz ${WORKDIR} - rm -rf ${chrootdir}/rw/build/* - echo "Build complete" + source ${WORKDIR}/PKGBUILD + mv ${chrootdir}/rw/build/${pkgname}-${pkgver}-*.pkg.tar.gz ${WORKDIR} + rm -rf ${chrootdir}/rw/build/* + echo "Build complete" fi + +# vim:ft=sh:ts=4:sw=4:et: -- cgit v1.2.3-24-g4f1b