BSD sed fails to allow USER-OMP to build (patch)

Hey,

Since the 11Feb13 version of lammps, USER-OMP does not build properly on OSX (and probably any other BSD system). This is because sed on BDS systems acts slightly differently than GNU sed on linux. Here is a patch that should work with both BSD and linux. I tried with both standard OSX sed and gsed. It seems the logical-or | does not work on BSD.

https://gist.github.com/scicalculator/4759616

RAW: https://gist.github.com/scicalculator/4759616/raw/3b9b1ad9b38f0f20a52e63e8c7add9780056b2ca/user-omp_bsd.patch

Best Regards,
Derek Thomas

Hey,

Since the 11Feb13 version of lammps, USER-OMP does not build properly on OSX
(and probably any other BSD system). This is because sed on BDS systems acts
slightly differently than GNU sed on linux. Here is a patch that should work
with both BSD and linux. I tried with both standard OSX sed and gsed. It
seems the logical-or | does not work on BSD.

thanks for pointing out the problem. however, the patch is no good
because its replacement rule is not specific enough. while it doesn't
match any current files in the wrong place, it could too easily do so
in the future. i'll do it differently and send it to steve.

ciao,
    axel.