#!/usr/bin/perl -w

use esmith::Build::CreateLinks  qw(:all);

# Templates to expand
templates2events("/etc/dl.php", qw(bootstrap-console-save webapps-update));
templates2events("/etc/e-smith/sql/init/dl", qw(bootstrap-console-save webapps-update));

# PHP header and footer
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/dl.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/dl.php/template-end");