chiark / gitweb /
bin/bdl: Add to the collection.
[profile] / bin / bdl
1 #! /usr/bin/make -f
2
3 ## Silent-rules machinery.
4 V                        = 0
5 V_CURL_0                 = @echo "  CURL   $@";
6
7 ## Separator.
8 S                        = /
9
10 ## Main rule.
11 %:; $(V_CURL_$V)curl -fsL -o$@.new $A "$B$S$*" && mv $@.new $@
12
13 ## Help summary.
14 help:; @echo "bdl [-j NPROC] [A=ARGS] B=BASE [S=SEP] URL..."
15 .PHONY: help