uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
31
pkgs/development/libraries/audio/libopenmpt/update.sh
Executable file
31
pkgs/development/libraries/audio/libopenmpt/update.sh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts curl xmlstarlet
|
||||
|
||||
attr=libopenmpt
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Get update notifications, remove updates for libopenmpt-modplug, find latest eligible & extract versions
|
||||
versions="$(
|
||||
curl -s 'https://lib.openmpt.org/libopenmpt/feed.xml' |
|
||||
xmlstarlet sel -N atom="http://www.w3.org/2005/Atom" -t -m /atom:feed/atom:entry -v atom:title -n |
|
||||
grep -v 'libopenmpt-modplug' | head -n1 |
|
||||
grep -Eo '([0-9][^,\s]+)' | tr '\n' ' '
|
||||
)"
|
||||
echo "Latest $attr versions: $versions"
|
||||
|
||||
# Find a version that is > current version and not a rc
|
||||
# rc's have different download path and a full release will usually follow shortly
|
||||
currentVersion="$(nix-instantiate --eval -E "with import ./. {}; $attr.version" | tr -d '"')"
|
||||
echo "Current $attr version: $currentVersion"
|
||||
for version in $versions; do
|
||||
(echo "$version" | grep -q 'rc') && continue
|
||||
[ "$version" = "$(printf '%s\n%s' "$version" "$currentVersion" | sort -V | head -n1)" ] && continue
|
||||
|
||||
echo "Updating to $version. Please check if other versions qualify for backport to stable!"
|
||||
update-source-version "$attr" "$version"
|
||||
exit 0
|
||||
done
|
||||
|
||||
echo "No version eligible for bump."
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue