mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 04:14:49 +01:00
Clean tangle
This commit is contained in:
parent
68f11784ff
commit
32366c2f19
@ -23,7 +23,8 @@ function extract_doc()
|
|||||||
html=${DOCS}/html/$(basename ${org%.org}.html)
|
html=${DOCS}/html/$(basename ${org%.org}.html)
|
||||||
text=${DOCS}/text/$(basename ${org%.org}.txt)
|
text=${DOCS}/text/$(basename ${org%.org}.txt)
|
||||||
|
|
||||||
${srcdir}/tools/missing emacs --batch \
|
${srcdir}/tools/missing \
|
||||||
|
emacs --no-init-file --no-site-lisp --quick --batch \
|
||||||
--load="${HTMLIZE}" \
|
--load="${HTMLIZE}" \
|
||||||
--load="${CONFIG_DOC}" \
|
--load="${CONFIG_DOC}" \
|
||||||
${org} \
|
${org} \
|
||||||
@ -53,6 +54,7 @@ do
|
|||||||
# Fail if tangling failed
|
# Fail if tangling failed
|
||||||
if [ $rc -ne 0 ] ; then
|
if [ $rc -ne 0 ] ; then
|
||||||
cat $exported
|
cat $exported
|
||||||
|
rm $exported
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -30,7 +30,7 @@ function tangle()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
${srcdir}/tools/missing \
|
${srcdir}/tools/missing \
|
||||||
emacs --batch ${org_file} \
|
emacs --no-init-file --no-site-lisp --quick --batch ${org_file} \
|
||||||
--load=${srcdir}/tools/config_tangle.el \
|
--load=${srcdir}/tools/config_tangle.el \
|
||||||
-f org-babel-tangle
|
-f org-babel-tangle
|
||||||
}
|
}
|
||||||
@ -47,6 +47,7 @@ do
|
|||||||
# Fail if tangling failed
|
# Fail if tangling failed
|
||||||
if [[ $rc -ne 0 ]] ; then
|
if [[ $rc -ne 0 ]] ; then
|
||||||
cat $tangled
|
cat $tangled
|
||||||
|
rm $tangled
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user