summaryrefslogtreecommitdiff
path: root/posix-modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-09-26 20:13:32 +0200
committerBruno Haible <bruno@clisp.org>2008-09-26 20:13:32 +0200
commit1d5425fbaa7c6eed8783fcf7bf4e8ca239970e4e (patch)
tree54b853d0c0ef7a710ee973b0eba8b0bcc514df6c /posix-modules
parente59f779745a9bff341dfe5fd839f4c65023c9061 (diff)
downloadgnulib-1d5425fbaa7c6eed8783fcf7bf4e8ca239970e4e.tar.gz
Make this script work again (broken since 2008-01-19).
Diffstat (limited to 'posix-modules')
-rwxr-xr-xposix-modules15
1 files changed, 6 insertions, 9 deletions
diff --git a/posix-modules b/posix-modules
index e6f0f356de..80c49fe053 100755
--- a/posix-modules
+++ b/posix-modules
@@ -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 @@ done
(
# 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