add test for nonexistant polygen
parent
73e6f81ef3
commit
26c2c63c97
|
@ -27,6 +27,9 @@ sub preprocess (@) { #{{{
|
||||||
$symbol =~ s/[^A-Za-z0-9]//g if defined $symbol;
|
$symbol =~ s/[^A-Za-z0-9]//g if defined $symbol;
|
||||||
|
|
||||||
my $grmfile = '/usr/share/polygen/ita/polygen.grm';
|
my $grmfile = '/usr/share/polygen/ita/polygen.grm';
|
||||||
|
if (! -d '/usr/share/polygen') {
|
||||||
|
return "[[polygen not installed]]";
|
||||||
|
}
|
||||||
find({wanted => sub {
|
find({wanted => sub {
|
||||||
if (substr($File::Find::name, -length($grammar)) eq $grammar) {
|
if (substr($File::Find::name, -length($grammar)) eq $grammar) {
|
||||||
$grmfile = IkiWiki::possibly_foolish_untaint($File::Find::name);
|
$grmfile = IkiWiki::possibly_foolish_untaint($File::Find::name);
|
||||||
|
|
Loading…
Reference in New Issue