I've found 2 problems with BuildContrib on BSD.
In
prot()
function,
$perms
needs to be an octal number or a string, otherwise
chmod
complains. To fix this we could just add the line:
$perms = sprintf '0%o', $perms;
Also, there is no
md5sum
command, it's just called
md5
on BSD.
--
VernonLyon - 14 Sep 2006
perldoc -f chmod says:
chmod LIST
Changes the permissions of a list of files. The first element of the list must be the numerical mode, which should probably be an octal number, and which definitely should not be a string of octal digits: 0644 is okay, '0644' is not.
So
chmod 511
should be identical to
chmod 0777
.
It seems that
md5sum
is a gnu program. If you don't have it, install it; I don't think md5 does the same thing.
Discarded.
CC