From 82240a68bb67b6a490198d2437d820ce36028c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Thu, 20 Aug 2015 00:10:06 +0200 Subject: [PATCH] archbuild: Repackage Add a fastpass option (-R) to repackage a just build package. This is so timesaving when you are fixing packaging issues. --- archbuild.in | 6 +++++- zsh_completion.in | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/archbuild.in b/archbuild.in index ae4be81..2f8fcea 100644 --- a/archbuild.in +++ b/archbuild.in @@ -25,6 +25,7 @@ usage() { echo ' -c Recreate the chroot before building' echo ' -U Do not update chroots before building' echo ' -r Create chroots in this directory' + echo ' -R Repackage (fastpass to makepkg -R)' echo '' echo "Default makechrootpkg args: ${makechrootpkg_args[*]}" echo '' @@ -33,12 +34,15 @@ usage() { orig_argv=("$@") -while getopts 'hcr:U' arg; do +while getopts 'hcr:UR' arg; do case "${arg}" in c) clean_first=true ;; U) update=false makechrootpkg_args=(-n) ;; r) chroots="$OPTARG" ;; + R) update=false + clean_first=false + makechrootpkg_args=(-n -- -R -f);; *) usage ;; esac done diff --git a/zsh_completion.in b/zsh_completion.in index f9687d6..ac8f3bb 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -5,6 +5,7 @@ m4_include(lib/valid-tags.sh) _archbuild_args=( '-c[Recreate the chroot before building]' '-U[Do not update chroots before building]' + '-R[Repackage; fastpass to makepkg -R]' '-r[Create chroots in this directory]:base_dir:_files -/' ) -- GitLab