changeset 30185:0b34cc3587f2

Make this script work again (broken since 2008-01-19).
author Bruno Haible <bruno@clisp.org>
date Fri, 26 Sep 2008 20:13:32 +0200
parents e20e06507489
children c77350457755
files ChangeLog posix-modules
diffstat 2 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Sep 26 20:09:32 2008 +0200
+++ b/ChangeLog	Fri Sep 26 20:13:32 2008 +0200
@@ -1,3 +1,9 @@
+2008-09-26  Bruno Haible  <bruno@clisp.org>
+
+	* posix-modules: Update to directory names changed on 2008-01-19.
+	Remove commas in output before splitting into words. No more need to
+	avoid 'ftruncate' since 2007-02-19.
+
 2008-09-26  Bruno Haible  <bruno@clisp.org>
 
 	* doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
--- a/posix-modules	Fri Sep 26 20:09:32 2008 +0200
+++ b/posix-modules	Fri Sep 26 20:13:32 2008 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2008 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
@@ -138,17 +138,14 @@
 
 (
   # Get the header modules.
-  LC_ALL=C grep -h '^Gnulib module: ' "$gnulib_dir"/doc/headers/* 2>/dev/null \
+  LC_ALL=C grep -h '^Gnulib module: ' "$gnulib_dir"/doc/posix-headers/* 2>/dev/null \
     | sed -e 's,^Gnulib module: ,,'
   # Get the function modules.
-  LC_ALL=C grep -h '^Gnulib module: ' "$gnulib_dir"/doc/functions/* 2>/dev/null \
+  LC_ALL=C grep -h '^Gnulib module: ' "$gnulib_dir"/doc/posix-functions/* 2>/dev/null \
     | sed -e 's,^Gnulib module: ,,'
-  # Then filter out the words "---", "and", "or" and remove *-gnu modules.
-) | LC_ALL=C sort | LC_ALL=C uniq \
+  # Then filter out the words "---", ",", "and", "or" and remove *-gnu modules.
+) | sed -e 's/,/ /g' | LC_ALL=C sort | LC_ALL=C uniq \
   | { # Then filter out the words "---", "and", "or" and remove *-gnu modules.
       tr ' ' '\012' | sed -e '/^---$/d' -e '/^and$/d' -e '/^or$/d' -e '/-gnu$/d'
     } \
-  | LC_ALL=C sort | LC_ALL=C uniq \
-  | { # Except ftruncate, which aborts the configuration on mingw. FiXME
-      sed -e '/^ftruncate$/d'
-    }
+  | LC_ALL=C sort | LC_ALL=C uniq