cgal/Scripts/developer_scripts/check_headers.sh

24 lines
614 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!bin/bash
PATH_TO_CGAL="$1"
cd $PATH_TO_CGAL
#If set, the pattern ** used in a filename expansion context
#will match all files and zero or more directories and subdirectories.
#If the pattern is followed by a /, only directories and subdirectories match.
shopt -s globstar
for DIR in *; do
DOC_DIR=$DIR/doc/$DIR/CGAL
if [ -d "$DOC_DIR" ]; then
cd $DOC_DIR
for DOC_FILE in **/*.h; do
#if the file does not exist in the package
if [ ! -f $PATH_TO_CGAL/*/include/CGAL/$DOC_FILE ]; then
echo "$DOC_DIR/$DOC_FILE "
fi
done
cd $PATH_TO_CGAL
fi
done