#!/bin/sh set -e for locale in en fr; do (cd $locale/; make clean; make all) done workdir=$(mktemp -d) cp -r assets $workdir for locale in en fr; do mkdir $workdir/$locale cp -r $locale/*.html $workdir/$locale cp -r assets $workdir/$locale done cp en/index.html $workdir