18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
else
wikipage="Manual for ${file}"
fi
(
echo '<H2>NAME</H2>'
man2html -H linux.die.net -M /man -p "${file}.3" | \
sed '0,/<H2>NAME<\/H2>/ d;/<H2>Index<\/H2>/,$ d;s@<A HREF="../index.html">Return to Main Contents</A>@@;s@\[@\[@;s@\]@\]@' | \
sed 's@file:/usr/include/libconfig.h@artifact/'"${LIBCONFIG_H_SHA1}"'@' | \
sed '$ d;/^ *$/ d' | \
sed 's@\(http://linux.die.net/man/[^+]*\)+@\1/@' | \
sed 's@http://linux.die.net/man/3/lc_@wiki/Manual for lc_@g;s@http://linux.die.net/man/3/libconfig@wiki/Manual@'
) | (
fossil wiki commit "${wikipage}" || \
( fossil wiki create "${wikipage}" && fossil wiki commit "${wikipage}" )
|
|
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
else
wikipage="Manual for ${file}"
fi
(
echo '<H2>NAME</H2>'
man2html -H linux.die.net -M /man -p "${file}.3" | \
sed '0,/<H2>NAME<\/H2>/ d;/<H2>Index<\/H2>/,$ d;s@<A HREF="../index.html">Return to Main Contents</A>@@;s@\[@\[@g;s@\]@\]@g' | \
sed 's@file:/usr/include/libconfig.h@artifact/'"${LIBCONFIG_H_SHA1}"'@' | \
sed '$ d;/^ *$/ d' | \
sed 's@\(http://linux.die.net/man/[^+]*\)+@\1/@' | \
sed 's@http://linux.die.net/man/3/lc_@wiki/Manual for lc_@g;s@http://linux.die.net/man/3/libconfig@wiki/Manual@'
) | (
fossil wiki commit "${wikipage}" || \
( fossil wiki create "${wikipage}" && fossil wiki commit "${wikipage}" )
|