diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-02-02 15:04:29 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-02-02 15:04:29 +0100 |
commit | 4aade2961d42ef00f4247e1fa91e5d0803c9ddb7 (patch) | |
tree | cfe46a818c2910f609a1af132ae98b2bcda13734 | |
parent | f9eff4f5a492c1745bc5bc700f5fd843e61ad128 (diff) | |
download | bin-4aade2961d42ef00f4247e1fa91e5d0803c9ddb7.tar.gz bin-4aade2961d42ef00f4247e1fa91e5d0803c9ddb7.tar.xz |
ch: add repack support
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | ch | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -98,9 +98,10 @@ chshell() { } chbuild() { - __chrootalias "$1" || return - linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f - chshell "$1" "pacman --noconfirm -Rcs namcap" + chrootalias="$1"; shift + __chrootalias "$chrootalias" || return + linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f "$@" + chshell "$chrootalias" "pacman --noconfirm -Rcs namcap" } chinstall() { @@ -139,6 +140,11 @@ chupdate() { command=$1; shift case $command in + repack) + for arg; do + chbuild "$arg" -R + done + ;; build) for arg; do chbuild "$arg" |