File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ all: check
44# (e.g. with GitHub Actions self-test)
55NUT_WEBSITE_DIR =..
66
7+ # Optionally allow the caller to customize the python interpreter to
8+ # use for nut-ddl.py:
9+ NUT_DDL_PYTHON =
10+
711# NOTE: The checks below are rudimentary, just to filter away the most
812# blatant issues. More diligent ones are in nut-website:nut-ddl.py parser.
913check : check-filename-structure check-content-markup
@@ -36,13 +40,13 @@ check-content-markup:
3640 find . -type f -name ' *.dev' | ( \
3741 echo " ` date -u` : Sanity-checking the *.dev files..." ; \
3842 if [ -x $( NUT_WEBSITE_DIR) /tools/nut-ddl.py ] ; then \
39- echo " ` date -u` : will use $( NUT_WEBSITE_DIR) /tools/nut-ddl.py for deeper checks" ; \
43+ echo " ` date -u` : will use $( NUT_DDL_PYTHON ) $( NUT_WEBSITE_DIR) /tools/nut-ddl.py for deeper checks" ; \
4044 fi ; \
4145 FAILED=" " ; \
4246 PASSED=" " ; \
4347 while read F ; do \
4448 if [ -x $( NUT_WEBSITE_DIR) /tools/nut-ddl.py ] ; then \
45- RES=0 ; $(NUT_WEBSITE_DIR ) /tools/nut-ddl.py " $$ F" " $$ F.tmp.html" || RES=$$? ; \
49+ RES=0 ; $(NUT_DDL_PYTHON ) $( NUT_WEBSITE_DIR ) /tools/nut-ddl.py " $$ F" " $$ F.tmp.html" || RES=$$? ; \
4650 rm -f " $$ F.tmp.html" ; \
4751 if [ " $$ RES" != 0 ] ; then \
4852 echo " ^^^ $$ F" && FAILED=" $$ FAILED $$ F" && continue ; \
You can’t perform that action at this time.
0 commit comments