summaryrefslogtreecommitdiff
path: root/scripts/crosstool.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-03-07 19:00:10 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-03-07 19:00:10 (GMT)
commitdcdd2844e45319158c2a4972ec329976609fe523 (patch)
treefa770341dcab0857c56ca161c7991c0585dd093c /scripts/crosstool.sh
parent1772045f66221f1dcc0cc5dba5adc862a280141a (diff)
Add an option to remove the generated documentation.
(After an idea from Enrico Weigelt <weigelt@metux.de>).
Diffstat (limited to 'scripts/crosstool.sh')
-rwxr-xr-xscripts/crosstool.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index 48ddca2..3ea66d2 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -258,6 +258,11 @@ if [ -n "${CT_TARGET_ALIAS}" ]; then
CT_Popd
fi
+if [ "${CT_REMOVE_DOCS}" = "y" ]; then
+ CT_DoLog INFO "Removing installed documentation"
+ rm -rf "${CT_PREFIX_DIR}/"{man,info}
+fi
+
CT_STOP_DATE=`CT_DoDate +%s%N`
CT_STOP_DATE_HUMAN=`CT_DoDate +%Y%m%d.%H%M%S`
CT_DoLog INFO "Build completed at ${CT_STOP_DATE_HUMAN}"