#!/bin/bash set -e #TODO: sollte von mconfigure unterstützt werden. export doc_class="NewElements.EinstiegFurAnwender" if [ -z "$doc_class" ] then echo "doc_class must be defined!" exit 1 fi cd Kurse/Linux mdoc-extract Linux.xml $doc_class mdoc-extract units/internet.xml Linux mdoc-extract units/syslog.xml $doc_class sed -i "s/\\\_BUILD/$build/" Linux.tex make Linux.pdf