packages: libqalculate/libqalculate-autotools.patch (NEW) - patch from debian
cactus
cactus at pld-linux.org
Thu Oct 8 13:10:44 CEST 2009
Author: cactus Date: Thu Oct 8 11:10:44 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- patch from debian
---- Files affected:
packages/libqalculate:
libqalculate-autotools.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libqalculate/libqalculate-autotools.patch
diff -u /dev/null packages/libqalculate/libqalculate-autotools.patch:1.1
--- /dev/null Thu Oct 8 13:10:44 2009
+++ packages/libqalculate/libqalculate-autotools.patch Thu Oct 8 13:10:39 2009
@@ -0,0 +1,18496 @@
+--- libqalculate-0.9.6.orig/config.guess
++++ libqalculate-0.9.6/config.guess
+@@ -4,7 +4,7 @@
+ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+ # Inc.
+
+-timestamp='2007-01-15'
++timestamp='2007-07-22'
+
+ # This file is free software; you can redistribute it and/or modify it
+ # under the terms of the GNU General Public License as published by
+@@ -139,23 +139,6 @@
+ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+-if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
+- eval $set_cc_for_build
+- cat << EOF > $dummy.c
+- #include <features.h>
+- #ifdef __UCLIBC__
+- # ifdef __UCLIBC_CONFIG_VERSION__
+- LIBC=uclibc __UCLIBC_CONFIG_VERSION__
+- # else
+- LIBC=uclibc
+- # endif
+- #else
+- LIBC=gnu
+- #endif
+-EOF
+- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
+-fi
+-
+ # Note: order is significant - the case branches are not exclusive.
+
+ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+@@ -347,7 +330,7 @@
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+- i86pc:SunOS:5.*:*)
++ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+@@ -808,12 +791,15 @@
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+- x86:Interix*:[3456]*)
+- echo i586-pc-interix${UNAME_RELEASE}
+- exit ;;
+- EM64T:Interix*:[3456]* | authenticamd:Interix*:[3456]*)
+- echo x86_64-unknown-interix${UNAME_RELEASE}
+- exit ;;
++ *:Interix*:[3456]*)
++ case ${UNAME_MACHINE} in
++ x86)
++ echo i586-pc-interix${UNAME_RELEASE}
++ exit ;;
++ EM64T | authenticamd)
++ echo x86_64-unknown-interix${UNAME_RELEASE}
++ exit ;;
++ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+@@ -847,28 +833,28 @@
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ arm*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ avr32*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+- echo cris-axis-linux-${LIBC}
++ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+- echo crisv32-axis-linux-${LIBC}
++ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+- echo frv-unknown-linux-${LIBC}
++ echo frv-unknown-linux-gnu
+ exit ;;
+ ia64:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:*)
+ eval $set_cc_for_build
+@@ -891,7 +877,7 @@
+ s: ::g
+ p
+ }'`"
+- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
++ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ mips64:Linux:*:*)
+ eval $set_cc_for_build
+@@ -914,16 +900,16 @@
+ s: ::g
+ p
+ }'`"
+- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
++ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+- echo or32-unknown-linux-${LIBC}
++ echo or32-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+- echo powerpc-unknown-linux-${LIBC}
++ echo powerpc-unknown-linux-gnu
+ exit ;;
+ ppc64:Linux:*:*)
+- echo powerpc64-unknown-linux-${LIBC}
++ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+@@ -936,40 +922,40 @@
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+- if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
++ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+- PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+- PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+- *) echo hppa-unknown-linux-${LIBC} ;;
++ PA7*) echo hppa1.1-unknown-linux-gnu ;;
++ PA8*) echo hppa2.0-unknown-linux-gnu ;;
++ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+- echo hppa64-unknown-linux-${LIBC}
++ echo hppa64-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
++ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+- echo ${UNAME_MACHINE}-dec-linux-${LIBC}
++ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+- echo x86_64-unknown-linux-${LIBC}
++ echo x86_64-unknown-linux-gnu
+ exit ;;
+ xtensa:Linux:*:*)
+- echo xtensa-unknown-linux-${LIBC}
++ echo xtensa-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+@@ -984,22 +970,20 @@
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+- TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
++ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ ;;
+ a.out-i386-linux)
+- echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
++ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ exit ;;
+ coff-i386)
+- echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
++ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+ exit ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+- echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
++ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ exit ;;
+ esac
+- # This should get integrated into the C code below, but now we hack
+- if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+--- libqalculate-0.9.6.orig/ltmain.sh
++++ libqalculate-0.9.6/ltmain.sh
+@@ -43,8 +43,8 @@
+
+ PROGRAM=ltmain.sh
+ PACKAGE=libtool
+-VERSION=1.5.23b
+-TIMESTAMP=" (1.1220.2.437 2007/02/17 09:08:45)"
++VERSION="1.5.24 Debian 1.5.24-1"
++TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
+
+ # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+@@ -275,21 +275,7 @@
+ esac
+ CC_quoted="$CC_quoted $arg"
+ done
+- # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
+- trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
+- # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
+- extendcc=${host}-${CC}
+- # and sometimes libtool has CC=<OLDHOST>-gcc but user has CC=<NEWHOST>-gcc
+- # (Gentoo-specific hack because we always export $CHOST)
+- mungedcc=${CHOST-${host}}-${trimedcc}
+ case "$@ " in
+- "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
+- "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
+- tagname=CC
+- break ;;
+- "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
+- "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
+- "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\
+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+@@ -895,7 +881,7 @@
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+- until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
++ until $run ln "$progpath" "$lockfile" 2>/dev/null; do
+ $show "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+@@ -1705,9 +1691,9 @@
+
+ -no-install)
+ case $host in
+- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
++ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
+ # The PATH hackery in wrapper scripts is required on Windows
+- # in order for the loader to find any dlls it needs.
++ # and Darwin in order for the loader to find any dlls it needs.
+ $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
+ $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
+ fast_install=no
+@@ -2136,7 +2122,10 @@
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+- link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
++ link)
++ libs="$deplibs %DEPLIBS%"
++ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
++ ;;
+ esac
+ fi
+ if test "$pass" = dlopen; then
+@@ -3253,9 +3242,15 @@
+ age="0"
+ ;;
+ irix|nonstopux)
+- current=`expr $number_major + $number_minor - 1`
++ current=`expr $number_major + $number_minor`
+ age="$number_minor"
+ revision="$number_minor"
++ lt_irix_increment=no
++ ;;
++ *)
++ $echo "$modename: unknown library version type \`$version_type'" 1>&2
++ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
++ exit $EXIT_FAILURE
+ ;;
+ esac
+ ;;
+@@ -3314,7 +3309,8 @@
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ minor_current=`expr $current + 1`
+- verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
++ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
++ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+@@ -3328,8 +3324,11 @@
+ ;;
+
+ irix | nonstopux)
+- major=`expr $current - $age + 1`
+-
++ if test "X$lt_irix_increment" = "Xno"; then
++ major=`expr $current - $age`
++ else
++ major=`expr $current - $age + 1`
++ fi
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+@@ -5451,11 +5450,6 @@
+ $echo >> $output "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+-
+- # Make sure env LD_LIBRARY_PATH does not mess us up
+- if test -n \"\${LD_LIBRARY_PATH+set}\"; then
+- export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
+- fi
+ "
+ case $host in
+ # Backslashes separate directories on plain windows
+@@ -5683,53 +5677,9 @@
+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+ fi
+- if test "X$EGREP" = X ; then
+- EGREP=egrep
+- fi
+- # We do not want portage's install root ($D) present. Check only for
+- # this if the .la is being installed.
+- if test "$installed" = yes && test "$D"; then
+- eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
+- else
+- mynewdependency_lib="$libdir/$name"
+- fi
+- # Do not add duplicates
+- if test "$mynewdependency_lib"; then
+- my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
+- if test -z "$my_little_ninja_foo_1"; then
+- newdependency_libs="$newdependency_libs $mynewdependency_lib"
+- fi
+- fi
+- ;;
+- *)
+- if test "$installed" = yes; then
+- # Rather use S=WORKDIR if our version of portage supports it.
+- # This is because some ebuild (gcc) do not use $S as buildroot.
+- if test "$PWORKDIR"; then
+- S="$PWORKDIR"
+- fi
+- # We do not want portage's build root ($S) present.
+- my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
+- # We do not want portage's install root ($D) present.
+- my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
+- if test -n "$my_little_ninja_foo_2" && test "$S"; then
+- mynewdependency_lib=""
+- elif test -n "$my_little_ninja_foo_3" && test "$D"; then
+- eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
+- else
+- mynewdependency_lib="$deplib"
+- fi
+- else
+- mynewdependency_lib="$deplib"
+- fi
+- # Do not add duplicates
+- if test "$mynewdependency_lib"; then
+- my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
+- if test -z "$my_little_ninja_foo_4"; then
+- newdependency_libs="$newdependency_libs $mynewdependency_lib"
+- fi
+- fi
++ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
++ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+@@ -5781,10 +5731,6 @@
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ esac
+- # Do not add duplicates
+- if test "$installed" = yes && test "$D"; then
+- install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
+- fi
+ $echo > $output "\
+ # $outputname - a libtool library file
+ # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+@@ -6544,8 +6490,6 @@
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+- else
+- $lt_unset $lt_var
+ fi"
+ done
+
+--- libqalculate-0.9.6.orig/intltool-extract
++++ libqalculate-0.9.6/intltool-extract
+@@ -0,0 +1,861 @@
++#!/usr/bin/perl -w
++# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*-
++
++#
++# The Intltool Message Extractor
++#
++# Copyright (C) 2000-2001, 2003 Free Software Foundation.
++#
++# Intltool 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 of the
++# License, or (at your option) any later version.
++#
++# Intltool 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., 675 Mass Ave, Cambridge, MA 02139, USA.
++#
++# As a special exception to the GNU General Public License, if you
++# distribute this file as part of a program that contains a
++# configuration script generated by Autoconf, you may include it under
++# the same distribution terms that you use for the rest of that program.
++#
++# Authors: Kenneth Christiansen <kenneth at gnu.org>
++# Darin Adler <darin at bentspoon.com>
++#
++
++## Release information
++my $PROGRAM = "intltool-extract";
++my $PACKAGE = "intltool";
++my $VERSION = "0.36.2";
++
++## Loaded modules
++use strict;
++use File::Basename;
++use Getopt::Long;
++
++## Scalars used by the option stuff
++my $TYPE_ARG = "0";
++my $LOCAL_ARG = "0";
++my $HELP_ARG = "0";
++my $VERSION_ARG = "0";
++my $UPDATE_ARG = "0";
++my $QUIET_ARG = "0";
++my $SRCDIR_ARG = ".";
++
++my $FILE;
++my $OUTFILE;
++
++my $gettext_type = "";
++my $input;
++my %messages = ();
++my %loc = ();
++my %count = ();
++my %comments = ();
++my $strcount = 0;
++
++my $XMLCOMMENT = "";
++
++## Use this instead of \w for XML files to handle more possible characters.
++my $w = "[-A-Za-z0-9._:]";
++
++## Always print first
++$| = 1;
++
++## Handle options
++GetOptions (
++ "type=s" => \$TYPE_ARG,
++ "local|l" => \$LOCAL_ARG,
++ "help|h" => \$HELP_ARG,
++ "version|v" => \$VERSION_ARG,
++ "update" => \$UPDATE_ARG,
++ "quiet|q" => \$QUIET_ARG,
++ "srcdir=s" => \$SRCDIR_ARG,
++ ) or &error;
++
++&split_on_argument;
++
++
++## Check for options.
++## This section will check for the different options.
++
++sub split_on_argument {
++
++ if ($VERSION_ARG) {
++ &version;
++
++ } elsif ($HELP_ARG) {
++ &help;
++
++ } elsif ($LOCAL_ARG) {
++ &place_local;
++ &extract;
++
++ } elsif ($UPDATE_ARG) {
++ &place_normal;
++ &extract;
++
++ } elsif (@ARGV > 0) {
++ &place_normal;
++ &message;
++ &extract;
++
++ } else {
++ &help;
++
++ }
++}
++
++sub place_normal {
++ $FILE = $ARGV[0];
++ $OUTFILE = "$FILE.h";
++
++ my $dirname = dirname ($OUTFILE);
++ if (! -d "$dirname" && $dirname ne "") {
++ system ("mkdir -p $dirname");
++ }
++}
++
++sub place_local {
++ $FILE = $ARGV[0];
++ $OUTFILE = fileparse($FILE, ());
++ if (!-e "tmp/") {
++ system("mkdir tmp/");
++ }
++ $OUTFILE = "./tmp/$OUTFILE.h"
++}
++
++sub determine_type {
++ if ($TYPE_ARG =~ /^gettext\/(.*)/) {
++ $gettext_type=$1
++ }
++}
++
++## Sub for printing release information
++sub version{
++ print <<_EOF_;
++${PROGRAM} (${PACKAGE}) $VERSION
++Copyright (C) 2000, 2003 Free Software Foundation, Inc.
++Written by Kenneth Christiansen, 2000.
++
++This is free software; see the source for copying conditions. There is NO
++warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++_EOF_
++ exit;
++}
++
++## Sub for printing usage information
++sub help {
++ print <<_EOF_;
++Usage: ${PROGRAM} [OPTION]... [FILENAME]
++Generates a header file from an XML source file.
++
++It grabs all strings between <_translatable_node> and its end tag in
++XML files. Read manpage (man ${PROGRAM}) for more info.
++
++ --type=TYPE Specify the file type of FILENAME. Currently supports:
++ "gettext/glade", "gettext/ini", "gettext/keys"
++ "gettext/rfc822deb", "gettext/schemas",
++ "gettext/scheme", "gettext/xml", "gettext/quoted"
++ -l, --local Writes output into current working directory
++ (conflicts with --update)
++ --update Writes output into the same directory the source file
++ reside (conflicts with --local)
++ --srcdir Root of the source tree
++ -v, --version Output version information and exit
++ -h, --help Display this help and exit
++ -q, --quiet Quiet mode
++
++Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE")
++or send email to <xml-i18n-tools\@gnome.org>.
++_EOF_
++ exit;
++}
<<Diff was trimmed, longer than 597 lines>>
More information about the pld-cvs-commit
mailing list