blob: 855621587e17a5c1dff88a52f5d44cf76eba4529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p ripgrep common-updater-scripts
set -xeu -o pipefail
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
cd "$PACKAGE_DIR/.."
while ! test -f default.nix; do cd .. ; done
NIXPKGS_DIR="$PWD"
latest_version="$(
list-git-tags --url=https://github.com/linux-apfs/linux-apfs-rw \
| sort --version-sort \
| tail -n1
)"
latest_version_no_v_prefix="${latest_version#"v"}"
cd "$NIXPKGS_DIR"
update-source-version linuxPackages.apfs "$latest_version_no_v_prefix" \
--version-key=tag
|