2003-08-28 16:31:11 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
# Takes a theme file and parses out the properties
|
|
|
|
# and makes a template file from it.
|
|
|
|
# Use it like so:
|
|
|
|
# theme2template.pl < infile > outfile
|
|
|
|
# by Stephan
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
$t=localtime;
|
|
|
|
print << 'EOF';
|
2004-08-09 14:20:28 +02:00
|
|
|
# template file for making eGroupWare themes using template2theme.pl
|
2003-08-28 16:31:11 +02:00
|
|
|
|
|
|
|
EOF
|
|
|
|
while( $_ = <STDIN> ) {
|
|
|
|
chomp($_);
|
|
|
|
next unless ( $_ =~ /\$phpgw_info\[\'theme\'\]\[\'(.*)\'\].*=.*\'(.*)\'.*/ );
|
|
|
|
print '$1=$2\n';
|
|
|
|
}
|