2000-12-18 21:09:56 +01: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;
|
2001-05-08 10:48:12 +02:00
|
|
|
print << 'EOF';
|
2000-12-18 21:09:56 +01:00
|
|
|
# template file for making phpGroupWare themes using template2theme.pl
|
|
|
|
|
|
|
|
EOF
|
|
|
|
while( $_ = <STDIN> ) {
|
|
|
|
chomp($_);
|
2001-05-08 10:48:12 +02:00
|
|
|
next unless ( $_ =~ /\$phpgw_info\[\'theme\'\]\[\'(.*)\'\].*=.*\'(.*)\'.*/ );
|
|
|
|
print '$1=$2\n';
|
2000-12-18 21:09:56 +01:00
|
|
|
}
|