X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=scripts%2Fpl2tmpl.pl;fp=scripts%2Fpl2tmpl.pl;h=0000000000000000000000000000000000000000;hp=b83e2793825e03cf4ec235c9e3767c4a75bf037f;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/scripts/pl2tmpl.pl b/scripts/pl2tmpl.pl deleted file mode 100755 index b83e27938..000000000 --- a/scripts/pl2tmpl.pl +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/local/bin/perl -pli.orig - -# -# perlcode -> template converter -# -# there's ugly perl generated html in your xy.pl? -# no problem. copy&paste it into a separate html file, remove 'qq|' and '|;' and use this script to fix most of the rest. -# -# use: perl pl2tmpl.pl -# -# will save the original file as file.orig -# - -s/\$form->\{(?:"([^}]+)"|([^}]+))\}/[% $+ %]/g; -s/\| \s* \. \s* \$locale->text \( ' ([^']+) ' \) \s* \. \s* qq\|/$1<\/translate>/xg; -s/\| \s* \. \s* \$locale->text \( " ([^"]+) " \) \s* \. \s* qq\|/$1<\/translate>/xg;