Commit 82240a68 authored by Seblu's avatar Seblu

archbuild: Repackage

Add a fastpass option (-R) to repackage a just build package.
This is so timesaving when you are fixing packaging issues.
parent e2708d93
...@@ -25,6 +25,7 @@ usage() { ...@@ -25,6 +25,7 @@ usage() {
echo ' -c Recreate the chroot before building' echo ' -c Recreate the chroot before building'
echo ' -U Do not update chroots before building' echo ' -U Do not update chroots before building'
echo ' -r <dir> Create chroots in this directory' echo ' -r <dir> Create chroots in this directory'
echo ' -R Repackage (fastpass to makepkg -R)'
echo '' echo ''
echo "Default makechrootpkg args: ${makechrootpkg_args[*]}" echo "Default makechrootpkg args: ${makechrootpkg_args[*]}"
echo '' echo ''
...@@ -33,12 +34,15 @@ usage() { ...@@ -33,12 +34,15 @@ usage() {
orig_argv=("$@") orig_argv=("$@")
while getopts 'hcr:U' arg; do while getopts 'hcr:UR' arg; do
case "${arg}" in case "${arg}" in
c) clean_first=true ;; c) clean_first=true ;;
U) update=false U) update=false
makechrootpkg_args=(-n) ;; makechrootpkg_args=(-n) ;;
r) chroots="$OPTARG" ;; r) chroots="$OPTARG" ;;
R) update=false
clean_first=false
makechrootpkg_args=(-n -- -R -f);;
*) usage ;; *) usage ;;
esac esac
done done
......
...@@ -5,6 +5,7 @@ m4_include(lib/valid-tags.sh) ...@@ -5,6 +5,7 @@ m4_include(lib/valid-tags.sh)
_archbuild_args=( _archbuild_args=(
'-c[Recreate the chroot before building]' '-c[Recreate the chroot before building]'
'-U[Do not update chroots before building]' '-U[Do not update chroots before building]'
'-R[Repackage; fastpass to makepkg -R]'
'-r[Create chroots in this directory]:base_dir:_files -/' '-r[Create chroots in this directory]:base_dir:_files -/'
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment