~ubuntu-branches/debian/experimental/intltool/experimental

« back to all changes in this revision

Viewing changes to intltoolize.in

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2006-10-24 21:50:28 UTC
  • mfrom: (3.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20061024215028-8u8azjmsesm1kqbl
Tags: 0.35.0-3
* Remove debhelper, cdbs, and gnome-pkg-tools from Build-Depends-Indep.
* Remove obsolete Conflicts / Replaces on xml-i18n-tools.
* New patch, 10_define-and-subst-datadirname, to compute DATADIRNAME as
  glib-gettext did it, and AC_SUBST() it; thanks Jurij Smakov; committed in
  upstream CVS; GNOME #345255; closes: #373643.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
# Directory names.
39
39
prefix=@prefix@
 
40
 
 
41
case "`uname`" in
 
42
MINGW32*)
 
43
  # Assume intltoolize is in $prefix/bin. Strip off the script name and the "bin"
 
44
  prefix=`dirname $0`
 
45
  prefix=`dirname $prefix`
 
46
  ;;
 
47
esac
 
48
 
 
49
datarootdir=@datarootdir@
40
50
datadir=@datadir@
41
51
pkgdatadir=@pkgdatadir@
42
52
 
269
279
# FIXME: This probably does not work w/ builddir != srcdir because it
270
280
# gets at source files relative to the current directory.
271
281
 
272
 
if grep GENPOT po/Makefile.in.in >/dev/null; then
273
 
  echo "no need for patching file 'Makefile.in.in'";
274
 
 
275
 
# gettextize 4.x Standard 
276
 
elif grep '# Copyright (C) 1995-1997, 2000-2002' po/Makefile.in.in > /dev/null; then
277
 
  patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-5
278
 
# gettext 0.12 and 0.13
279
 
elif grep '# Copyright (C) 1995-1997, 2000-2003' po/Makefile.in.in > /dev/null;
280
 
then
281
 
  patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-8
282
 
 
283
 
# glib-gettextize
284
 
elif grep '# POTFILES is created from POTFILES.in' po/Makefile.in.in > /dev/null; then
285
 
  if grep 'lang.new.po' po/Makefile.in.in > /dev/null; then
286
 
    patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-7
287
 
  elif grep 'XGETTEXT = @XGETTEXT@' po/Makefile.in.in > /dev/null; then 
288
 
    patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-6
289
 
  else
290
 
    patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-4
291
 
  fi
292
 
 
293
 
elif grep GETTEXT_PACKAGE po/Makefile.in.in >/dev/null; then
294
 
  patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-3
295
 
 
296
 
elif grep builddir po/Makefile.in.in >/dev/null; then
297
 
  patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-2
298
 
 
299
 
else
300
 
  patch po/Makefile.in.in < $pkgdatadir/intltool-po-Makefile.in.in-patch-1
301
 
fi
 
282
grep INTLTOOL_MAKEFILE po/Makefile.in.in >/dev/null || {
 
283
  echo "$progname: 'po/Makefile.in.in' is out of date: use '--force' to overwrite"
 
284
  exit 1
 
285
}
302
286
 
303
287
exit $status
304
288