JIRA: ARMBAND-301
Change-Id: Ib2fe43d3a4be627831768419486226ed2484ddae
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
 fuel-patches-clean:
        $(MAKE) -e -C ${F_PATCH_DIR} clean
 
+# Add copyright header to patch files if not already present
+.PHONY: patches-copyright
+patches-copyright:
+       grep -e "Copyright (c)" -L ${A_PATCHES} | while read p_file; do \
+               ptmp=`mktemp` && \
+               cat armband-patch-copyright.template $$p_file > $$ptmp && \
+               mv $$ptmp $$p_file; \
+       done
+
 # TODO: Bring back clean/debug/build after Fuel@OPNFV implements them for MCP
 
--- /dev/null
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::