Commit ae9b5260 authored by Niels Möller's avatar Niels Möller
Browse files

* src/cvs_headers, src/used_headers: Fixes for compatibility with

non-GNU sed.

Rev: src/cvs_headers:1.2
Rev: src/used_headers:1.4
parent c6505b8e
......@@ -3,13 +3,9 @@
# Extract the names of all header files in this directory (or the
# directory given on the command line) which are known to CVS.
if [ x$1 != x -a -d ''$1 ]; then
if [ x$1 != x -a -d "$1" ]; then
cd $1
fi
if [ -d CVS ]; then
sed -f - CVS/Entries <<'EOF' | sort
s%^/\([^/]\+\.h\)/.*$%\1%
t
d
EOF
sed -e 's%^/\([^/]*\.h\)/.*$%\1%' -e t -e d CVS/Entries | sort
fi
......@@ -17,8 +17,8 @@ shift
cat $d/.deps/*.P
fi
done) | tr ' ' '\n' \
| grep `echo "$extension"'$' |sed 's/\./\\\\./'` \
| sed 's%^.*/\([^/]\+\)$%\1%' \
| grep `echo "$extension"'$' |sed 's/\./\\./'` \
| sed 's%^.*/\([^/]*\)$%\1%' \
| sort | uniq
# To ignore absolute paths, use the command grep '^[^/].*\.h$' above.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment