Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Kurečka
Plumed AlphaFold
Commits
f3739804
There was an error fetching the commit references. Please try again later.
Commit
f3739804
authored
7 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Patches
Plain Diff
Patch: small fix
Plumed.cmake is now treated as Plumed.inc
parent
6c42035e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/patch.sh
+10
-10
10 additions, 10 deletions
patches/patch.sh
with
10 additions
and
10 deletions
patches/patch.sh
+
10
−
10
View file @
f3739804
...
...
@@ -228,7 +228,7 @@ case "$action" in
exit
1
fi
fi
if
[
-L
Plumed.h
-o
-L
Plumed.inc
]
if
[
-L
Plumed.h
-o
-L
Plumed.inc
-o
-L
Plumed.cmake
]
then
echo
"ERROR: you have likely already patched. Revert first (-r)"
exit
1
...
...
@@ -249,10 +249,10 @@ case "$action" in
test
-n
"
$quiet
"
||
echo
"Executing plumed_before_patch function"
plumed_before_patch
fi
test
-n
"
$quiet
"
||
echo
"Linking Plumed.h and Plumed.
inc
(
$mode
mode)"
ln
-s
"
$PLUMED_INCLUDEDIR
/
$PLUMED_PROGRAM_NAME
/wrapper/Plumed.h"
Plumed.h
ln
-s
"
$PLUMED_ROOT
/src/lib/Plumed.inc.
$mode
"
Plumed.inc
ln
-s
"
$PLUMED_ROOT
/src/lib/Plumed.cmake.
$mode
"
Plumed.cmake
test
-n
"
$quiet
"
||
echo
"Linking Plumed.h
, Plumed.inc,
and Plumed.
cmake
(
$mode
mode)"
ln
-
f
s
"
$PLUMED_INCLUDEDIR
/
$PLUMED_PROGRAM_NAME
/wrapper/Plumed.h"
Plumed.h
ln
-
f
s
"
$PLUMED_ROOT
/src/lib/Plumed.inc.
$mode
"
Plumed.inc
ln
-
f
s
"
$PLUMED_ROOT
/src/lib/Plumed.cmake.
$mode
"
Plumed.cmake
if
[
-d
"
$diff
"
]
;
then
test
-n
"
$quiet
"
||
echo
"Patching with on-the-fly diff from stored originals"
...
...
@@ -309,9 +309,9 @@ case "$action" in
fi
;;
(
save
)
if
[
!
-L
Plumed.h
-o
!
-L
Plumed.inc
]
if
[
!
-L
Plumed.h
-o
!
-L
Plumed.inc
-o
!
-L
Plumed.cmake
]
then
echo
"ERROR: I cannot find Plumed.h and Plumed.
inc
files. You have likely not patched yet."
echo
"ERROR: I cannot find Plumed.h
, Plumed.inc,
and Plumed.
cmake
files. You have likely not patched yet."
exit
1
fi
PREPLUMED
=
$(
find
.
-name
"*.preplumed"
|
sort
)
...
...
@@ -389,11 +389,11 @@ EOF
test
-n
"
$quiet
"
||
echo
"Executing plumed_before_revert function"
plumed_before_revert
fi
if
[
!
-L
Plumed.h
-o
!
-L
Plumed.inc
]
if
[
!
-L
Plumed.h
-o
!
-L
Plumed.inc
-o
!
-L
Plumed.cmake
]
then
echo
"WARNING: I cannot find Plumed.h and Plumed.
inc
files. You have likely not patched yet."
echo
"WARNING: I cannot find Plumed.h
, Plumed.inc,
and Plumed.
cmake
files. You have likely not patched yet."
else
test
-n
"
$quiet
"
||
echo
"Removing Plumed.h and Plumed.
inc
"
test
-n
"
$quiet
"
||
echo
"Removing Plumed.h
, Plumed.inc,
and Plumed.
cmake
"
rm
Plumed.h Plumed.inc Plumed.cmake
fi
PREPLUMED
=
$(
find
.
-name
"*.preplumed"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment