PDA

View Full Version : What does this Part of the Perl install scripts mean?



vitamin_c
October 28th, 2006, 06:58 AM
The following chunk of perl script is in virtually all the installation scripts (eg. /user/share/setup-tools-backends/scripts)
There are no comments for it, explaining what its purpose is.

What is the general purpose for it? It looks like it appends .in to to .pl files only under certain circumstances...why would this ever be done?


What is this code for?
Thanks

#############

$SCRIPTSDIR = "/usr/share/setup-tool-backends/scripts";
print /^@scriptsdir[@]/;
if ($SCRIPTSDIR =~ /^@scriptsdir[@]/)
{
$SCRIPTSDIR = ".";
$DOTIN = ".in";
}

require "$SCRIPTSDIR/general.pl$DOTIN";
require "$SCRIPTSDIR/file.pl$DOTIN";
require "$SCRIPTSDIR/xml.pl$DOTIN";