1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/build-support/upstream-updater/update-walker-service-specific.sh

21 lines
527 B
Bash
Raw Normal View History

SF_redirect () {
redirect
process 'http://[a-z]+[.]dl[.]sourceforge[.]net/' 'mirror://sourceforge/'
process '[?].*' ''
}
2012-12-04 06:33:37 +00:00
SF_version_dir () {
2014-06-27 13:28:00 +01:00
version_link 'http://sourceforge.net/.+/'"$1"'[0-9.]+/$'
2012-12-04 06:33:37 +00:00
}
SF_version_tarball () {
version_link '[.]tar[.].*/download$'
}
GH_latest () {
prefetch_command_rel ../fetchgit/nix-prefetch-git
revision "$("$(dirname "$0")/urls-from-page.sh" "$CURRENT_URL/commits" | grep /commit/ | head -n 1 | xargs basename )"
version '.*' "git-$(date +%Y-%m-%d)"
NEED_TO_CHOOSE_URL=
}