Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 8 lines 406 B view raw
1#!/usr/bin/env nix-shell 2#!nix-shell -i tclsh -p tcl common-updater-scripts curl 3 4set changelog_url https://sourceforge.net/p/domination/code/HEAD/tree/Domination/ChangeLog.txt?format=raw 5 6set changelog [exec -ignorestderr curl -Ls $changelog_url] 7regexp {(\d+(\.\d+)*) \(\d+\.\d+\.\d+\) \(svn rev (\d+)\)} $changelog _ version _ rev 8exec -ignorestderr update-source-version domination $version --rev=$rev