forked from digraphs/Digraphs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakedoc.g
More file actions
25 lines (24 loc) · 719 Bytes
/
makedoc.g
File metadata and controls
25 lines (24 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## this creates the documentation, needs: GAPDoc package, latex, pdflatex,
## mkindex, dvips
##
## Call this with GAP in the package directory:
##
## gap makedoc.g
##
if not IsDirectoryPath("gap")
or not "doc.g" in DirectoryContents("gap") then
Print("Error: GAP must be run from the package directory ",
"when reading makedoc.g\n");
FORCE_QUIT_GAP(1);
fi;
if IsBoundGlobal("DIGRAPHS_DocXMLFiles") then
MakeReadWriteGlobal("DIGRAPHS_DocXMLFiles");
UnbindGlobal("DIGRAPHS_DocXMLFiles");
fi;
if IsBoundGlobal("DIGRAPHS_MakeDoc") then
MakeReadWriteGlobal("DIGRAPHS_MakeDoc");
UnbindGlobal("DIGRAPHS_MakeDoc");
fi;
Read("gap/doc.g");
DIGRAPHS_MakeDoc(DirectoryCurrent());
FORCE_QUIT_GAP();