diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 19:54:57 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 19:57:58 +1200 |
commit | 481f4fa397bbdadcba7d7e6f93f3e058268a95b2 (patch) | |
tree | 7c01924feb4f58c038c9f05dabea00f85314116b | |
parent | Remove .m4 from suffixes (diff) | |
download | dotfiles-481f4fa397bbdadcba7d7e6f93f3e058268a95b2.tar.gz dotfiles-481f4fa397bbdadcba7d7e6f93f3e058268a95b2.zip |
Move awk scripts into shb(1)
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r--[-rwxr-xr-x] | bin/rfct.awk (renamed from bin/rfct) | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | bin/rndi.awk (renamed from bin/rndi) | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | bin/slsf.awk (renamed from bin/slsf) | 1 |
5 files changed, 15 insertions, 5 deletions
@@ -1,4 +1,7 @@ +bin/rfct +bin/rndi bin/sd2u +bin/slsf bin/su2d bin/unf games/acq @@ -55,14 +55,17 @@ lint-sh \ lint-urxvt -.SUFFIXES: .sed +.SUFFIXES: .awk .sed NAME := Tom Ryder EMAIL := tom@sanctum.geek.nz KEY := 0xC14286EA77BB8872 SENDMAIL := /usr/bin/msmtp -all : bin/sd2u \ +all : bin/rfct \ + bin/rndi \ + bin/sd2u \ + bin/slsf \ bin/su2d \ bin/unf \ git/gitconfig \ @@ -70,7 +73,10 @@ all : bin/sd2u \ clean distclean : rm -f \ + bin/rfct \ + bin/rndi \ bin/sd2u \ + bin/slsf \ bin/su2d \ bin/unf \ games/acq \ @@ -109,6 +115,10 @@ tmux/tmux.conf : tmux/tmux.conf.m4 m4 -D TMUX_COLOR="$(TMUX_COLOR)" \ tmux/tmux.conf.m4 > tmux/tmux.conf +.awk : + bin/shb "$<" awk -f > "$@" + chmod +x "$@" + .sed : bin/shb "$<" sed -f > "$@" chmod +x "$@" diff --git a/bin/rfct b/bin/rfct.awk index dff7a4e2..b815deb8 100755..100644 --- a/bin/rfct +++ b/bin/rfct.awk @@ -1,4 +1,3 @@ -#!/usr/bin/awk -f # A record is a paragraph BEGIN { diff --git a/bin/rndi b/bin/rndi.awk index bf78951c..337498cb 100755..100644 --- a/bin/rndi +++ b/bin/rndi.awk @@ -1,4 +1,3 @@ -#!/usr/bin/awk -f # Get a low-quality random number between two integers. Depending on the awk # implementation, if you don't provide a third argument (a seed), you might get # very predictable random numbers based on the current epoch second. diff --git a/bin/slsf b/bin/slsf.awk index 6824ec13..9d12225d 100755..100644 --- a/bin/slsf +++ b/bin/slsf.awk @@ -1,4 +1,3 @@ -#!/usr/bin/awk -f # Print the first non-glob "Host" name from each line of ssh_config(5) files # Manage the processing flag (starts set in each file) |