diff --git a/src/KIM/Install.sh b/src/KIM/Install.sh index 70784e506d..9a734b30ce 100644 --- a/src/KIM/Install.sh +++ b/src/KIM/Install.sh @@ -11,8 +11,11 @@ if (test $1 = 1) then fi if (test -e ../Makefile.package.settings) then - sed -i -e '/^include.*kim.*$/d' ../Makefile.package.settings - sed -i '4 i include ..\/..\/lib\/kim\/Makefile.lammps' ../Makefile.package.settings + sed -i -e '/^include.*KIM.*$/d' ../Makefile.package.settings + # multiline form needed for BSD sed on Macs + sed -i '4 i \ +include KIM\/Makefile.lammps\ +' ../Makefile.package.settings fi cp pair_kim.cpp .. @@ -25,7 +28,7 @@ elif (test $1 = 0) then fi if (test -e ../Makefile.package.settings) then - sed -i -e '/^include.*kim.*$/d' ../Makefile.package.settings + sed -i -e '/^include.*KIM.*$/d' ../Makefile.package.settings fi rm -f ../pair_kim.cpp diff --git a/src/USER-MOLFILE/Install.sh b/src/USER-MOLFILE/Install.sh index 23bce3a81c..b3ec96a945 100644 --- a/src/USER-MOLFILE/Install.sh +++ b/src/USER-MOLFILE/Install.sh @@ -10,10 +10,10 @@ if (test $1 = 1) then fi if (test -e ../Makefile.package.settings) then - sed -i -e '/^include.*molfile.*$/d' ../Makefile.package.settings + sed -i -e '/^include.*USER-MOLFILE.*$/d' ../Makefile.package.settings # multiline form needed for BSD sed on Macs sed -i '4 i \ -include ..\/..\/lib\/molfile\/Makefile.lammps\ +include USER-MOLFILE\/Makefile.lammps\ ' ../Makefile.package.settings fi @@ -35,7 +35,7 @@ elif (test $1 = 0) then fi if (test -e ../Makefile.package.settings) then - sed -i -e '/^include.*molfile.*$/d' ../Makefile.package.settings + sed -i -e '/^include.*USER-MOLFILE.*$/d' ../Makefile.package.settings fi rm -f ../molfile_interface.cpp