]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update DIST_SUBDIRS, not only SUBDIRS.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Jan 2004 10:42:29 +0000 (10:42 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:42 +0000 (12:11 +0200)
gettext-tools/misc/ChangeLog
gettext-tools/misc/gettextize.in

index d036b779e5de6728136821cab160d3816f2b9f9a..7ea377a3151d11dd75f6d09dc1ac4ec391dcd49a 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-19  Bruno Haible  <bruno@clisp.org>
+
+       * gettextize.in: Modify DIST_SUBDIRS like SUBDIRS, when it was found in
+       Makefile.am.
+       Reported by Dalibor Topic <robilad@kaffe.org>.
+
 2003-12-17  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.13.1 released.
index 97ae140d8b509954699a5f57bb2e08f4471ec936..402d6c8695956c3d110a207a7334b3da899a114e 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
+# Copyright (C) 1995-1998, 2000-2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -805,6 +805,29 @@ if test -f "$srcdir/Makefile.am"; then
     }' < "$srcdir/Makefile.am" > "$srcdir/Makefile.am.tmp"
     func_modify_Makefile_am "(SUBDIRS): Remove $removed_directory."
   fi
+  if test -n "$added_directories"; then
+    if grep '^DIST_SUBDIRS[    ]*=' "$srcdir/Makefile.am" > /dev/null; then
+      sed -e "s%^\(DIST_SUBDIRS[       ]*=\)%\\1$added_directories %" < "$srcdir/Makefile.am" > "$srcdir/Makefile.am.tmp"
+      func_modify_Makefile_am "(DIST_SUBDIRS): Add "`echo $added_directories | sed -e 's/ /, /g'`'.'
+    fi
+  fi
+  if test -n "$removed_directory"; then
+    sed -e '/^DIST_SUBDIRS[    ]*=/ {
+        :a
+        s%\([  ]\)'"$removed_directory"'[      ]%\1%
+        s%[    ]'"$removed_directory"'$%%
+        tb
+        :b
+        s%\\$%\\%
+        tc
+        bd
+        :c
+        n
+        ba
+      :d
+    }' < "$srcdir/Makefile.am" > "$srcdir/Makefile.am.tmp"
+    func_modify_Makefile_am "(DIST_SUBDIRS): Remove $removed_directory."
+  fi
   if test -z "$m4dir_is_next"; then
     if grep '^ACLOCAL_AMFLAGS[         ]*=' "$srcdir/Makefile.am" > /dev/null; then
       sed -e "s%^\(ACLOCAL_AMFLAGS[    ]*=\)%\\1 -I $m4dir %" < "$srcdir/Makefile.am" > "$srcdir/Makefile.am.tmp"