~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to scripts/mk-gpg-texi

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2006-01-24 04:31:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060124043142-pbg192or6qxv3yk2
Tags: 1.9.20-1
* New Upstream version. Closes:#306890,#344530
  * Closes:#320490: gpg-protect-tool fails to decrypt PKCS-12 files 
* Depend on libopensc2-dev, not -1-. Closes:#348106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Helper to create the texinfo versions from gpg.sgml
 
3
#
 
4
# Copyright (C) 2002 Free Software Foundation, Inc.
 
5
#
 
6
# This file is free software; as a special exception the author gives
 
7
# unlimited permission to copy and/or distribute it, with or without
 
8
# modifications, as long as this notice is preserved.
 
9
#
 
10
# This program is distributed in the hope that it will be useful, but
 
11
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
 
12
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
13
 
 
14
set -e
 
15
 
 
16
for file in gpg gpgv; do
 
17
  sgml2xml -x lower ${file}.sgml >${file}.xml
 
18
  docbook2texi ${file}.xml | sed 's,--,---,' | (
 
19
  case "$file" in
 
20
    *gpgv)
 
21
        sed '/@setfilename/a \
 
22
@dircategory GnuPG\
 
23
@direntry\
 
24
* gpgv: (gpgv).                       GnuPG signature verification tool.\
 
25
@end direntry
 
26
'
 
27
         ;;
 
28
 
 
29
    gpg)
 
30
        sed '/@setfilename/a \
 
31
@dircategory GnuPG\
 
32
@direntry\
 
33
* gpg: (gpg).                         GnuPG encryption and signing tool.\
 
34
@end direntry
 
35
'
 
36
        ;;
 
37
 
 
38
    *)
 
39
    cat
 
40
        ;;
 
41
  esac
 
42
  ) >${file}.texi 
 
43
done
 
44
 
 
45
 
 
46