From: Bruno Haible Date: Mon, 10 Dec 2001 12:50:07 +0000 (+0000) Subject: Install config.rpath in the right directory. X-Git-Tag: v0.11~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ebe70bb0b203a215edcfa853a47bf5ffee5ac0e;p=thirdparty%2Fgettext.git Install config.rpath in the right directory. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index 550b2c732..f480ff5ae 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-06 Bruno Haible + + * gettextize.in: Install config.rpath in the directory specified + through AC_CONFIG_AUX_DIR, not necessarily in the toplevel dir. + 2001-12-02 Bruno Haible * gettextize.in: Also copy config.rpath, and recommend to copy diff --git a/misc/gettextize.in b/misc/gettextize.in index 071922b54..5b02eec25 100644 --- a/misc/gettextize.in +++ b/misc/gettextize.in @@ -153,11 +153,23 @@ cd $gettext_dir || { # Now copy all files. Take care for the destination directories. for file in *; do case $file in - ABOUT-NLS | config.rpath) + ABOUT-NLS) rm -f $srcdir/$file ($try_ln_s && ln -s $gettext_dir/$file $srcdir/$file && $echo "Symlinking file $file") 2>/dev/null || { $echo "Copying file $file"; cp $file $srcdir/$file; } ;; + config.rpath) + auxdir= + if test -f $srcdir/configure.in || test -f $srcdir/configure.ac; then + auxdir=`(cat $srcdir/configure.in 2>/dev/null; cat $srcdir/configure.ac 2>/dev/null) | grep '^AC_CONFIG_AUX_DIR' | sed -n -e 's/AC_CONFIG_AUX_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | head -1` + fi + if test -n "$auxdir"; then + auxdir="$auxdir/" + fi + rm -f $srcdir/$auxdir$file + ($try_ln_s && ln -s $gettext_dir/$file $srcdir/$auxdir$file && $echo "Symlinking file $auxdir$file") 2>/dev/null || + { $echo "Copying file $auxdir$file"; cp $file $srcdir/$auxdir$file; } + ;; esac done