Skip to content

Commit

Permalink
Fix the script cgal_check_dependencies.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Sep 27, 2022
1 parent b2f661f commit ba47ed4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Empty file.
10 changes: 7 additions & 3 deletions Scripts/developer_scripts/cgal_check_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ do
pkg=$(basename $pkg_path)
if [ -f $pkg_path/package_info/$pkg/dependencies ]; then
mv $pkg_path/package_info/$pkg/dependencies $pkg_path/package_info/$pkg/dependencies.old
else
if [ -d $pkg_path/package_info/$pkg ]; then
touch $pkg_path/package_info/$pkg/dependencies.old
fi
fi
done

Expand All @@ -42,11 +46,11 @@ do
if [ -f "$pkg_path/package_info/$pkg/dependencies" ]; then
PKG_DIFF=$(grep -Fxv -f "$pkg_path/package_info/$pkg/dependencies.old" "$pkg_path/package_info/$pkg/dependencies" || true)
if [ -n "$PKG_DIFF" ]; then
TOTAL_RES="Differences in $pkg: $PKG_DIFF are new and not committed.\n $TOTAL_RES"
TOTAL_RES="Differences in $pkg:\n$PKG_DIFF\nare new and not committed.\n$TOTAL_RES"
fi
PKG_DIFF=$(grep -Fxv -f "$pkg_path/package_info/$pkg/dependencies" "$pkg_path/package_info/$pkg/dependencies.old" || true)
if [ -n "$PKG_DIFF" ]; then
TOTAL_RES="Differences in $pkg: $PKG_DIFF have disappeared.\n $TOTAL_RES"
TOTAL_RES="Differences in $pkg:\n$PKG_DIFF\mhave disappeared.\n$TOTAL_RES"
fi
if [ -f $pkg_path/package_info/$pkg/dependencies.old ]; then
rm $pkg_path/package_info/$pkg/dependencies.old
Expand All @@ -55,7 +59,7 @@ do
done
echo " Checks finished"
cd $CGAL_ROOT
rm -r dep_check_build
#rm -r dep_check_build
if [ -n "$TOTAL_RES" ]; then
printf "$TOTAL_RES"
echo " You can run cmake with options CGAL_ENABLE_CHECK_HEADERS and CGAL_COPY_DEPENDENCIES ON, make the target packages_dependencies and commit the new dependencies files,"
Expand Down
Empty file.

0 comments on commit ba47ed4

Please sign in to comment.