Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
5ade3d6c
Unverified
Commit
5ade3d6c
authored
Feb 06, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes in update data script
parent
0d8e548f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
src/pdb/pdb2cif.cpp
+1
-1
tools/update-libcifpp-data.in
+3
-6
No files found.
src/pdb/pdb2cif.cpp
View file @
5ade3d6c
...
...
@@ -1582,7 +1582,7 @@ void PDBFileParser::ParseTitle()
if
(
not
iequals
(
key
,
"MOL_ID"
)
and
mCompounds
.
empty
())
{
if
(
cif
::
VERBOSE
>
=
0
)
if
(
cif
::
VERBOSE
>
0
)
std
::
cerr
<<
"Ignoring invalid COMPND record"
<<
std
::
endl
;
break
;
}
...
...
tools/update-libcifpp-data.in
View file @
5ade3d6c
...
...
@@ -30,12 +30,9 @@ fi
# Create a temp file in the right directory and
# make sure it is cleaned up when this script exits
tmpfile
=
$(
mktemp
--tmpdir
=
@CIFPP_CACHE_DIR@
)
tmpfile
=
$(
mktemp
)
trap
"rm -f
\"
${
tmpfile
}
\"
"
EXIT
# Record if updating was really necessary
updated
=
false
update_dictionary
()
{
dict
=
$1
source
=
$2
...
...
@@ -57,7 +54,7 @@ update_dictionary() {
cat
>
"
${
tmpfile
}
"
fi
)
&&
(
mv
"
${
tmpfile
}
"
"
${
dict
}
"
&&
chmod a+r
"
${
dict
}
"
&&
updated
=
true
mv
"
${
tmpfile
}
"
"
${
dict
}
"
&&
chmod a+r
"
${
dict
}
"
)
||
true
}
...
...
@@ -69,6 +66,6 @@ update_dictionary "@CIFPP_CACHE_DIR@/mmcif_ma.dic" "https://github.com/ihmwg/Mod
# notify subscribers, will fail on FreeBSD
if
[
"
${
updated
}
"
!=
"false"
]
&&
[
-d
"@CIFPP_ETC_DIR@/libcifpp/cache-update.d"
]
&&
[
-x
/bin/run-parts
]
;
then
if
[
-d
"@CIFPP_ETC_DIR@/libcifpp/cache-update.d"
]
&&
[
-x
/bin/run-parts
]
;
then
run-parts
--arg
"@CIFPP_CACHE_DIR@"
--
"@CIFPP_ETC_DIR@/libcifpp/cache-update.d"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment