diff options
author | Bruno Haible <bruno@clisp.org> | 2003-09-03 10:27:17 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:57 +0200 |
commit | b440926984299740093f463c7f2328b2efd03f68 (patch) | |
tree | 9faa4beaf24dc26821bccf952be1a3b1deb4bcef /gettext-tools/src/x-sh.h | |
parent | 1a0dc6f621f1497f4966980a34ea6f8c55b519b3 (diff) | |
download | external_gettext-b440926984299740093f463c7f2328b2efd03f68.zip external_gettext-b440926984299740093f463c7f2328b2efd03f68.tar.gz external_gettext-b440926984299740093f463c7f2328b2efd03f68.tar.bz2 |
sh/bash script parser.
Diffstat (limited to 'gettext-tools/src/x-sh.h')
-rw-r--r-- | gettext-tools/src/x-sh.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gettext-tools/src/x-sh.h b/gettext-tools/src/x-sh.h new file mode 100644 index 0000000..84b8b27 --- /dev/null +++ b/gettext-tools/src/x-sh.h @@ -0,0 +1,33 @@ +/* xgettext sh backend. + Copyright (C) 2003 Free Software Foundation, Inc. + Written by Bruno Haible <bruno@clisp.org>, 2003. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + + +#define EXTENSIONS_SH \ + { "sh", "Shell" }, \ + { "bash", "Shell" }, \ + +#define SCANNERS_SH \ + { "Shell", extract_sh, &formatstring_sh, NULL }, \ + +/* Scan a shell script file and add its translatable strings to mdlp. */ +extern void extract_sh (FILE *fp, const char *real_filename, + const char *logical_filename, + msgdomain_list_ty *mdlp); + +extern void x_sh_keyword (const char *keyword); +extern void x_sh_extract_all (void); |