summaryrefslogtreecommitdiff
path: root/glib-gettextize.in
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-07-21 18:14:54 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-21 18:14:54 +0000
commit6179b0620be7ef85ebc2bc1ec3d711c333e45344 (patch)
tree8aabf6294269fe033121e74a09e735d7565bd86b /glib-gettextize.in
parent2e41f072a5542d409e280d4310fe873c60bfc3b7 (diff)
Fix #132858, Sven Neumann, patch by James Henstridge:
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.
Diffstat (limited to 'glib-gettextize.in')
-rw-r--r--glib-gettextize.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/glib-gettextize.in b/glib-gettextize.in
index f424f8b71..01ce883f5 100644
--- a/glib-gettextize.in
+++ b/glib-gettextize.in
@@ -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."
@@ -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 ||