]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Install config.rpath in the right directory.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Dec 2001 12:50:07 +0000 (12:50 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 21:35:57 +0000 (23:35 +0200)
misc/ChangeLog
misc/gettextize.in

index 550b2c7322792f5208035f012976a26344d6d55e..f480ff5ae4ef5a341d462cc88725948a3888c3b5 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-06  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
        * gettextize.in: Also copy config.rpath, and recommend to copy
index 071922b549623dd19e2ed7ca633ebab4839605e1..5b02eec255f41ef118d40209528c039c89db454f 100644 (file)
@@ -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