summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore6
-rw-r--r--COPYING14
-rw-r--r--Makefile10
-rwxr-xr-xbin/cdxget6
-rwxr-xr-xbin/fmt-metadata7
-rwxr-xr-xbin/gitify6
-rwxr-xr-xbin/poolify6
-rwxr-xr-xbin/urlkey2url6
8 files changed, 61 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a15fceb..434f67d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,7 @@
+# Copyright (c) 2017 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
/dat/
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..ee7d6a5
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,14 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
diff --git a/Makefile b/Makefile
index c2ee221..6d12db3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,10 @@
+# Copyright (c) 2017, 2023 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
+
SHELL=bash -o pipefail
PATH:=$(CURDIR)/bin:$(PATH)
export PATH
@@ -21,6 +28,9 @@ all:
$(MAKE) dat/git
.PHONY: all
+COPYING:
+ curl -L http://www.wtfpl.net/txt/copying/ >$@
+
# Stage 1 ######################################################################
#
# Fetch a listing of all relevant URLs.
diff --git a/bin/cdxget b/bin/cdxget
index 6844fa6..1dbc8f0 100755
--- a/bin/cdxget
+++ b/bin/cdxget
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
+# Copyright (c) 2017, 2023 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
url='http://web.archive.org/cdx/search/cdx'
s='?'
diff --git a/bin/fmt-metadata b/bin/fmt-metadata
index c92419b..ec82451 100755
--- a/bin/fmt-metadata
+++ b/bin/fmt-metadata
@@ -1,4 +1,11 @@
#!/usr/bin/env ruby
+# Copyright (c) 2017 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
+
require 'time'
snapshot = ARGV.first.to_i
diff --git a/bin/gitify b/bin/gitify
index b245f3e..d655f22 100755
--- a/bin/gitify
+++ b/bin/gitify
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
+# Copyright (c) 2017, 2023 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
empty() {
[[ $(stat -c %s "$1") -eq 0 ]]
diff --git a/bin/poolify b/bin/poolify
index 92e3cce..b49cbd9 100755
--- a/bin/poolify
+++ b/bin/poolify
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
+# Copyright (c) 2017, 2023 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
url2murl() {
local x
diff --git a/bin/urlkey2url b/bin/urlkey2url
index 5d0ec3d..813e66f 100755
--- a/bin/urlkey2url
+++ b/bin/urlkey2url
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
+# Copyright (c) 2017 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# This work is free. You can redistribute it and/or modify it under
+# the terms of the Do What The Fuck You Want To Public License,
+# Version 2, as published by Sam Hocevar. See the COPYING file for
+# more details.
for arg in "$@"; do
keydomain="${arg%%)*}"