diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-07 14:06:29 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-07 14:06:29 -0400 |
commit | 377090b93c1b3f89fc97cdf5f105c8cbaa606533 (patch) | |
tree | d1b0fe4d86c59fcbb629d67ab4294e5c3d13942c | |
parent | 8eb861b248b1952f347f3535ce3f2396f6827a4c (diff) |
so... back when I wrote `arg`, I didn't know about printf
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | arg.c | 10 |
3 files changed, 1 insertions, 16 deletions
@@ -1,5 +1,4 @@ *~ -arg batterymon chardiff chardiff_pre @@ -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) > $@ @@ -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; -} |