summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-07 14:06:29 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-07 14:06:29 -0400
commit377090b93c1b3f89fc97cdf5f105c8cbaa606533 (patch)
treed1b0fe4d86c59fcbb629d67ab4294e5c3d13942c
parent8eb861b248b1952f347f3535ce3f2396f6827a4c (diff)
so... back when I wrote `arg`, I didn't know about printf
-rw-r--r--.gitignore1
-rw-r--r--Makefile6
-rw-r--r--arg.c10
3 files changed, 1 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
index 7bc8d7c..0d48c20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
*~
-arg
batterymon
chardiff
chardiff_pre
diff --git a/Makefile b/Makefile
index c64a96d..a6cde25 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,6 @@ INSTALL = install
RM = rm -f
BINFILES = \
- arg \
batterymon \
chardiff \
chardiff_pre \
@@ -47,8 +46,5 @@ clean:
cat $< >$@
chmod a+x $@
-# Note that this rule would be way simpler if I could count on 'arg'
-# already being installed ("arg '*~' $(BINFILES) > $@")
.gitignore: Makefile
- echo '*~' > $@
- for file in $(BINFILES); do echo "$$file"; done >> $@
+ printf '%s\n' '*~' $(BINFILES) > $@
diff --git a/arg.c b/arg.c
deleted file mode 100644
index 0a57cec..0000000
--- a/arg.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <stdio.h>
-
-int
-main(int argc, char* argv[]) {
- int i;
- for (i=1; i<argc; i++) {
- puts(argv[i]);
- }
- return 0;
-}