Sign in Join
Wiki copytemporary

FreeBSD specific Release Engineering

scripts using sh instead of bash

(originally by Andres K. Foerster)

Current scripts: samplecfg/install.sh/cross* known scripts not affected: makepack (no chance of running on a TARGET computer)

The script sometimes uses one "=" and sometimes two "==" for comparisions. The /bin/sh of FreeBSD accepts just one "=" in comparisions. See test(1). or sometimes the "x" trick works: if [ "x$something" = "xsomething" ] ...

"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".

(Marco van de Voort:)

install.sh

The documentation currently generates the PDF docs with a directory in the .tar.gz, which doesn't play nice with FreeBSD hierarchy. Moreover, to workaround this on Linux, they use gnu tar specific options (--directory).

So every release the following changes are made: - the docs are repacked without the directory - the --directory option is removed from the doc tar x line in the install.sh script

notes from recent packaging

See also


From the Free Pascal wiki, page "FreeBSD specific Release Engineering", as it stood on 2020-08-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 5 people, 2005–2020

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
Marcov
Marcov (minor)
Marcov (minor)
Marcov (minor)
Marcov
Marcov (minor)
FPK
FPKGTK problem with newer ports
MarcovGTK problem with newer ports (minor)
Marcovscripts using sh instead of bash (minor)
MarcovGTK problem with newer ports
MarcovGTK topic killed, install.sh topic now
Marcovsome notes from 2.6.2rc1 preparations
BigChimpDenglish to English ;)
BigChimpsee also, category
Chronos
BigChimp (minor)
Marcov
TrevAdded FreeBSD category (minor)
TrevAdd category (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.