RFC: first stab at getting rid of libc_hidden_proto() forest
Khem Raj
raj.khem at gmail.com
Thu May 1 10:22:51 UTC 2008
Hi Denys
In the new script to install headers. We assume that unifdef fails if
the return is not 0. However as per the manpages of unifdef I see this
The unifdef utility exits 0 if the output is an exact copy of the input,
1 if not, and 2 if in trouble.
I have fixed the script so that it only exits when the return code from
unifdef command is 2.
OK?
Thanks
-Khem
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Index: extra/scripts/install_headers.sh
===================================================================
--- extra/scripts/install_headers.sh (revision 21903)
+++ extra/scripts/install_headers.sh (working copy)
@@ -42,7 +42,10 @@
if test -d "$1/$filename"; then
mkdir -p "$2/$filename" 2>/dev/null
else
- "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" >"$2/$filename" || exit
+ "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" >"$2/$filename"
+ if [ "$?" -eq "2" ]; then
+ exit
+ fi
fi
done
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20080501/90c549c5/attachment-0002.pgp
More information about the uClibc
mailing list