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 <[EMAIL PROTECTED]>


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
 )

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to