Skip to content
Snippets Groups Projects
Commit f7c19e44 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Improved patch script.

It is more flexible since it allows adding new files instead of just patching
parent 0f8b5ac0
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,10 @@ if [ -z "$config" ] ...@@ -157,6 +157,10 @@ if [ -z "$config" ]
then then
config="$PLUMED_ROOT/patches/${engine}.config" config="$PLUMED_ROOT/patches/${engine}.config"
fi fi
if [ -z "$otherfiles" ]
then
test -d "$PLUMED_ROOT/patches/${engine}" && otherfiles="$PLUMED_ROOT/patches/${engine}/"
fi
echo "MD engine: $engine" echo "MD engine: $engine"
echo "PLUMED location: $PLUMED_ROOT" echo "PLUMED location: $PLUMED_ROOT"
...@@ -168,6 +172,11 @@ then ...@@ -168,6 +172,11 @@ then
source "$config" source "$config"
fi fi
if [ -d "$otherfiles" ]
then
echo "extra files located in: $otherfiles"
fi
case "$mode" in case "$mode" in
(static|shared|runtime) ;; (static|shared|runtime) ;;
(*) (*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment