From fa4fd368d2aa9df0157238d45144d25d648f25df Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 3 Aug 2021 21:00:04 -0700 Subject: [PATCH] .gitignore: ignore any __BASEDIR__ symlinks Later perls do not contain the current directory (".") by default in their include path. In order to successfully run `perl -c` on the various perl scripts, they must be able to find their include files. Prior to install they contain a `use lib "__BASEDIR__"` line that gets modified at install time to reflect the actual location of the include base directory. In order to use `perl -c` on the uninstalled versions, an explicit `-I.` argument must be provided. This can get especially tedious after a while. An alternative is to create a symlink from __BASEDIR__ in the current directory to `.` (or whereever the root of the include tree is actually located). While quite convenient, it's something to be added by individual developers according to their preference rather than just blindly adding such a symlink to the repository thereby affecting everyone. However, to facilitate such use, it doesn't hurt to add an ignore pattern for `__BASEDIR__` to the top-level .gitignore to help prevent any possible accidents where such a link might get added and committed unintentionally. Signed-off-by: Kyle J. McKay --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 98053a3..b715686 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +__BASEDIR__ /apache.conf /lighttpd.conf -- 2.11.4.GIT