Skip to content

Commit

Permalink
- added simple worklog
Browse files Browse the repository at this point in the history
  • Loading branch information
canonic-epicure committed Nov 24, 2009
1 parent add626f commit a4ab9b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/shotenjin_embed.pl
Expand Up @@ -9,11 +9,11 @@
my @files;

if (-d $ARGV[0]) {
@files = File::Find::Rule->file->name('*.js')->in($ARGV[0]);
@files = File::Find::Rule->file->name('*.js')->in($ARGV[0]);
} elsif (-e $ARGV[0]) {
@files = ( $ARGV[0] )
} else {
die "Can't find input files to process, specify it as 1st argument\n(either single file or directory to scan for *.tj.js)\n"
die "Can't find input files to process, specify it as 1st argument\n(either single file or directory to scan for *.js)\n"
}


Expand Down Expand Up @@ -59,6 +59,8 @@ sub process_file {
my $fh = file($file)->openw();
print $fh $content_copy;
$fh->close();

print "UPDATED: $file\n";
}
}

Expand Down

0 comments on commit a4ab9b2

Please sign in to comment.