From 377090b93c1b3f89fc97cdf5f105c8cbaa606533 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Sep 2013 14:06:29 -0400 Subject: so... back when I wrote `arg`, I didn't know about printf --- .gitignore | 1 - Makefile | 6 +----- arg.c | 10 ---------- 3 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 arg.c 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 - -int -main(int argc, char* argv[]) { - int i; - for (i=1; i