aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Makefile14
-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
diff --git a/.gitignore b/.gitignore
index 45f195cf..7b4a8107 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
+bin/rfct
+bin/rndi
bin/sd2u
+bin/slsf
bin/su2d
bin/unf
games/acq
diff --git a/Makefile b/Makefile
index 5c8582cb..1a59525e 100644
--- a/Makefile
+++ b/Makefile
@@ -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)