diff options
author | Erich Eckner <git@eckner.net> | 2019-10-10 10:51:38 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-10 10:51:38 +0200 |
commit | 0cf34516587c205d8833c5339d97cd5ca93ecd06 (patch) | |
tree | 8a784cb50cbaa7a5235cf974404912d52a326515 /bumpVersion | |
parent | 91b9f01dcb243e764d484a47288a5e0c5944d660 (diff) | |
download | archlinuxewe-0cf34516587c205d8833c5339d97cd5ca93ecd06.tar.xz |
bumpVersion: -f neu
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bumpVersion b/bumpVersion index 30523ecd3..a6a435083 100755 --- a/bumpVersion +++ b/bumpVersion @@ -8,13 +8,17 @@ verwendung() { >&2 echo "$(basename "$0")"': aktualisiere Version von Paketen in archlinuxewe' >&2 echo '' >&2 echo 'mögliche Optionen:' + >&2 echo ' -f|--force: übergehe Cache' >&2 echo ' -h|--help: zeige diese Hilfe' >&2 echo ' -n|--nicht $paket: ignoriere Paket $paket' [ -z "$1" ] && exit 1 || exit $1 } +check_version_cache_option='' + eval set -- "$( - getopt -o hn: \ + getopt -o fhn: \ + --long force \ --long help \ --long nicht: \ -n "$(basename "$0")" -- "$@" || \ @@ -28,6 +32,9 @@ while true; do -h|--help) verwendung 0 ;; + -f|--force) + check_version_cache_option='--no-cache' + ;; -n|--nicht) shift nichtPakete="$(printf '%s\n%s' "${nichtPakete}" "$1" | grep -v '^$')" @@ -75,7 +82,7 @@ paket="${1%/}" cd "${myDir}" [ -r "${paket}/PKGBUILD" ] || exit 1 -vers="$(./checkVersions -m "${paket}")" +vers="$(./checkVersions -m "${paket}" ${check_version_cache_option})" [ -n "${remVer}" ] && vers="$(echo "${vers}" | grep -v 'remVer')" eval ${vers} if [ "${remVer}" == "${pkgver}" ]; then |