summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-11-05 14:22:35 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-11-05 14:22:35 +0000
commita7861f975be5a5ccbc8c9a90db0d5892aaa9e147 (patch)
tree48857fcbfb3de380d3f656256a355476e0cc1bb3
parent8684961d2df89b80e0097d094753aea2471d28d8 (diff)
downloadvirt-viewer-a7861f975be5a5ccbc8c9a90db0d5892aaa9e147.tar.gz
virt-viewer-a7861f975be5a5ccbc8c9a90db0d5892aaa9e147.tar.xz
virt-viewer-a7861f975be5a5ccbc8c9a90db0d5892aaa9e147.zip
git.mk: fix copyright line and remove use of -o / -a
Any copyright line must use 'Copyright (C) <year> Red Hat' per the syntax-check rule. Use of -a / -o args to "test" is non-portable and should instead be done with 'test ... || test ...' Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--git.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/git.mk b/git.mk
index bd39ae1..ad0f2ff 100644
--- a/git.mk
+++ b/git.mk
@@ -1,7 +1,7 @@
# git.mk, a small Makefile to autogenerate .gitignore files
# for autotools-based projects.
#
-# Copyright 2009, Red Hat, Inc.
+# Copyright (C) 2009 Red Hat, Inc.
# Copyright 2010,2011,2012,2013 Behdad Esfahbod
# Written by Behdad Esfahbod
#
@@ -165,7 +165,7 @@ git-mk-update:
$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
@echo "git.mk: Generating $@"
@{ \
- if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
+ if test "x$(DOC_MODULE)" = x || test "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
for x in \
$(DOC_MODULE)-decl-list.txt \
$(DOC_MODULE)-decl.txt \
@@ -190,7 +190,7 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
; do echo "/$$x"; done; \
fi; \
fi; \
- if test "x$(DOC_MODULE)$(DOC_ID)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \
+ if test "x$(DOC_MODULE)$(DOC_ID)" = x || test "x$(DOC_LINGUAS)" = x; then :; else \
for lc in $(DOC_LINGUAS); do \
for x in \
$(if $(DOC_MODULE),$(DOC_MODULE).xml) \
@@ -208,7 +208,7 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
"*/*.omf.out" \
; do echo /$$x; done; \
fi; \
- if test "x$(HELP_ID)" = x -o "x$(HELP_LINGUAS)" = x; then :; else \
+ if test "x$(HELP_ID)" = x || test "x$(HELP_LINGUAS)" = x; then :; else \
for lc in $(HELP_LINGUAS); do \
for x in \
$(HELP_FILES) \
@@ -274,7 +274,7 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
if test "x$(am__dirstamp)" = x; then :; else \
echo "$(am__dirstamp)"; \
fi; \
- if test "x$(LTCOMPILE)" = x -a "x$(LTCXXCOMPILE)" = x -a "x$(GTKDOC_RUN)" = x; then :; else \
+ if test "x$(LTCOMPILE)" = x && test "x$(LTCXXCOMPILE)" = x && test "x$(GTKDOC_RUN)" = x; then :; else \
for x in \
"*.lo" \
".libs" "_libs" \
@@ -332,12 +332,12 @@ gitignore-recurse-maybe:
@for subdir in $(DIST_SUBDIRS); do \
case " $(SUBDIRS) " in \
*" $$subdir "*) :;; \
- *) test "$$subdir" = . -o -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir");; \
+ *) test "$$subdir" = . || test -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir");; \
esac; \
done
gitignore-recurse:
@for subdir in $(DIST_SUBDIRS); do \
- test "$$subdir" = . -o -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir"); \
+ test "$$subdir" = . || test -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir"); \
done
maintainer-clean: gitignore-clean