-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking that Make.all and other Make.* remain in sync
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Basic checks | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
basic-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Check consistency of files in Makefiles | ||
run: dev/tools/check-make-sync.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
MAKE_FILES=$(find theories -name "Make.*") | ||
|
||
FILES_OTHERS=files_others__ | ||
FILES_ALL=files_all__ | ||
|
||
rm -f ${FILES_OTHERS} ${FILES_ALL} | ||
grep "[.]v" ${MAKE_FILES} | sed -e 's/.*://' | sort > ${FILES_OTHERS} | ||
find theories -name "*.v" | sed -e 's_theories/__' | sort > ${FILES_ALL} | ||
|
||
if $(diff -q ${FILES_OTHERS} ${FILES_ALL} > /dev/null) ; then | ||
echo "Make.* match files in theories/" | ||
else | ||
echo "Make.* and files in theories/ don't match" | ||
diff ${FILES_OTHERS} ${FILES_ALL} | ||
exit 1 | ||
fi | ||
|
||
rm -f ${FILES_OTHERS} ${FILES_ALL} |