Skip to content

Commit

Permalink
sed and mac problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Jun 21, 2023
1 parent 29089c7 commit 05a6feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mklib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ cp "${file}" "${tmpfile}"

if grep -q '^#include "\(bias\|colvar\|function\|sasa\|vatom\)\/ActionRegister.h"' "${tmpfile}"; then
>&2 echo 'WARNING: using a legacy ActionRegister.h include path, please use <<#include "core/ActionRegister.h">>'
sed 's%^#include ".*/ActionRegister.h"%#include "core/ActionRegister.h"%g' -i.bak "${tmpfile}"
sed -i.bak 's%^#include ".*/ActionRegister.h"%#include "core/ActionRegister.h"%g' "${tmpfile}"
fi

if grep -q '^#include "\(cltools\)\/CLToolRegister.h"' "${tmpfile}"; then
>&2 echo 'WARNING: using a legacy CLToolRegister.h include path, please use <<#include "core/CLToolRegister.h">>'
sed 's%^#include ".*/CLToolRegister.h"%#include "core/CLToolRegister.h"%g' -i.bak "${tmpfile}"
sed -i.bak 's%^#include ".*/CLToolRegister.h"%#include "core/CLToolRegister.h"%g' "${tmpfile}"
fi

rm -f "$obj" "$lib"
Expand Down

0 comments on commit 05a6feb

Please sign in to comment.