Skip to content

Commit 9a3b49d

Browse files
authored
Merge pull request #268 from jjhursey/check-doc
Improve reference checker at the end of make
2 parents c94dfaf + 2397fea commit 9a3b49d

File tree

4 files changed

+56
-6
lines changed

4 files changed

+56
-6
lines changed

Chap_Introduction.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ \section{Organization of this document}
201201
\item \ac{PMIx} Initialization and Finalization in \chapterref{chap:api_init}
202202
\item Key/Value Management in \chapterref{chap:api_kv_mgmt}
203203
\item Process Management in \chapterref{chap:api_proc_mgmt}
204-
\item Job Management in \chapterref{chap:api_job_mgmt}
204+
\item Job Management and Reporting in \chapterref{chap:api_job_mgmt}
205205
\item Event Notification in \chapterref{chap:api_event}
206206
\item Data Packing and Unpacking in \chapterref{chap:api_data_mgmt}
207207
\item Security in \chapterref{chap:api_security}
208208
\item \ac{PMIx} Server Specific Interfaces in \chapterref{chap:api_server}
209-
\item Scheduler-Specific Interface in \chapterref{chap:api_scheduler}
209+
\item Fabric Support Definitions in \chapterref{chap:api_fabric}
210210
\item Process Sets and Groups in \chapterref{chap:api_sets_groups}
211-
\item Network Coordinates in \chapterref{chap:network_coords}
211+
\item Tools and Debuggers in \chapterref{chap:api_tools}
212212
\item Python Bindings in \appendixref{app:python}
213213
\end{itemize}
214214

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ pmix-standard.pdf: $(CHAPTERS) $(SOURCES) pmix.sty pmix-standard.tex figs/pmix-l
6262
pdflatex -interaction=batchmode -file-line-error pmix-standard.tex || \
6363
pdflatex -interaction=errorstopmode -file-line-error pmix-standard.tex < /dev/null
6464
pdflatex -interaction=batchmode -file-line-error pmix-standard.tex
65-
@echo "====> Checking References (pmix-standard.log)"
66-
@grep "Hyper reference" pmix-standard.log | grep Warning \
67-
&& { echo "====> Error check references (above)" ; exit 1; } || { exit 0; }
65+
@./bin/check-doc.sh
6866
@echo "====> Success"
6967
@cp pmix-standard.pdf pmix-standard-${version}.pdf
7068

bin/check-doc.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
#
4+
# A script to run after every 'make' of the standard to check its integrity.
5+
#
6+
FINAL_STATUS=0
7+
8+
#
9+
# Check for "Hyper reference" warnings which indicate missing cross reference.
10+
#
11+
echo "====> Checking Hyper References"
12+
grep "Hyper reference" pmix-standard.log | grep Warning
13+
if [ $? == 0 ] ; then
14+
echo "====> Error check references (above)"
15+
FINAL_STATUS=$((FINAL_STATUS+1))
16+
else
17+
echo "====> Passed"
18+
fi
19+
20+
#
21+
# Check for Acronym used but not defined
22+
#
23+
echo "====> Checking Cross References"
24+
grep "Warning: Reference" pmix-standard.log | grep "undefined"
25+
if [ $? == 0 ] ; then
26+
echo "====> Error check references (above)"
27+
FINAL_STATUS=$((FINAL_STATUS+1))
28+
else
29+
echo "====> Passed"
30+
fi
31+
32+
#
33+
# Check for Acronym used but not defined
34+
#
35+
echo "====> Checking Acronyms"
36+
grep "Acronym" pmix-standard.log | grep "is not defined on input"
37+
if [ $? == 0 ] ; then
38+
echo "====> Error check references (above)"
39+
FINAL_STATUS=$((FINAL_STATUS+1))
40+
else
41+
echo "====> Passed"
42+
fi
43+
44+
45+
#
46+
# All done
47+
#
48+
exit $FINAL_STATUS

pmix-standard.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
\acrodef{IL}{Intermediate Launcher}
126126
\acrodef{FEA}{Fork/Exec Agent}
127127

128+
% Acronyms that we may remove at a later time
129+
\acrodef{PRRTE}[PRRTE]{PMIx-based Reference RunTime Environment}
130+
\acrodef{PRI}[PRI]{PMIx Reference Implementation}
131+
128132
%%%%%%%%%%%%%%%%%%%
129133

130134

0 commit comments

Comments
 (0)