head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2001.07.30.18.44.24;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Moved stuff from 1.1.0 migration directory to 1.2.0 directory to reflect actual future versioning.
@
text
@#!/bin/sh
# Converts templates from a single path template engine to a multi-path
# template engine.  Should be run against Velocity templates.

if [ "${1}" ]; then
    dir_to_convert="${1}"
else
    dir_to_convert='.'
fi

for f in `find ${dir_to_convert} -name '*.vm'`; do
    perl -pi -e 's/(\#(parse|include)\( \")\$\{?BRAND_TEMPLATE_ROOT\}?\//$1/g' ${f}
      
    perl -pi -e 's/(\#(parse|include)\( \")\$\{?SERVLET_TEMPLATE_ROOT\}?\//$1/g' ${f}
    perl -pi -e 's/(\#(parse|include)\( \")\$\{?SANDBOX\}?\/helm\/templates\//$1/g' ${f}
done
unset f
@
