small compatibility fixes (for svn as of today)
Hi! The scripts in bin/ claim to be /bin/sh compatible, but use bashisms. In particular, run, test, and testserver use the test(1) '==' comparison operator which is only supported by bash, not even by GNU coreutils. Use '=' instead. bin/caldavd has if [ "${py_version/./}" -lt "24" ]; then return 1; fi; which gives bin/caldavd: 50: Syntax error: Bad substitution on NetBSD. I don't know what the portable version of this is, so I've just used bash for that script. bin/_build.sh uses 'type -P' which NetBSD's /bin/sh doesn't support either; and the whitespace in 'Cyrus SASL' causes whitespace quoting issues for me sometime during the build of cyrus-sasl. The diff I'm using to get to 'bin/run -n' is attached. (It's still not working, but the current problem is in twistd.) Cheers, Thomas
participants (1)
-
Thomas Klausner