Skip to content

Commit

Permalink
Corrected a typo in mklib
Browse files Browse the repository at this point in the history
Mklib now deletes correctly all the tmpfile
  • Loading branch information
Iximiel authored Oct 16, 2023
1 parent 110e47f commit 1129ffa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/mklib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ do
#adding a simple tmpfile, to preprocess "in place" the input file,
#this assumes the user has write permission in the current directory
#which should be true since we are going to compile and output something here
tmpfile=$(mktemp ${file%.cpp}.XXXXXX).cpp
tmpfile=$(mktemp ${file%.cpp}.XXXXXX.cpp)
cp "${file}" "${tmpfile}"

if grep -q '^#include "\(bias\|colvar\|function\|sasa\|vatom\)\/ActionRegister.h"' "${tmpfile}"; then
Expand Down Expand Up @@ -74,4 +74,3 @@ if test "$PLUMED_IS_INSTALLED" = yes ; then
else
eval "$link_uninstalled" "$PLUMED_MKLIB_LDFLAGS" -o "$lib" "$objs"
fi

0 comments on commit 1129ffa

Please sign in to comment.