summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-05 08:50:12 +0200
committerErich Eckner <git@eckner.net>2016-04-05 09:00:36 +0200
commit4b8dc6811c63ef30e9ab2c274fa4d72284d1a1d6 (patch)
tree520ab124966826509048cc2798d6d92cfdaf43bc /archPackagesUpdate
parent5d7fb16ca5ca05db100d74a81f1e66ed9a84ef0c (diff)
downloadarchlinuxewe.git.save-4b8dc6811c63ef30e9ab2c274fa4d72284d1a1d6.tar.xz
Hilfetext eingefügt in archPackagesUpdate
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate17
1 files changed, 16 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 2a98fbc0..1a8edbf5 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