How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Stefano Sabatini
I'm working on a project when I have a Perl script, call it "script", which contains some installation dependant paths. Since I don't want to hardcode them, I created a "script.in" file, which contains a line with: my $system_config_file= "@SYSCONF_DIR@/script.conf"; and placed this snippet in c

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Keith MARSHALL
Stefano Sabatini wrote: > I'm working on a project when I have a Perl script, call it "script", > which contains some installation dependant paths. > > Since I don't want to hardcode them, I created a "script.in" file, which > contains a line with: > > my $system_config_file= "@SYSCONF_DIR@/script.

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Stefano Sabatini
Hi Keith, and thanks for the fast reply! On date Thursday 2007-03-01 13:25:42 +, Keith MARSHALL configured this message: > Stefano Sabatini wrote: > > I'm working on a project when I have a Perl script, call it "script", > > which contains some installation dependant paths. > > > > Since I do

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Andreas Schwab
Stefano Sabatini <[EMAIL PROTECTED]> writes: > Follow a possible implementation of this suggestion: > > to put in the input Perl script "script.in" something as: > my $prefix="@prefix@"; > ... > my $system_config_file= "@SYSCONF_DIR@/script.conf"; > > In the resulting "script" file, prefix will b