Browse Source

Add error checks to dist cp commands

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
a71659e06f
  1. 22
      util/make_dist.sh

22
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 \

Loading…
Cancel
Save