[fpc-devel] bugreport: FPC 1.9.8 installer, i386-FreeBSD
Michael Van Canneyt
michael at freepascal.org
Mon Apr 18 20:50:56 CEST 2005
On Mon, 18 Apr 2005, Andres K. Foerster wrote:
> Am Montag, dem 18. Apr 2005 schrieb Marco van de Voort:
>
> > > > > Or better rewrite it to be usable with a standard-shell.
> > > >
> > > > I prefer not, it is not worth the effort.
> > >
> > > I'm going have a look at it this week.
> > > Shall I send it to the list, or to whom?
> >
> > Look first what needs to be done. The result must be maintainable. (keep in
> > mind that most other devels must be able to maintain and test it)
>
> Oh, I'm surprised myself. There are just few things to fix:
>
> The script sometimes uses one "=" and sometimes two "==" for comparisions.
> The /bin/sh of FreeBSD accepts just one "=" in comparisions.
> See test(1).
>
> "echo -n" is supported in the shell of FreeBSD, but it's not standard.
> You could use "printf" instead of "echo -n". That seems more
> standardized.
>
> Also the tar parameter "--directory" is a extension of GNU-tar.
> You could use "-C" instead of "--directory", but be careful with that.
> It seems "-C" is implemented differently.
> (My FreeBSD still comes with GNU tar, but I've heard that they switch
> to their own version of tar... I'll have a look at it.)
>
> That's all as far as I can see.
> Then you can use "#!/bin/sh".
Changed
#!/bin/sh
to
#!/usr/bin/env sh
And applied all suggested changes.
Michael.
More information about the fpc-devel
mailing list