File: include-conf-enabled.pl

package info (click to toggle)
lighttpd 1.4.13-4etch12
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,480 kB
  • ctags: 3,537
  • sloc: ansic: 37,630; sh: 8,915; perl: 2,215; yacc: 584; makefile: 374; php: 9
file content (15 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -wl

use strict;
use File::Glob ':glob';

my $confdir = "/etc/lighttpd/";
my $enabled = "conf-enabled/*.conf";

chdir($confdir);
my @files = bsd_glob($enabled);

for my $file (@files)
{
	print "include \"$file\"";
}