~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-security

« back to all changes in this revision

Viewing changes to scripts/mk-gpg-texi

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

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