apply-patches.sh: detect missing patches
authorRalph Siemsen <ralphs@netwinder.org>
Sun, 15 Sep 2013 14:13:14 +0000 (10:13 -0400)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 15 Sep 2013 20:08:46 +0000 (22:08 +0200)
commitd245fbb41dc148a956df59658cc0dc1262612e09
tree348d762493e14d3b83d4a684e4f60d3cada7d889
parent6f1882deb4ace9c06cd7cc769eee85db12f1ab26
apply-patches.sh: detect missing patches

The "patch" command returns an error code only if patches fail
to apply. Therefore the pipleline "cat <patchfile> | patch ..."
does not fail, even if <patchfile> is missing. Fix this by
adding an explicit check for patch file existence.

Based on feedback from buildroot mailing list, also change the
existing check for unsupported patch format into a fatal error.

Signed-off-by: Ralph Siemsen <ralphs@netwinder.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
support/scripts/apply-patches.sh