diff options
author | Erich Eckner <git@eckner.net> | 2016-04-05 08:50:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-05 09:00:36 +0200 |
commit | 4b8dc6811c63ef30e9ab2c274fa4d72284d1a1d6 (patch) | |
tree | 520ab124966826509048cc2798d6d92cfdaf43bc /archPackagesUpdate | |
parent | 5d7fb16ca5ca05db100d74a81f1e66ed9a84ef0c (diff) | |
download | archlinuxewe-4b8dc6811c63ef30e9ab2c274fa4d72284d1a1d6.tar.xz |
Hilfetext eingefügt in archPackagesUpdate
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 2a98fbc02..1a8edbf59 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -9,8 +9,23 @@ force=false upload=true updateMe=true +# print help screen +usage() +{ + >&2 echo '' + >&2 echo 'Skript zum Updaten der selbsterstellten Archlinux-Pakete' + >&2 echo '' + >&2 echo 'Verwendung:' + >&2 echo ' '"$0"' [ -f|--force ] [ --no-upload ] [ --no-selfUpdate ]' + >&2 echo ' -f|--force: rebuild packages even if they look up to date' + >&2 echo ' --no-upload: do not upload built packages from rechenknecht to jeti100' + >&2 echo ' --no-selfUpdate: do not update this script from git' + >&2 echo '' + exit 1 +} + # parse arguments -eval set -- "$(getopt -o f --long force,no-upload,no-selfUpdate -n "$(basename "$0")" -- "$@" || echo "exit $?")" +eval set -- "$(getopt -o f --long force,no-upload,no-selfUpdate -n "$(basename "$0")" -- "$@" || echo "usage")" while true do |