1 changequote(`«', `»')dnl
2 dnl Discard output by diverting to a negative diversion to suppress
3 dnl unwanted trailing newlines after macro definitions.
6 define(«LOCAL_LINK_NAME», «translit(«$1», «A-Z
9 define(«REMOVE_NEWLINE», «translit(«$1»,«
12 define(«REFERENCE», [«REMOVE_NEWLINE(«$2»)»](««#»»«LOCAL_LINK_NAME(«$1»)»))
13 define(«XREFERENCE», «[$2]»«($1)»)
14 define(«EMPH», ««_»REMOVE_NEWLINE(«$1»)«_»»)
15 define(«CMD», «`REMOVE_NEWLINE(«$1»)`»)
16 define(«SECTION», « divert(«0») <a
17 href='«#»LOCAL_LINK_NAME(«$1»)'>$1</a><br> divert(«2») <h2
18 id="LOCAL_LINK_NAME(«$1»)">$1</h2> ») define(«SUBSECTION»,
19 «<h3 id="LOCAL_LINK_NAME(«$1»)">$1</h3> »)
23 <div class="overview">
25 ifelse(«$2», «», «Overview», «$2»)
30 define(«EXERCISES», «<h3> Exercises </h3>»)
34 ifelse(«$2», «», «$1», «dnl
37 </summary> <h4> Solution </h4>
38 <div class="solution">$2</div> </details>»)
40 define(«SUPPLEMENTS», «SECTION(«Supplements»)»)
43 ifelse(«$1.m4», «$2», «», «<a href="$1.html">»)
44 translit(«$1», «_», « »)
45 ifelse(«$1.m4», «$2», «», «</a>»)
48 define(«LOGO», «<a title="home" href="."><img src="aple.svg" alt="logo"></a>»)
54 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
55 <title>Unix course</title>
56 <link href="aple.css" rel="stylesheet" type="text/css">
57 <link rel="shortcut icon" href="aple.ico">
60 <table class="logo"> <tr>
61 <td class="logo">LOGO()</td>
62 <td class="logo"> <h1>
64 substr(translit(«$2», «_», « »), 0, index(«$2», .m4))
68 </h1> <p> <small> $1 </small> </p>
74 define(«TABLE_OF_CONTENTS», «
75 TOC_ENTRY(«Introduction», «$2»)
76 TOC_ENTRY(«Unix_Concepts», «$2»)
77 ifelse(PUBLIC(), «false», «
78 TOC_ENTRY(Command_Line_Utilities, «$2»)
80 TOC_ENTRY(Networking, «$2»)
82 TOC_ENTRY(«Filesystems», «$2»)
83 TOC_ENTRY(OS-Level_Virtualization, «$2»)
84 ifelse(PUBLIC(), «false», «
85 TOC_ENTRY(Gridengine, «$2»)
88 TOC_ENTRY(Debugging, «$2»)
93 HEADER(«$1», «$2», «$3»)
95 <div class="dropdown">
97 height="35" width="30"
98 xmlns="http://www.w3.org/2000/svg"
99 xmlns:xlink="http://www.w3.org/1999/xlink"
101 <rect fill="black" height="3" width="20" x="5" y="5" rx="2"/>
102 <rect fill="black" height="3" width="20" x="5" y="11" rx="2"/>
103 <rect fill="black" height="3" width="20" x="5" y="17" rx="2"/>
105 <div class="dropdown-content">
112 TABLE_OF_CONTENTS(«chapter_list»)
113 </td> <td class="menu">