From ccf25c084924b1714e109ed910d92aac40c0cd40 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 19 Sep 2016 14:13:38 +0100 Subject: [PATCH] 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. --- mkfiles.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkfiles.pl b/mkfiles.pl index 166ee132..55ab7b30 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -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 = ("./");