summaryrefslogtreecommitdiffstats
path: root/extra/scripts/install_headers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/scripts/install_headers.sh')
-rwxr-xr-xextra/scripts/install_headers.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/scripts/install_headers.sh b/extra/scripts/install_headers.sh
index 6d73ad2c6..d38d85327 100755
--- a/extra/scripts/install_headers.sh
+++ b/extra/scripts/install_headers.sh
@@ -33,12 +33,12 @@ fi
(
# We must cd, or else we'll prepend "$1" to filenames!
cd "$1" || exit 1
-find ! -name '.' -a ! -path '*/.*'
+find ! -name '.' -a ! -path '*/.*' | sed -e 's/^\.\///' -e '/^config\//d' \
+ -e '/^config$/d'
) | \
(
IFS=''
while read -r filename; do
- filename="${filename#./}"
if test -d "$1/$filename"; then
mkdir -p "$2/$filename" 2>/dev/null
else
@@ -46,7 +46,7 @@ while read -r filename; do
# exactly the same as input. That's ok.
# Do not abort the script if unifdef "fails"!
"$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" \
- | grep -v '^libc_hidden_proto[ ]*([a-zA-Z0-9_]*)$' >"$2/$filename"
+ | sed -e '/^\(rtld\|lib\(c\|m\|resolv\|dl\|intl\|rt\|nsl\|util\|crypt\|pthread\)\)_hidden_proto[ ]*([a-zA-Z0-9_]*)$/d' >"$2/$filename"
fi
done
)