Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Fix #132858, Sven Neumann, patch by James Henstridge:
Browse files Browse the repository at this point in the history
2004-07-21  Matthias Clasen  <mclasen@redhat.com>

	Fix #132858, Sven Neumann, patch by James Henstridge:

	* glib-gettextize.in: modify so that mkinstalldirs will
	get installed into auxdir.

	* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.
  • Loading branch information
Matthias Clasen authored and Matthias Clasen committed Jul 21, 2004
1 parent a246863 commit 723bc46
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
@@ -1,3 +1,12 @@
2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #132858, Sven Neumann, patch by James Henstridge:

* glib-gettextize.in: modify so that mkinstalldirs will
get installed into auxdir.

* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.

2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #147651, reported by Oliver Guntermann:
Expand Down
9 changes: 9 additions & 0 deletions ChangeLog.pre-2-10
@@ -1,3 +1,12 @@
2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #132858, Sven Neumann, patch by James Henstridge:

* glib-gettextize.in: modify so that mkinstalldirs will
get installed into auxdir.

* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.

2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #147651, reported by Oliver Guntermann:
Expand Down
9 changes: 9 additions & 0 deletions ChangeLog.pre-2-12
@@ -1,3 +1,12 @@
2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #132858, Sven Neumann, patch by James Henstridge:

* glib-gettextize.in: modify so that mkinstalldirs will
get installed into auxdir.

* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.

2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #147651, reported by Oliver Guntermann:
Expand Down
9 changes: 9 additions & 0 deletions ChangeLog.pre-2-6
@@ -1,3 +1,12 @@
2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #132858, Sven Neumann, patch by James Henstridge:

* glib-gettextize.in: modify so that mkinstalldirs will
get installed into auxdir.

* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.

2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #147651, reported by Oliver Guntermann:
Expand Down
9 changes: 9 additions & 0 deletions ChangeLog.pre-2-8
@@ -1,3 +1,12 @@
2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #132858, Sven Neumann, patch by James Henstridge:

* glib-gettextize.in: modify so that mkinstalldirs will
get installed into auxdir.

* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.

2004-07-21 Matthias Clasen <mclasen@redhat.com>

Fix #147651, reported by Oliver Guntermann:
Expand Down
4 changes: 4 additions & 0 deletions Makefile.am
Expand Up @@ -70,6 +70,10 @@ pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc

$(pkgconfig_DATA): config.status

# install mkinstalldirs for glib-gettextize's benefit
gettextdir = $(datadir)/glib-2.0/gettext
gettext_SCRIPTS = mkinstalldirs

# build documentation when doing distcheck
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc

Expand Down
19 changes: 19 additions & 0 deletions glib-gettextize.in
Expand Up @@ -98,6 +98,20 @@ test -f configure.in || test -f configure.ac || {
exit 1
}

configure_in=NONE
if test -f configure.in; then
configure_in=configure.in
else
if test -f configure.ac; then
configure_in=configure.ac
fi
fi
# Check in which directory config.rpath, mkinstalldirs etc. belong.
auxdir=`cat "$configure_in" | grep '^AC_CONFIG_AUX_DIR' | sed -n -e 's/AC_CONFIG_AUX_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q`
if test -n "$auxdir"; then
auxdir="$auxdir/"
fi

if test -f po/Makefile.in.in && test $force -eq 0; then
$echo "\
po/Makefile.in.in exists: use option -f if you really want to delete it."
Expand All @@ -123,6 +137,11 @@ for file in *; do
case $file in
intl | po)
;;
mkinstalldirs)
rm -f "$srcdir/$auxdir$file"
($try_ln_s && ln -s $gettext_dir/$file "$srcdir/$auxdir$file" && $echo "Symlinking file $file") 2>/dev/null ||
{ $echo "Copying file $file"; cp $file "$srcdir/$auxdir$file"; }
;;
*)
rm -f "$srcdir/$file"
($try_ln_s && ln -s $gettext_dir/$file "$srcdir/$file" && $echo "Symlinking file $file") 2>/dev/null ||
Expand Down

0 comments on commit 723bc46

Please sign in to comment.