Commit 9270982e authored by paoletti's avatar paoletti
Browse files

Fixed 'identifier' to skip subdirectories, remove old tarballs if they exist,...

Fixed 'identifier' to skip subdirectories, remove old tarballs if they exist, and tell user which files are missing the identifier
parent a423bbc2
......@@ -92,10 +92,11 @@ static:
cppcheck --enable=all --suppress=missingIncludeSystem \
$(SOURCES) *.h *.hpp
# make identifier - will ensure that all source code and header files include
# the project identifier
# make identifier - will check to ensure that all source code and header files
# include the project identifier; skip subdirectories;
# also removes old submit tarballs, they are outdated
identifier:
@if [ $$(grep --include=*.{h,hpp,c,cpp} -L $(IDENTIFIER) * | wc -l) -ne 0 ]; then echo "Missing project identifier"; exit 1; fi
@if [ $$(grep --include=*.{h,hpp,c,cpp} --directories=skip -L $(IDENTIFIER) * | wc -l) -ne 0 ]; then echo -n "Missing project identifier in file(s): ";echo `grep --include=*.{h,hpp,c,cpp} --directories=skip -L $(IDENTIFIER) *`;rm -f $(PARTIAL_SUBMITFILE) $(FULL_SUBMITFILE); exit 1; fi
# Build both release and debug executables
all: clean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment