[fpc-pascal] Unknown usage of function FixPath

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Tue Aug 14 10:44:23 CEST 2007


>> 1) why is the colon converted to a slash which yields invalid paths (at
>> least
>> on windows)
>> 2) although fpmake initially was developed to be a make tool for FPC, it
>> can
>> (and will be) used for other projects. Therefore I would propose not to
>> initialize FBaseInstallDir with the FPC directory. But rather raise an
>> exception if the basedir is not set in fpmake.pp (when issued an install
>> command only ofcourse). This will make setting this variable mandatory.
>
> I suggest that we introduce a boolean property in TInstaller:
>   FPCProject
> by default set to True.

Why would you like to initialize BaseInstallDir? It will just increases
the chance of installing the files in the wrong place. Consider a tool in
a project/FPC (which is placed somewhere higher up the tree). If you don't
set the BaseInstall dir it gets placed in c:\program files\whatever, but
the base directory should be c:\program files\projectname\whatever (or
c:\fpc\whatever resp c:\fpc\utils\whatever). The basedir should probably
be set as an env string in any case (whith more complex projects involved)
or just hardcoded (for simple ones). Anyway something up to the developer
to decide and not to fix in fpmkunit.

Just my 2c

Darius




More information about the fpc-pascal mailing list