#!/bin/bash set -e if [ "$1" == "-prepare" ] then echo "TARGET=python_p.pdf" >> debian/rules.pre cd ../build/Kurse/Python ln -sf /usr/share/mbuild/makefile . echo "SOURCES = \\" >> make.pre for file in $(ls units_p/*.tex) do echo " $file \\" >> make.pre done echo >> make.pre ln -s ../Logo/* . exit fi . debian/setenv.sh cd ../build/Kurse/Python sed -i "s/\\\_BUILD/$build/" python_p.tex make python_p.pdf cp python_p.pdf ../..