From 05a6febd50745deff1fe187676008c6e0c47af36 Mon Sep 17 00:00:00 2001 From: Daniele Rapetti Date: Wed, 21 Jun 2023 09:58:30 +0200 Subject: [PATCH] sed and mac problems --- scripts/mklib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mklib.sh b/scripts/mklib.sh index 1dede7b0ac..9026e8082e 100755 --- a/scripts/mklib.sh +++ b/scripts/mklib.sh @@ -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"