summaryrefslogtreecommitdiffstats
path: root/bin/release
diff options
context:
space:
mode:
authorlrknox <lrknox>2017-02-21 22:34:05 (GMT)
committerlrknox <lrknox>2017-02-21 22:34:05 (GMT)
commitbe6e9282f6ed824c367d364b4edd79d00b23f9f1 (patch)
treefd5b0492f4d7c2af09a0feb696d293135833940b /bin/release
parent6924e1f9f8c8b3bf3e44871d3319c6a3337cb093 (diff)
downloadhdf5-be6e9282f6ed824c367d364b4edd79d00b23f9f1.zip
hdf5-be6e9282f6ed824c367d364b4edd79d00b23f9f1.tar.gz
hdf5-be6e9282f6ed824c367d364b4edd79d00b23f9f1.tar.bz2
Make release script fail and return failing exit code when any of the steps for creating the docs.tar file fails.
Diffstat (limited to 'bin/release')
-rwxr-xr-xbin/release10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/release b/bin/release
index 8bfd626..352384f 100755
--- a/bin/release
+++ b/bin/release
@@ -530,12 +530,12 @@ for comp in $methods; do
# Create doxygen C++ RM
(cd c++/src && doxygen cpp_doc_config > /dev/null ) || exit 1
# Replace version of C++ RM with just-created version
- rm -rf $tmpdir/${DOCVERSION}/html/$CPPLUS_RM_NAME
- mv c++/src/$CPPLUS_RM_NAME $tmpdir/${DOCVERSION}/html/$CPPLUS_RM_NAME
+ rm -rf $tmpdir/${DOCVERSION}/html/$CPPLUS_RM_NAME || exit 1
+ mv c++/src/$CPPLUS_RM_NAME $tmpdir/${DOCVERSION}/html/$CPPLUS_RM_NAME || exit 1
# Compress the docs and move them to the release area
- mv $tmpdir/${DOCVERSION} $tmpdir/${HDF5_VERS}_docs
- (cd $tmpdir && tar cf ${HDF5_VERS}_docs.tar ${HDF5_VERS}_docs)
- mv $tmpdir/${HDF5_VERS}_docs.tar $DEST
+ mv $tmpdir/${DOCVERSION} $tmpdir/${HDF5_VERS}_docs || exit 1
+ (cd $tmpdir && tar cf ${HDF5_VERS}_docs.tar ${HDF5_VERS}_docs) || exit 1
+ mv $tmpdir/${HDF5_VERS}_docs.tar $DEST || exit 1
;;
*)
echo "***Error*** Unknown method $comp"