#!/usr/bin/env bash

set -eux

for f in hsfiles/*.hsfiles
do
    cat $f | \
        # This next one is a hack...
        sed s@PROJECTNAME_LOWER@{{name}}@g | \
        sed s@PROJECTNAME@{{name}}@g > \
        ../stack-templates/$(basename $f)
done

#!/usr/bin/env bash

set -eux

for f in hsfiles/*.hsfiles
do
    BASE=`basename $f`

    cat $f | \
        # This next one is a hack...
        sed s@PROJECTNAME_LOWER@{{name}}@g | \
        sed s@PROJECTNAME@{{name}}@g > \
        ../stack-templates/$BASE

    cp ../stack-templates/$BASE ../yesod-stack-templates/${BASE#yesod-}
done

Support the new yesodweb/stack-templates repo too
Support the new yesodweb/stack-templates repo too
