r10295 - /man-cgi/static-repository/bin/fetch-man-pages.sh
Author: jfs
Date: Wed Oct 30 01:48:17 2013
New Revision: 10295
URL: http://svn.debian.org/wsvn/?sc=1&rev=10295
Log:
Send w3mman2html.cgi stderr to null due to deprecated warning. Update locations for Debian
Modified:
man-cgi/static-repository/bin/fetch-man-pages.sh
Modified: man-cgi/static-repository/bin/fetch-man-pages.sh
URL: http://svn.debian.org/wsvn/man-cgi/static-repository/bin/fetch-man-pages.sh?rev=10295&op=diff
==============================================================================
--- man-cgi/static-repository/bin/fetch-man-pages.sh (original)
+++ man-cgi/static-repository/bin/fetch-man-pages.sh Wed Oct 30 01:48:17 2013
@@ -88,11 +88,13 @@
#man "$manpage" 2>/dev/null | col -b > "$out".txt
#man2html -r "$manpage" > "$out"
#w3mman -l "$manpage" | ./w3mman-to-html.pl "$NAME_AND_VER" "$DIST" "$src_pkg" > "$out"
- BODY=`/usr/lib/w3m/cgi-bin/w3mman2html.cgi "local=$manpage" | grep -A 1000000 "^<b>" | sed -e '/<\/body>/,+100 d' -e 's:^<b>\(.*\)</b>$:</pre><h4><b>\1</b></h4><pre>:g' -e 's:<a href="file\:///[^?]*?\([^(]*\)(\([^)]*\))">:<a href="../man\2/\1.\2.html">:g'`
+ # Note: we send stderr to /dev/null due to the following error
+ # "defined(%hash) is deprecated at /usr/lib/w3m/cgi-bin/w3mman2html.cgi line 223."
+ BODY=`/usr/lib/w3m/cgi-bin/w3mman2html.cgi "local=$manpage" 2>/dev/null | grep -A 1000000 "^<b>" | sed -e '/<\/body>/,+100 d' -e 's:^<b>\(.*\)</b>$:</pre><h4><b>\1</b></h4><pre>:g' -e 's:<a href="file\:///[^?]*?\([^(]*\)(\([^)]*\))">:<a href="../man\2/\1.\2.html">:g'`
TITLE=`printf "%s" "$BODY" | head -n2 | tail -n1 | sed "s/<[^>]\+>//g"`
BIN_PKG=`printf "%s" "$NAME_AND_VER" | sed s/_.*$//g`
- PKG_LINK="https://launchpad.net/ubuntu/$DIST/+package/$BIN_PKG"
- BUG_LINK="https://bugs.launchpad.net/ubuntu/+source/$src_pkg/+filebug-advanced"
+ PKG_LINK="http://packages.debian.org/$DIST/$BIN_PKG"
+ BUG_LINK="http://bugs.debian.org/$src_pkg"
printf "%s\n" "<!--#include virtual='/above1.html' -->" > "$out"
printf "%s\n" "$TITLE" >> "$out"
printf "%s\n" "<!--#include virtual='/above2.html' -->" >> "$out"
Reply to: