diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-01-15 15:33:21 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-01-19 16:35:37 +0000 |
commit | 8e6d48d5ee351594fc92f1e680ba4a2219ed57ca (patch) | |
tree | a32bdde6047f357663883a995393a945e1dadff2 /bin/make_css_watch | |
parent | 96dd07e7c1dab2c8f9250af435caad2c2818b5a2 (diff) |
Remove need for cron-wrapper with existing scripts
Call the necessary boilerplate in each script so you can call them
directly. Remove boilerplate from files that don't need it.
Diffstat (limited to 'bin/make_css_watch')
-rwxr-xr-x | bin/make_css_watch | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/make_css_watch b/bin/make_css_watch index 63a27a35e..2ae287429 100755 --- a/bin/make_css_watch +++ b/bin/make_css_watch @@ -1,7 +1,16 @@ #!/usr/bin/env perl + use strict; use warnings; use feature 'say'; + +BEGIN { + use File::Basename qw(dirname); + use File::Spec; + my $d = dirname(File::Spec->rel2abs($0)); + require "$d/../setenv.pl"; +} + use Cwd qw(abs_path); use File::ChangeNotify; use File::Find::Rule; |