summaryrefslogtreecommitdiffstats
path: root/extra/scripts/install_headers.sh
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-17 15:10:13 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-17 15:10:13 +0000
commit02169fea4dd790c46c100e210fe21faf112e27d7 (patch)
tree7f6a257548c81cead6f61b56eba74b18a1dcaf18 /extra/scripts/install_headers.sh
parent9584b4e582b293ead79d8bb0ff85c1ef12a888d9 (diff)
downloaduClibc-alpine-02169fea4dd790c46c100e210fe21faf112e27d7.tar.bz2
uClibc-alpine-02169fea4dd790c46c100e210fe21faf112e27d7.tar.xz
Synch with trunk @ 24071.
Step 2 locale stuff - configuration and top Makefiles
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
)