Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (29 sloc) 0.625 kB
#!/bin/bash
cond_mkdir()
{
d="$1"
shift
if ! [ -d "$d" ] ; then
mkdir "$d"
fi
}
cond_mkdir "generated"
base="$(pwd)"
if ! [ -d templates ]; then
echo "Cannot find the 'templates' directory" 1>&2
exit -1
fi
pushd templates
"$base"/bin/render_events.pl events.haml > previous.tt
pages_list="index previous about photos"
for page in $pages_list; do
echo "Creating $page..."
tpage --define page="$page" "$page".tt > "$base"/generated/"$page".html
if [ "$?" -ne "0" ]; then
echo "Failed"
exit 1
fi
done
popd
cp -rv images/ style.css generated/
exit 0;
Jump to Line
Something went wrong with that request. Please try again.