view util/generate_messages.sh @ 558:9ab005db2592

serve: Improve reloading and shutdown of the preview server. See the huge comment block in the file for more infos.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 14 Aug 2015 21:26:51 -0700
parents f14796cbab0f
children
line wrap: on
line source

#!/bin/sh

CUR_DIR="$( cd "$( dirname "$0" )" && pwd )"
CHEF=${CUR_DIR}/../bin/chef
OUT_DIR=${CUR_DIR}/../piecrust/resources/messages
ROOT_DIR=${CUR_DIR}/messages

$CHEF --root=$ROOT_DIR bake -o $OUT_DIR
rm ${OUT_DIR}/index.html