aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/patches/Makefile
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-14 19:42:41 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-15 01:56:43 +0000
commit94825e25dcc5bf4a8490690fc1cf423df0e9d7fe (patch)
treee0d02c21d32dcd56c0aa2f8bca8ddb14dcb32621 /mcp/patches/Makefile
parentef570e8954b44fd608cf1ff5e50b5cbc3d0d178f (diff)
Add license headers where missing
While at it, compact 'set' into bash shebang where possible and add `make patches-copyright` target to simplify adding patch license headers. Change-Id: I0c841de72e5709e5eef915a52c5ec4a7fc0f7c37 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 644e5fdfa2f49b988a5150e2a4eefc12daecd845)
Diffstat (limited to 'mcp/patches/Makefile')
-rw-r--r--mcp/patches/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/mcp/patches/Makefile b/mcp/patches/Makefile
index c5363891e..5814e7fe8 100644
--- a/mcp/patches/Makefile
+++ b/mcp/patches/Makefile
@@ -95,6 +95,15 @@ patches-import: sub .cachepatched
git tag ${F_OPNFV_TAG}'
@touch $@
+# Add copyright header to patch files if not already present
+.PHONY: patches-copyright
+patches-copyright:
+ @grep -e "Copyright (c)" -L ${FPATCHES} | while read p_file; do \
+ ptmp=`mktemp` && \
+ cat fuel-patch-copyright.template $$p_file > $$ptmp && \
+ mv $$ptmp $$p_file; \
+ done
+
# Clean any changes made to submodules, checkout upstream Fuel root commit
.PHONY: clean
clean: