From a00cdb315e4f27fb5074fda82fd0d270a2fc77c0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 16 Jan 2012 17:30:56 +0100 Subject: [PATCH] Doc-Build-Script fixen --- scripts/build_doc.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/build_doc.sh b/scripts/build_doc.sh index 0f3a7af3c..be8e9252e 100755 --- a/scripts/build_doc.sh +++ b/scripts/build_doc.sh @@ -11,6 +11,8 @@ if [[ ! -d doc ]]; then exit 1 fi +doc=${PWD}/doc + html=1 pdf=1 @@ -52,18 +54,18 @@ custom=${base}/custom-cfg rm -rf ${input} ${custom} mkdir ${input} ${input}/copy_to_output ${custom} -cp ../../dokumentation.xml ${input}/ -cp -R ../../images ${input}/copy_to_output/ -cp -R ../custom-cfg/* ${custom}/ +cp ${doc}/dokumentation.xml ${input}/ +test -d ${doc}images && cp -R ${doc}/images ${input}/copy_to_output/ +cp -R ${doc}/build/custom-cfg/* ${custom}/ if [[ $pdf = 1 ]] ; then ./generator.sh dokumentation pdf - cp ${output}/pdf/dokumentation.pdf ../../Lx-Office-Dokumentation.pdf + cp ${output}/pdf/dokumentation.pdf ${doc}/Lx-Office-Dokumentation.pdf fi if [[ $html = 1 ]]; then ./generator.sh dokumentation html - rm -rf ../../html - mkdir ../../html - cp -R ${output}/html ../../ + rm -rf ${doc}/html + mkdir ${doc}/html + cp -R ${output}/html ${doc}/ fi -- 2.20.1