1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl gnugrep common-updater-scripts
8 version
="$(curl --silent https://raw.githubusercontent.com/${owner}/${repo}/master/configure.ac | \
9 grep 'AC_INIT(ssdfs' | \
10 egrep -o '[0-9\.]{3,}')"
12 rev=$
(curl
-s -H "Accept: application/vnd.github.VERSION.sha" https
://api.github.com
/repos
/${owner}/${repo}/commits
/master
)
14 update-source-version ssdfs-utils
"$version" --rev="$rev"