Anonymous avatar Anonymous committed e5ac497

Fix the last commit.

Comments (0)

Files changed (2)

 T2_CSS_TARGETS = $(patsubst %,$(T2_DEST)/%,$(GEN_STYLE_CSS_FILES))
 VIPE_CSS_TARGETS = $(patsubst %,$(VIPE_DEST)/%,$(GEN_STYLE_CSS_FILES))
 
+CSS_GEN_SCRIPT = bin/gen-css.pl
+
+CSS_TARGETS_COMMON_DEPS = $(TTMLS_COMMON_DEPS) $(CSS_GEN_SCRIPT)
+
 css_targets: $(T2_CSS_TARGETS) $(VIPE_CSS_TARGETS)
 
-$(T2_CSS_TARGETS) : $(T2_DEST)/% : lib/%.ttml $(TTMLS_COMMON_DEPS)
-	perl bin/gen-css.pl -o $@ $(T2_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
+$(T2_CSS_TARGETS) : $(T2_DEST)/% : lib/%.ttml $(CSS_TARGETS_COMMON_DEPS)
+	perl $(CSS_GEN_SCRIPT) -o $@ $(T2_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
 
-$(VIPE_CSS_TARGETS) : $(VIPE_DEST)/% : lib/%.ttml $(TTMLS_COMMON_DEPS)
-	perl bin/gen-css.pl -o $@ $(VIPE_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(VIPE_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
+$(VIPE_CSS_TARGETS) : $(VIPE_DEST)/% : lib/%.ttml $(CSS_TARGETS_COMMON_DEPS)
+	perl $(CSS_GEN_SCRIPT) -o $@ $(VIPE_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(VIPE_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
 
 use warnings;
 use strict;
 
-use base 'Template::Preprocessor::TTML::Base';
+use base 'Class::Accessor';
 
 use Template;
 use Template::Preprocessor::TTML::CmdLineProc;
 
 =head1 FUNCTIONS
 
-=head2 initialize()
-
-Internal function for initializing the object.
-
 =cut
 
-sub initialize
-{
-    my $self = shift;
-    my %args = (@_);
-    $self->argv([@{$args{'argv'}}]);
-
-    return 0;
-}
-
 =head2 run
 
 Performs the processing.
 
 package main;
 
-Template::Preprocessor::TTML->new('argv' => [@ARGV])->run();
+Template::Preprocessor::TTML->new({'argv' => [@ARGV]})->run();
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.