summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorHolger Wansing <hwansing@mailbox.org>2019-02-12 10:58:58 +0100
committerHolger Wansing <hwansing@mailbox.org>2019-02-12 10:58:58 +0100
commit1a605ada5a261bf1ba22899d5c29b4aa8baf7bb0 (patch)
treef677b1aecb69d3eee0a52848799b80a31238f7d0 /build
parent715e5bc3804514e909d89f856351075aaa4d5591 (diff)
downloadinstallation-guide-1a605ada5a261bf1ba22899d5c29b4aa8baf7bb0.zip
Improve build chain: remove tmpdir only if built without errors. That gives possibility to use tmpdir files for debugging build errors.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/buildone.sh3
-rwxr-xr-xbuild/buildone_ng.sh3
2 files changed, 2 insertions, 4 deletions
diff --git a/build/buildone.sh b/build/buildone.sh
index 3b8dc442c..6e68c2029 100755
--- a/build/buildone.sh
+++ b/build/buildone.sh
@@ -240,6 +240,7 @@ for format in $formats ; do
case $RET in
0)
BUILD_OK="$BUILD_OK $format"
+ rm -r $tempdir # Clean up tmp directory, if no build errors
;;
9)
BUILD_FAIL="$BUILD_FAIL $format"
@@ -255,8 +256,6 @@ for format in $formats ; do
esac
done
-# Clean up
-rm -r $tempdir
# Evaluate the overall results
[ -n "$BUILD_SKIP" ] && echo "Info: The following formats were skipped:$BUILD_SKIP"
diff --git a/build/buildone_ng.sh b/build/buildone_ng.sh
index a2fb0ffee..d0c5b6b53 100755
--- a/build/buildone_ng.sh
+++ b/build/buildone_ng.sh
@@ -260,6 +260,7 @@ for format in $formats ; do
case $RET in
0)
BUILD_OK="$BUILD_OK $format"
+ rm -r $tempdir # Clean up tmp directory, if no build errors
;;
9)
BUILD_FAIL="$BUILD_FAIL $format"
@@ -275,8 +276,6 @@ for format in $formats ; do
esac
done
-# Clean up
-rm -r $tempdir
# Delete temporary PO files and generated XML files
clear_po
clear_xml