Difference between revisions of "FreeBSD specific Release Engineering"
m |
m |
||
Line 1: | Line 1: | ||
− | |||
== install.sh using sh instead of bash == | == install.sh using sh instead of bash == | ||
(Andres K. Foerster) | (Andres K. Foerster) | ||
Line 21: | Line 20: | ||
That's all as far as I can see. | That's all as far as I can see. | ||
Then you can use "#!/bin/sh". | Then you can use "#!/bin/sh". | ||
+ | |||
+ | (Marco van de Voort:) | ||
+ | Also test using BSD sed and tar from time to time. (some sed constructs are already replaced by awk) |
Revision as of 20:52, 18 April 2005
install.sh using sh instead of bash
(Andres K. Foerster)
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".
(Marco van de Voort:) Also test using BSD sed and tar from time to time. (some sed constructs are already replaced by awk)