From e4a625c8526e26d8e7cbb9521c6f3b6e88a27475 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 1 Nov 2017 09:32:16 +1300 Subject: Add dfv(1df) version-printing tool This is mostly just for fun, but could be handy later on when I'm playing with distributed or automated deployments of tagged and verified releases. Like a few of the other shell scripts, this is built by abusing my mi5(1df) wrapper to get static details baked into the shell script that are only known at runtime. --- bin/dfv.mi5 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bin/dfv.mi5 (limited to 'bin') diff --git a/bin/dfv.mi5 b/bin/dfv.mi5 new file mode 100644 index 00000000..02f1721d --- /dev/null +++ b/bin/dfv.mi5 @@ -0,0 +1,8 @@ +# Print dotfiles version information +cat <<'EOF' +<% + include(VERSION) + syscmd(`printf "Built on %s by %s@%s\n" "$(date)" "$(id -nu)" "$(uname -n)"') +%> +The next 1<<10 years are ours! +EOF -- cgit v1.2.3