Bläddra i källkod

install_headers: do not exit if unifdef "fails", it's ok

Denis Vlasenko 17 år sedan
förälder
incheckning
86d7cc836d
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      extra/scripts/install_headers.sh

+ 4 - 1
extra/scripts/install_headers.sh

@@ -42,7 +42,10 @@ while read -r filename; do
 	if test -d "$1/$filename"; then
 	if test -d "$1/$filename"; then
 		mkdir -p "$2/$filename" 2>/dev/null
 		mkdir -p "$2/$filename" 2>/dev/null
 	else
 	else
-		"$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" >"$2/$filename" || exit
+		# 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"
 	fi
 	fi
 done
 done
 )
 )