diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-02 22:42:41 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-02 22:42:41 -0500 |
commit | add237f713412e85be7a57c74726b5cd4e69bed9 (patch) | |
tree | 6241c90744b0c0af79931c44f18eda06f4be4e6f /src/chroot-tools/libremakepkg | |
parent | 1676629ba3b7b7fa0b48d455e9a4d6d09823004b (diff) |
libremakepkg: learn '-C' to dissable using the chrootv20121202
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-x | src/chroot-tools/libremakepkg | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg index 4e810d1..2769d5d 100755 --- a/src/chroot-tools/libremakepkg +++ b/src/chroot-tools/libremakepkg @@ -120,6 +120,7 @@ usage() { echo " -n <CHROOT> Use this chroot instead of \`$CHROOT'" echo ' -l <COPY> Use this chroot copy instead of basing it' echo ' on the username' + echo ' -C Do not use a chroot' echo '' echo " -m <MAKEPKG> Use the command MAKEPKG instead of 'makepkg'" echo '' @@ -134,11 +135,13 @@ main() { makepkg_args='-s --noconfirm -L ' MAKEPKG=makepkg + NOCHROOT=false while getopts 'n:l:m:Rh' arg ; do case "${arg}" in n) CHROOT=$OPTARG;; l) CHROOTCOPY=$OPTARG;; + C) NOCHROOT=true m) MAKEPKG=$OPTARG;; h) usage; exit 0;; *) usage; exit 1;; @@ -180,7 +183,7 @@ main() { chroot_makepkg_conf_get CARCH export CARCH - chroot_init + $NOCHROOT || chroot_init libre_check_pkgbuild chroot_extract @@ -188,8 +191,8 @@ main() { chroot_build libre_check_pkg - copy_pkgs - copy_logs + $NOCHROOT || copy_pkgs + $NOCHROOT || copy_logs } main "$@" |