summaryrefslogtreecommitdiff
path: root/bumpVersion
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-04 09:59:31 +0200
committerErich Eckner <git@eckner.net>2020-06-04 09:59:31 +0200
commitbc0c0d3d4b417ffebe8fbfbc85344a6566d49164 (patch)
treed3c8bb66ada7aa10eb4edd753ea3c8b219d51aa3 /bumpVersion
parentcecc3c1cc9890fc80926afa4f1be032c5413b3cd (diff)
downloadarchlinuxewe-bc0c0d3d4b417ffebe8fbfbc85344a6566d49164.tar.xz
bumpVersion: _pinned_dependencies ebenfalls aktualisieren
Diffstat (limited to 'bumpVersion')
-rwxr-xr-xbumpVersion31
1 files changed, 27 insertions, 4 deletions
diff --git a/bumpVersion b/bumpVersion
index 3c3ac80a7..c995cd34a 100755
--- a/bumpVersion
+++ b/bumpVersion
@@ -11,13 +11,14 @@ verwendung() {
>&2 echo ' -f|--force: übergehe Cache'
>&2 echo ' -h|--help: zeige diese Hilfe'
>&2 echo ' -n|--nicht $paket: ignoriere Paket $paket'
+ >&2 echo ' -p $tmpfile: temporäre "provided"-Datei'
[ -z "$1" ] && exit 1 || exit $1
}
check_version_cache_option=''
eval set -- "$(
- getopt -o fhn: \
+ getopt -o fhn:p: \
--long force \
--long help \
--long nicht: \
@@ -26,6 +27,7 @@ eval set -- "$(
)"
unset nichtPakete
+unset provided
while true; do
case "$1" in
@@ -39,6 +41,10 @@ while true; do
shift
nichtPakete="$(printf '%s\n%s' "${nichtPakete}" "$1" | grep -v '^$')"
;;
+ -p)
+ shift
+ provided="$1"
+ ;;
--)
shift
break
@@ -63,13 +69,21 @@ if [ $# -eq 0 ]; then
uniq -u
)"
[ -z "${pkgs}" ] && exit 0
- "${me}" ${pkgs}
+ if [ -z "${provided}" ]; then
+ provided=$("${myDir}/liste-verfuegbare-Versionen")
+ trap 'rm -f "${provided}"' EXIT
+ fi
+ "${me}" -p "${provided}" ${pkgs}
exit $?
elif [ $# -gt 1 ]; then
[ -n "${nichtPakete}" ] && verwendung
+ if [ -z "${provided}" ]; then
+ provided=$("${myDir}/liste-verfuegbare-Versionen")
+ trap 'rm -f "${provided}"' EXIT
+ fi
err=0
- for pkg in "$@"; do
- "${me}" "${pkg}"
+ for pkg in "$@"; do
+ "${me}" -p "${provided}" "${pkg}"
cErr=$?
[ ${cErr} -gt ${err} ] && err=${cErr}
done
@@ -77,6 +91,11 @@ elif [ $# -gt 1 ]; then
fi
[ -n "${nichtPakete}" ] && verwendung
+if [ -z "${provided}" ]; then
+ provided=$("${myDir}/liste-verfuegbare-Versionen")
+ trap 'rm -f "${provided}"' EXIT
+fi
+
paket="${1%/}"
>&2 echo "bumping '${paket}' ..."
@@ -95,6 +114,10 @@ if [ -z "${remVer}" ]; then
exit 0
fi
+# Wir misbrauchen bumpPkgrel um _pinned_dependencies zu aktualisieren.
+# $pkgrel wird nachher ohnehin wieder auf 1 gesetzt.
+"${myDir}/bumpPkgrel" -n -p "${provided}" "${paket}"
+
auto_summen=true
cd "${paket}"