summaryrefslogtreecommitdiff
path: root/extra/scripts
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2008-06-08 20:38:53 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2008-06-08 20:38:53 +0000
commitf4c81223c2228bbc34ba7bb63cfb079f9c0bd1e2 (patch)
treed8f1632304f6c187b0e5398faffb167687f7bc61 /extra/scripts
parent7e50fe1a55b8b799faf7730327ab628a65cf7f27 (diff)
In string.h, move libc_hidden_proto next to the corresponding declaration.
Filter them out when installing headers. Tested by building up bfin-*linux toolchains and building our copy of uClinux-dist.
Diffstat (limited to 'extra/scripts')
-rwxr-xr-xextra/scripts/install_headers.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/scripts/install_headers.sh b/extra/scripts/install_headers.sh
index 0d58b200a..6d73ad2c6 100755
--- a/extra/scripts/install_headers.sh
+++ b/extra/scripts/install_headers.sh
@@ -45,7 +45,8 @@ while read -r filename; do
# NB: unifdef exits with 1 if output is not
# 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" >"$2/$filename"
+ "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" \
+ | grep -v '^libc_hidden_proto[ ]*([a-zA-Z0-9_]*)$' >"$2/$filename"
fi
done
)