[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [FYI] [ng] tags: tiny code duplication removal
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [FYI] [ng] tags: tiny code duplication removal |
Date: |
Thu, 9 Aug 2012 19:57:03 +0200 |
* lib/am/tags.am (tags-am): Here, using 'CMD ${1+"$@"}' instead of
'if test $# -eq 0; then CMD; else CMD "$@"; fi'.
Signed-off-by: Stefano Lattarini <address@hidden>
---
lib/am/tags.am | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/am/tags.am b/lib/am/tags.am
index b7874f7..ad4e8ba 100644
--- a/lib/am/tags.am
+++ b/lib/am/tags.am
@@ -73,13 +73,8 @@ tags-am: $(TAGS_DEPENDENCIES) $(am.tags.files)
unique='$(am.tags.files.unique)'; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ ${1+"$$@"} $$unique; \
fi
--
1.7.12.rc0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-NG] [FYI] [ng] tags: tiny code duplication removal,
Stefano Lattarini <=