changeset: 2039:d780ddbb6518
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Mar 26 15:46:37 2007 -0400
summary: Add a default label to the argument checking in wmiir
diff -r 1f93f39bc2a5 -r d780ddbb6518 cmd/wmiir.c
--- a/cmd/wmiir.c Mon Mar 26 13:26:45 2007 -0400
+++ b/cmd/wmiir.c Mon Mar 26 15:46:37 2007 -0400
@@ -290,6 +290,9 @@ main(int argc, char *argv[]) {
exit(0);
case 'a':
address = EARGF(usage());
+ break;
+ default:
+ usage();
}ARGEND;
cmd = EARGF(usage());
diff -r 1f93f39bc2a5 -r d780ddbb6518 mk/dir.mk
--- a/mk/dir.mk Mon Mar 26 13:26:45 2007 -0400
+++ b/mk/dir.mk Mon Mar 26 15:46:37 2007 -0400
@@ -1,33 +1,22 @@ dall:
+MKSUBDIR = targ=$@; \
+ for i in ${DIRS}; do \
+ if [ ! -d $$i ]; then \
+ echo Skipping nonexistent directory: $$i 1>&2; \
+ else \
+ echo MAKE $${targ\#d} ${BASE}$$i/; \
+ (cd $$i && ${MAKE} BASE="${BASE}$$i/" $${targ\#d}) || exit $?; \
+ fi; \
+ done
dall:
- for i in ${DIRS}; do \
- if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
- echo MAKE all ${BASE}$$i/; \
- (cd $$i && ${MAKE} BASE="${BASE}$$i/" all) || exit $?; \
- done
+ ${MKSUBDIR}
dclean:
- for i in ${DIRS}; do \
- if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
- echo MAKE clean ${BASE}$$i/; \
- (cd $$i && ${MAKE} BASE="${BASE}$$i/" clean) || exit $?; \
- done
+ ${MKSUBDIR}
dinstall:
- for i in ${DIRS}; do \
- if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
- echo MAKE install ${BASE}$$i/; \
- (cd $$i && ${MAKE} BASE="${BASE}$$i/" install) || exit $?; \
- done
+ ${MKSUBDIR}
duninstall:
- for i in ${DIRS}; do \
- if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
- echo MAKE uninstall ${BASE}$$i/; \
- (cd $$i && ${MAKE} BASE="${BASE}$$i/" uninstall) || exit $?; \
- done
+ ${MKSUBDIR}
ddepend:
- for i in ${DIRS}; do \
- if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
- echo MAKE depend ${BASE}$$i/; \
- (cd $$i && ${MAKE} BASE="${BASE}$$i/" depend) || exit $?; \
- done
+ ${MKSUBDIR}
all: dall
clean: dclean
Received on Mon Mar 26 2007 - 21:47:54 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:26 UTC