aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-06-08 16:21:23 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-06-08 16:21:23 +0100
commit1704f119834ae6ad64cf277de0bf8b311335677b (patch)
tree57fa3f0c3aa88c02000cbc8a7a7e0262231d2bcb /bin
parent54fd5e9e83439b07bf456a997e6e2aa139456efe (diff)
Follow symlinks in make_css.
This is in case the cobrand directory is actually a symlink to elsewhere, as it is with some deployments.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_css2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/make_css b/bin/make_css
index 5844579a7..d663597cd 100755
--- a/bin/make_css
+++ b/bin/make_css
@@ -65,7 +65,7 @@ my @dirs = map { m{/} ? $_ : "web/cobrands/$_" } @ARGV;
# Initial compilation, to also discover all the included files.
my %includes;
my %include_to_main;
-foreach my $file (File::Find::Rule->file->name(qr/^[^_].*\.scss$/)->in(@dirs)) {
+foreach my $file (File::Find::Rule->file->extras({ follow => 1 })->name(qr/^[^_].*\.scss$/)->in(@dirs)) {
my @includes = compile($file, $verbose);
$includes{$file} = \@includes;
map { push @{$include_to_main{$_}}, $file } @includes ? @includes : $file;