#!/bin/bash set -e #if [ -d GF ] #then # pushd GF >/dev/null # svn up # popd >/dev/null #else # svn co https://wagnertech.de/svn/verwaltung/GF #fi if [ $1 == TOP ]; then # work on current tree ln -sf ../../Kurse/Python . ln -sf ../../Kurse/Logo . pushd .. >/dev/null rm python.tex 2>/dev/null || true ln -s src/Python/python.tex . popd >/dev/null else # check out version if [ -e Python ]; then rm -rf Phython fi svn co -r $1 https://wagnertech.de/svn/Projekte/Kurse/Python ln -sf ../../Kurse/Logo . pushd .. >/dev/null rm python.tex 2>/dev/null || true sed "s/\\\_BUILD/$1/" src/Python/python.tex >./python.tex popd >/dev/null fi pushd .. >/dev/null ln -sf src/GF/wagner_tech_briefbogen_blau_fs1.pdf . ln -sf projects/tools/tex/*.sty . ln -sf src/Python/units . ln -sf src/Python/Bilder . echo "COMPILE_TARGET = python.pdf" >make.pre echo "SOURCES = \\" >> make.pre for file in $(ls units/*.tex) do echo " $file \\" >> make.pre done echo >> make.pre popd >/dev/null