File: manuals

package info (click to toggle)
open-plc-utils 0.0.6%2Bgit20230504.1ba7d5a0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,212 kB
  • sloc: ansic: 60,875; xml: 16,179; sh: 1,216; makefile: 698
file content (43 lines) | stat: -rwxr-xr-x 1,501 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# file: docbook/manuals

# ====================================================================
#
# --------------------------------------------------------------------

# unset LANG
export MANWIDTH=132
TOOLS=/usr/local/bin/cmassoc
INDEX=toolkit.html
STYLE=toolkit.css

# ====================================================================
# 
# --------------------------------------------------------------------

if [ ! -d ${TOOLS} ]; then
	echo "You do not have Motley Tools installed. Bye!"
	exit 1
fi

# ====================================================================
#
# --------------------------------------------------------------------

cp ../pib/piboffset.* .
for file in ../*/*.1;  do echo ${file}; ${TOOLS}/mp -s open-plc-utils ${file}; man ${file} > $(basename ${file}); done
for file in ../scripts/*.sh; do cp ${file} .; done
${TOOLS}/purge -vr ../t.c
${TOOLS}/import -r . '../*.h' '../*.c' 

# ====================================================================
#
# --------------------------------------------------------------------

${TOOLS}/catalog -s ${STYLE} -gdp ${INDEX} -c 4 *.1 > manual.txt
${TOOLS}/catalog -s ${STYLE} -gdp ${INDEX} -c 4 *.h > header.txt
${TOOLS}/catalog -s ${STYLE} -gdp ${INDEX} -c 4 *.c > source.txt
${TOOLS}/catalog -s ${STYLE} -gdp ${INDEX} -c 4 *.sh > script.txt
cat part0.txt part1.txt manual.txt part2.txt header.txt part4.txt source.txt part6.txt script.txt part8.txt > ${INDEX}
rm -f manual.txt header.txt source.txt script.txt