Add explicit "./" in mkfiles.pl's require statements.

I've just tried for the first time to run mkfiles.pl on a system where
plain 'require "sbcsgen.pl"' does not search the cwd by default.
This commit is contained in:
Simon Tatham 2016-09-19 14:13:38 +01:00
Родитель bf00bcd2a4
Коммит ccf25c0849
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -47,8 +47,8 @@ open IN, "Recipe" or do {
# HACK: One of the source files in `charset' is auto-generated by
# sbcsgen.pl, and licence.h is likewise generated by licence.pl. We
# need to generate those _now_, before attempting dependency analysis.
eval 'chdir "charset"; require "sbcsgen.pl"; chdir ".."; select STDOUT;';
eval 'require "licence.pl"; select STDOUT;';
eval 'chdir "charset"; require "./sbcsgen.pl"; chdir ".."; select STDOUT;';
eval 'require "./licence.pl"; select STDOUT;';
@srcdirs = ("./");