index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-11-28 21:20:24 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-28 21:20:24 -0600 |
commit | f05495dfc83739c795b5de9cf18e4cd6f29a7803 (patch) | |
tree | fc215294dc4a724d747648ceaef318f407d7c747 /makechrootpkg | |
parent | c229a696a23bf99c4dd8c4b40d942b74c0da1672 (diff) |
-rwxr-xr-x | makechrootpkg | 20 |
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: |