#!/bin/bash # # $Id: runall,v 1.14 2007/05/28 13:57:15 frank Exp $ # # need to make proper test if i want to run single chapters echo "=========removing problems files ==========" PREFIX=$1 echo "=========using prefix: $PREFIX ==========" doit () { files=`ls ${PREFIX}*.$1 2>/dev/null` if test -n "$files" ; then for i in $files do ./$2 $i test $? -ne 0 && exit 1 done else echo "No files with extension $1 around" fi } doit ltx runltx exit doit ltxb runltxb % beamer doit ltx runltx doit pltx runpltx doit ptx runptx doit pic runpic doit ly runly doit abc runabc doit abcplus runabcpl doit mp runmp doit m4 runm4 doit pmx runpmx doit mtx runmtx