bin/bdl: Add to the collection.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 27 Apr 2020 00:20:20 +0000 (01:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 27 Apr 2020 00:20:54 +0000 (01:20 +0100)
Had this lying around for aaages.

Makefile
bin/bdl [new file with mode: 0755]

index e192950..d9c3c72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -223,6 +223,7 @@ SCRIPTLINKS         += mdw-conf
 SCRIPTLINKS            += svnwrap
 SCRIPTLINKS            += guest-console
 SCRIPTLINKS            += hyperspec
+SCRIPTLINKS            += bdl
 SCRIPTLINKS            += datasyms
 SCRIPTLINKS            += fixsub
 SCRIPTLINKS            += check-debsyms
diff --git a/bin/bdl b/bin/bdl
new file mode 100755 (executable)
index 0000000..f5fcba5
--- /dev/null
+++ b/bin/bdl
@@ -0,0 +1,15 @@
+#! /usr/bin/make -f
+
+## Silent-rules machinery.
+V                       = 0
+V_CURL_0                = @echo "  CURL   $@";
+
+## Separator.
+S                       = /
+
+## Main rule.
+%:; $(V_CURL_$V)curl -fsL -o$@.new $A "$B$S$*" && mv $@.new $@
+
+## Help summary.
+help:; @echo "bdl [-j NPROC] [A=ARGS] B=BASE [S=SEP] URL..."
+.PHONY: help