summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-29 04:20:24 +0100
committerDan McGee <dan@archlinux.org>2007-11-29 04:20:24 +0100
commitf05495dfc83739c795b5de9cf18e4cd6f29a7803 (patch)
treefc215294dc4a724d747648ceaef318f407d7c747 /makechrootpkg
parentc229a696a23bf99c4dd8c4b40d942b74c0da1672 (diff)
downloaddevtools-f05495dfc83739c795b5de9cf18e4cd6f29a7803.tar.gz
devtools-f05495dfc83739c795b5de9cf18e4cd6f29a7803.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg20
1 files changed, 11 insertions, 9 deletions
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: