aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:35:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:35:00 +1200
commit472461c2e2f92d3070e030b34342d824fa57d608 (patch)
treea2cf67cfe0cf7f16b4e9c4a694debe9fc947ccdc
parentMake paths to ignored files absolute (diff)
downloaddoomsh-472461c2e2f92d3070e030b34342d824fa57d608.tar.gz
doomsh-472461c2e2f92d3070e030b34342d824fa57d608.zip
Apply shebang for doomsh with make recipe
-rw-r--r--.gitignore1
-rw-r--r--Makefile12
-rw-r--r--[-rwxr-xr-x]doomsh.bash (renamed from doomsh)3
3 files changed, 14 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 416ecc3..b7af15e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/doomsh
/tests/files
/tests/mem
/tests/stack
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fbb7a46
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+.PHONY: all clean
+.SUFFIXES:
+.SUFFIXES: .bash
+ALL = doomsh
+BASH = /bin/bash
+all: $(ALL)
+.bash:
+ $(BASH) -c :
+ awk -v interpreter=$(BASH) 'NR == 1 { $$1 ="#!" interpreter } 1' $< > $@
+ chmod +x ./$@
+clean:
+ rm -f -- $(ALL)
diff --git a/doomsh b/doomsh.bash
index dd38f1c..8603e70 100755..100644
--- a/doomsh
+++ b/doomsh.bash
@@ -1,5 +1,4 @@
-#!/usr/bin/env bash
-
+#!bash
#
# doomsh: Play with low ulimits in Bash
#