Check-in [8659e921b0]
Overview
Comment:Updated to build man pages into wiki
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8659e921b0126e1dd97cb71888f3da65b2cf4f09
User & Date: rkeene on 2014-11-24 20:12:35
Other Links: manifest | tags
Context
2014-11-24
22:35
Work on improving error handling check-in: 63a4e29f38 user: rkeene tags: trunk
20:12
Updated to build man pages into wiki check-in: 8659e921b0 user: rkeene tags: trunk
19:56
libconfig 0.3.2 check-in: 760bcd50bc user: rkeene tags: trunk, 0.3.2
Changes

Modified build/build_web_manpages from [daac12e0fd] to [317810cb56].

3
4
5
6
7
8
9


10
11
12
13
14




















	cd ..
fi

if [ ! -f libconfig.3 ]; then
	echo  'Could not find libconfig.3, aborting.' >&2
	exit 1
fi



for file in lc_cleanup lc_geterrno lc_geterrstr lc_seterrstr lc_process lc_process_file lc_register_callback lc_register_var libconfig lc_handle_type; do
	man2html -H "REPLACE" -M "/ME" < ${file}.3 | grep -iv '^Content-Type:' | sed 's@"http://REPLACE/ME?\([0-9]*\)+\([^"]*\)"@"\2.htm"@;s@http://REPLACE/ME@@g' > /web/rkeene/docs/oss/libconfig/${file}.htm
done




























>
>



<

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
	cd ..
fi

if [ ! -f libconfig.3 ]; then
	echo  'Could not find libconfig.3, aborting.' >&2
	exit 1
fi

LIBCONFIG_H_SHA1="$(fossil sha1 libconfig.h | awk '{ print $1 }')"

for file in lc_cleanup lc_geterrno lc_geterrstr lc_seterrstr lc_process lc_process_file lc_register_callback lc_register_var libconfig lc_handle_type; do
	man2html -H "REPLACE" -M "/ME" < ${file}.3 | grep -iv '^Content-Type:' | sed 's@"http://REPLACE/ME?\([0-9]*\)+\([^"]*\)"@"\2.htm"@;s@http://REPLACE/ME@@g' > /web/rkeene/docs/oss/libconfig/${file}.htm


	if [ "${file}" = 'libconfig' ]; then
		wikipage='Manual'
	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@\[@\&#91;@;s@\]@\&#93;@' | \
			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}" )
	)
done
fossil sync