~ubuntu-branches/ubuntu/trusty/xpilot-ng/trusty

« back to all changes in this revision

Viewing changes to doc/faq2html

  • Committer: Bazaar Package Importer
  • Author(s): Ben Armstrong
  • Date: 2008-03-18 12:33:36 UTC
  • mfrom: (1.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080318123336-x1qjwdauqfe2g215
Tags: 1:4.7.3~cvs20080224-1
* CVS snapshot, preparing for 4.7.3 release.
* Fix dependencies to make binNMU safe. (Closes: #435967)
* Moved maps and server configs from -common to -server and dropped -server
  dependency on -common. (Closes: #436061)
* Added README.Debian explaining change in default key mapping from
  classic XPilot. (Closes: #324413)
* Changed encoding in VERSION string to UTF-8. (Closes: #387170)
* Added LSB formatted dependency info in init.d script. (Closes: #460522)
* Must build conflict with x11proto-xf86misc-dev so that HAVE_XF86MISC
  will not be set, as otherwise XF86MiscGetMouseSettings fails on the new
  xorg, crashing the client.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# This file is part of XPilot and is Copyright (C) 2002 by
 
4
# the XPilot authors; see provided LICENSE file for details.
 
5
 
6
# Convert the unformatted XPilot text FAQ to HTML.
 
7
#
 
8
 
 
9
if [ ! -r FAQ ]; then
 
10
    echo "No readable file named FAQ could be found!"
 
11
    exit 1
 
12
fi
 
13
 
 
14
cat > FAQ.html << END_OF_HEADER
 
15
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
 
16
<HTML><HEAD><TITLE>
 
17
This is the Frequently Asked Questions list With Answers for XPilot.
 
18
</TITLE></HEAD>
 
19
<BODY>
 
20
END_OF_HEADER
 
21
 
 
22
cat FAQ |
 
23
sed \
 
24
    -e '/^From:/,/^Keywords:/d' \
 
25
    -e 's|<URL:\([^>]*\)>|<A HREF="\1">\1</A>|g' \
 
26
    -e '/^Questions:/,/^Answers:/s|^\([0-9]\+\)) \(.*\)|\1. <A NAME="Q\1" HREF="#A\1">\2</A>|' \
 
27
    -e '/^Answers:/,/^EOFAQ/s|^\([0-9]\+\)) \(.*\)|<B><A NAME="A\1" HREF="#Q\1">\1.</A> \2</B>|' \
 
28
    -e '/^New questions .*:/s|\([0-9]\+\)|<A HREF="#A\1">\1</A>|g' \
 
29
    -e '/^Questions changed .*:/s|\([0-9]\+\)|<A HREF="#A\1">\1</A>|g' \
 
30
    -e 's|\(question \)\([0-9]\+\)|<A HREF="#A\2">\1\2</A>|g' \
 
31
    -e 's|^\([A-Z][-a-zA-Z_]\+:\)|<B>\1</B>|' \
 
32
    -e 's|^\([a-z]\{1,3\}[.)]\) |<B>\1</B> |' \
 
33
    -e 's|^EOFAQ$|<B>EOFAQ</B>|' \
 
34
    -e 's|^    \(.*\)|<DD>    \1</DD>|' \
 
35
    -e '/<pre>/,/<\/pre>/!s|\(.\)$|\1<BR>|' \
 
36
    -e '/<pre>/,/<\/pre>/!s|^$|<P>|' \
 
37
>> FAQ.html
 
38
 
 
39
cat >> FAQ.html << END_OF_TRAILER
 
40
</BODY></HTML>
 
41
END_OF_TRAILER
 
42
 
 
43