mirror of https://github.com/CGAL/cgal
Purposely ignore all build* directories
This commit is contained in:
parent
6c83e6b654
commit
5e3a7dba70
|
|
@ -83,7 +83,7 @@ else
|
|||
fi
|
||||
|
||||
#check cmake scripts of tests, examples are present
|
||||
for i in `ls -d */examples/*/ */test/*/`; do
|
||||
for i in `ls -d ^build*/examples/*/ ^build*/test/*/`; do
|
||||
if ! [ -f $i/CMakeLists.txt ]; then
|
||||
echo "Error: $i/CMakeLists.txt does not exist!"
|
||||
exit 1
|
||||
|
|
@ -92,9 +92,9 @@ done
|
|||
|
||||
|
||||
# check project in cmake scripts is correct
|
||||
project_name_tests=$(for i in */test/*/CMakeLists.txt; do pkg=$(echo $i | awk -F "/" '{print $3}'); egrep "${pkg}_Tests\s*\)" -L $i; done)
|
||||
project_name_examples=$(for i in */examples/*/CMakeLists.txt; do pkg=$(echo $i | awk -F "/" '{print $3}'); egrep "${pkg}_Examples\s*\)" -L $i; done)
|
||||
project_name_demo=$(for i in */demo/*/CMakeLists.txt; do pkg=$(echo $i | awk -F "/" '{print $3}'); egrep "${pkg}_Demo\s*\)" -L $i; done)
|
||||
project_name_tests=$(for i in ^build*test/*/CMakeLists.txt; do pkg=$(echo $i | awk -F "/" '{print $3}'); egrep "${pkg}_Tests\s*\)" -L $i; done)
|
||||
project_name_examples=$(for i in ^build*examples/*/CMakeLists.txt; do pkg=$(echo $i | awk -F "/" '{print $3}'); egrep "${pkg}_Examples\s*\)" -L $i; done)
|
||||
project_name_demo=$(for i in ^build*demo/*/CMakeLists.txt; do pkg=$(echo $i | awk -F "/" '{print $3}'); egrep "${pkg}_Demo\s*\)" -L $i; done)
|
||||
|
||||
if [ -n "${project_name_tests}" ]; then
|
||||
echo "CMakeLists with incorrect project name"
|
||||
|
|
|
|||
Loading…
Reference in New Issue