summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--tmparg.sh6
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7f6021d..24a78c4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
.POSIX:
-OBJ = timer
+OBJ = timer tmparg
BIN = /usr/local/bin
all: $(OBJ)
timer: timer.c
+tmparg: tmparg.sh
+
install: all
cp $(OBJ) $(BIN)
diff --git a/tmparg.sh b/tmparg.sh
new file mode 100644
index 0000000..9167536
--- /dev/null
+++ b/tmparg.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+export FILE=`mktemp`
+cat > $FILE
+$@ $FILE
+rm $FILE