#!/bin/bash db=/tmp/db base=$PWD/templates files=$(find $base -type f -name '*.cs') function lrun() { bash -c "set -x;$*" echo } for f in $files; do uri=$(echo $f | sed "s:$base::g" |sed 's/\.cs$//g') if [[ "$1" == 'delete' ]]; then f="delete" fi lrun LD_LIBRARY_PATH=/home/drewry/bzr/evapporate/libevapp/ ./build/template_loader $db $uri $f done