index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-02-15 21:32:38 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-15 21:32:38 +0100 |
commit | b156f269298da49cdee9157b5c911193fa748651 (patch) | |
tree | 61274b72cdfc2fcc3e52f1369486f58d5cbb1e49 /bin/create-build-support-package | |
parent | 83b5badfc4a8b30fc2c1d57cb12286b7586c351c (diff) |
-rwxr-xr-x | bin/create-build-support-package | 16 |
diff --git a/bin/create-build-support-package b/bin/create-build-support-package index 5988acf..ad0fe30 100755 --- a/bin/create-build-support-package +++ b/bin/create-build-support-package @@ -24,7 +24,7 @@ usage() { eval set -- "$( getopt -o a:hw \ - --long arch \ + --long arch: \ --long from: \ --long help \ --long shim: \ @@ -196,12 +196,24 @@ if [ -n "${source_package}" ]; then >&2 printf 'Please sign %s with a build slave key and run\n' \ "${work_dir}/${new_pkg}" # shellcheck disable=SC2016 - >&2 printf 'create-build-support-package --shim %s\n' \ + >&2 printf 'create-build-support-package --arch %s --shim %s\n' \ + "${repo_arch}" \ "${work_dir}/${new_pkg}" elif [ -n "${shim_package}" ]; then # insert shim_package into [build-support] + if [ $# -ne 0 ]; then + >&2 echo 'Too many arguments' + usage + fi + + if [ ! -r "${shim_package}" ]; then + >&2 printf 'Cannot open file %s\n' \ + "${shim_package}" + usage + fi + exec 8> "${package_database_lock_file}" verbose_flock ${wait_for_lock} 8 |