Diff

Differences From Artifact [daac12e0fd]:

To Artifact [317810cb56]:


     3      3   	cd ..
     4      4   fi
     5      5   
     6      6   if [ ! -f libconfig.3 ]; then
     7      7   	echo  'Could not find libconfig.3, aborting.' >&2
     8      8   	exit 1
     9      9   fi
           10  +
           11  +LIBCONFIG_H_SHA1="$(fossil sha1 libconfig.h | awk '{ print $1 }')"
    10     12   
    11     13   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
    12     14   	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
    13         -done
           15  +
           16  +	if [ "${file}" = 'libconfig' ]; then
           17  +		wikipage='Manual'
           18  +	else
           19  +		wikipage="Manual for ${file}"
           20  +	fi
    14     21   
           22  +	(
           23  +		echo '<H2>NAME</H2>'
           24  +		man2html -H linux.die.net -M /man -p "${file}.3" | \
           25  +			sed '0,/<H2>NAME<\/H2>/ d;/<H2>Index<\/H2>/,$ d;s@<A HREF="../index.html">Return to Main Contents</A>@@;s@\[@\&#91;@;s@\]@\&#93;@' | \
           26  +			sed 's@file:/usr/include/libconfig.h@artifact/'"${LIBCONFIG_H_SHA1}"'@' | \
           27  +			sed '$ d;/^ *$/ d' | \
           28  +			sed 's@\(http://linux.die.net/man/[^+]*\)+@\1/@' | \
           29  +			sed 's@http://linux.die.net/man/3/lc_@wiki/Manual for lc_@g;s@http://linux.die.net/man/3/libconfig@wiki/Manual@'
           30  +	) | (
           31  +		fossil wiki commit "${wikipage}" || \
           32  +			( fossil wiki create "${wikipage}" && fossil wiki commit "${wikipage}" )
           33  +	)
           34  +done
           35  +fossil sync