From a71659e06f5e416a4cc390557de68de91f6c79f1 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Thu, 2 Oct 2014 12:44:55 +0300 Subject: [PATCH] Add error checks to dist cp commands --- util/make_dist.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/util/make_dist.sh b/util/make_dist.sh index 1930f09d..bd399f39 100644 --- a/util/make_dist.sh +++ b/util/make_dist.sh @@ -184,7 +184,7 @@ for i in \ duk_replacements.c \ duk_replacements.h \ ; do - cp src/$i $DISTSRCSEP/ + cp src/$i $DISTSRCSEP/ || exit 1 done for i in \ @@ -194,7 +194,7 @@ for i in \ object-assign.js \ performance-now.js \ ; do - cp polyfills/$i $DIST/polyfills/ + cp polyfills/$i $DIST/polyfills/ || exit 1 done @@ -202,7 +202,7 @@ for i in \ README.rst \ duk_cmdline.c \ ; do - cp examples/cmdline/$i $DIST/examples/cmdline/ + cp examples/cmdline/$i $DIST/examples/cmdline/ || exit 1 done for i in \ @@ -220,21 +220,21 @@ for i in \ server-socket-test.js \ client-socket-test.js \ ; do - cp examples/eventloop/$i $DIST/examples/eventloop/ + cp examples/eventloop/$i $DIST/examples/eventloop/ || exit 1 done for i in \ README.rst \ hello.c \ ; do - cp examples/hello/$i $DIST/examples/hello/ + cp examples/hello/$i $DIST/examples/hello/ || exit 1 done for i in \ README.rst \ eval.c \ ; do - cp examples/eval/$i $DIST/examples/eval/ + cp examples/eval/$i $DIST/examples/eval/ || exit 1 done for i in \ @@ -246,7 +246,7 @@ for i in \ primecheck.c \ uppercase.c \ ; do - cp examples/guide/$i $DIST/examples/guide/ + cp examples/guide/$i $DIST/examples/guide/ || exit 1 done for i in \ @@ -255,21 +255,21 @@ for i in \ hello.coffee \ mandel.coffee \ ; do - cp examples/coffee/$i $DIST/examples/coffee/ + cp examples/coffee/$i $DIST/examples/coffee/ || exit 1 done for i in \ README.rst \ jxpretty.c \ ; do - cp examples/jxpretty/$i $DIST/examples/jxpretty/ + cp examples/jxpretty/$i $DIST/examples/jxpretty/ || exit 1 done for i in \ README.rst \ sandbox.c \ ; do - cp examples/sandbox/$i $DIST/examples/sandbox/ + cp examples/sandbox/$i $DIST/examples/sandbox/ || exit 1 done for i in \ @@ -281,7 +281,7 @@ for i in \ Makefile.jxpretty \ Makefile.sandbox \ ; do - cp dist-files/$i $DIST/ + cp dist-files/$i $DIST/ || exit 1 done cat dist-files/README.rst | sed \