~ubuntu-branches/ubuntu/warty/lynx/warty-security

« back to all changes in this revision

Viewing changes to fixtext.sh

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# xgettext only processes literal strings.  Someone with a poor sense of humor
 
4
# decided to ignore strings in preprocessor lines.  So we construct a fake
 
5
# ".c" file with the definitions turned into literals.
 
6
 
 
7
sed     -e 's/")/");/' \
 
8
        -e 's/^#define[         ]*\([^  ]*\)[   ]*gettext/char *\1 = gettext/' \
 
9
        -e 's,^#define[         ]*\([^  ]*\)[   ]*\\,/* #define \1 */char *\1 = \\,' \
 
10
        $*