Skip to content

Commit 96f9067

Browse files
authored
Merge pull request #25 from vaitkus/update-cod-revision
Update cod-tools from r10048 to r10698 (second attempt)
2 parents b134076 + bc23f92 commit 96f9067

File tree

1 file changed

+32
-14
lines changed

1 file changed

+32
-14
lines changed

entrypoint.sh

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,52 @@ apt-get update
99
# Install 'subversion' since it is needed to retrieve the cod-tools package
1010
apt-get -y install subversion
1111

12-
# Install 'moreutils' since it contain the 'sponge' program
12+
# Install 'moreutils' since it contain the 'sponge' program
1313
apt-get -y install moreutils
1414

15-
# Install 'git' since it is needed to retrieve the imported dictionaries
16-
apt-get -y install git
17-
1815
# Make a sparse check out a fixed 'cod-tools' revision
1916
COD_TOOLS_DIR=cod-tools
20-
COD_TOOLS_REV=10048
17+
COD_TOOLS_REV=10698
2118
mkdir ${COD_TOOLS_DIR}
2219
cd ${COD_TOOLS_DIR}
2320
svn co -r ${COD_TOOLS_REV} \
2421
--depth immediates \
2522
svn://www.crystallography.net/cod-tools/trunk .
2623
svn up -r ${COD_TOOLS_REV} \
2724
--set-depth infinity \
28-
dependencies makefiles scripts src
25+
makefiles scripts src
2926

3027
# Install 'cod-tools' dependencies
31-
apt-get -y install sudo
32-
./dependencies/Ubuntu-22.04/build.sh
33-
./dependencies/Ubuntu-22.04/run.sh
28+
#~ apt-get -y install sudo
29+
#~ ./dependencies/Ubuntu-22.04/build.sh
30+
#~ ./dependencies/Ubuntu-22.04/run.sh
31+
apt-get -y install \
32+
bison \
33+
gcc \
34+
libclone-perl \
35+
libdate-calc-perl \
36+
libdatetime-format-rfc3339-perl \
37+
libhtml-parser-perl \
38+
libjson-perl \
39+
liblist-moreutils-perl \
40+
libparse-yapp-perl \
41+
libperl-dev \
42+
make \
43+
swig \
44+
;
3445

3546
# Patch the Makefile and run custom build commands
3647
# to avoid time-intensive tests
3748
perl -pi -e 's/^(include \${DIFF_DEPEND})$/#$1/' \
3849
makefiles/Makefile-perl-multiscript-tests
39-
make "$(pwd)"/src/lib/perl5/COD/CIF/Parser/Bison.pm
40-
make "$(pwd)"/src/lib/perl5/COD/CIF/Parser/Yapp.pm
50+
COD_CIF_PARSER_DIR="$(pwd)"/src/lib/perl5/COD/CIF/Parser/
51+
make -C ${COD_CIF_PARSER_DIR}
52+
ln -s ${COD_CIF_PARSER_DIR}/Yapp/lib/COD/CIF/Parser/Yapp.pm \
53+
${COD_CIF_PARSER_DIR}/Yapp.pm
54+
ln -s ${COD_CIF_PARSER_DIR}/Bison/lib/COD/CIF/Parser/Bison.pm \
55+
${COD_CIF_PARSER_DIR}/Bison.pm
56+
ln -s ${COD_CIF_PARSER_DIR}/Bison/lib/auto/COD/CIF/Parser/Bison/Bison.so \
57+
"$(pwd)"/src/lib/perl5/auto/COD/CIF/Parser/Bison/Bison.so
4158
make ./src/lib/perl5/COD/ToolsVersion.pm
4259

4360
PERL5LIB=$(pwd)/src/lib/perl5${PERL5LIB:+:${PERL5LIB}}
@@ -86,6 +103,9 @@ test -f ./ddl.dic && DDLM_REFERENCE_DIC=./ddl.dic
86103

87104
if [ ! -v DDLM_REFERENCE_DIC ]
88105
then
106+
# Install 'git' since it is needed to retrieve the imported dictionaries
107+
apt-get -y install git
108+
89109
git clone https://github.com/COMCIFS/cif_core.git "${TMP_DIR}"/cif_core
90110
DDLM_REFERENCE_DIC="${TMP_DIR}"/cif_core/ddl.dic
91111
# Specify the location of imported files (e.g. "templ_attr.cif")
@@ -137,9 +157,7 @@ do
137157
`# See https://github.com/COMCIFS/cif_core/pull/561` \
138158
-e "save_(reflns|diffrn_reflns)[.]limit_index_m_[1-9]_(min|max): .+ not contain evaluation" \
139159
-e "save_(refln|diffrn_refln|diffrn_standard_refln|exptl_crystal_face|twin_refln)[.]index_m_[1-9]: .+ not contain evaluation" \
140-
`# _type.dimension is provided in a dREL method` \
141-
-e "save_.+(q_coeff|global_phase_list|m_list|max_list|min_list|matrix_w).+ '_type.dimension' should be specified" |
142-
sponge "${OUT_FILE}"
160+
| sponge "${OUT_FILE}"
143161
if [ -s "${OUT_FILE}" ]
144162
then
145163
echo "Dictionary check detected the following irregularities:";

0 commit comments

Comments
 (0)