mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Docs: Restore generation of vim plugin
This commit is contained in:
parent
91069aecfb
commit
9e9c285912
1 changed files with 19 additions and 4 deletions
|
|
@ -20,7 +20,11 @@ fi
|
|||
|
||||
echo -e "\n========== Installing Dependencies =========="
|
||||
apt-get update -qq
|
||||
apt-get install -qq --no-install-recommends python3 python3-pip
|
||||
apt-get install -qq --no-install-recommends \
|
||||
default-jre-headless \
|
||||
libsaxonhe-java \
|
||||
python3 \
|
||||
python3-pip
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
pip3 install --quiet sphinx myst-parser sphinx_rtd_theme lxml
|
||||
|
|
@ -33,9 +37,6 @@ cd /workspace/artifacts/manual
|
|||
/opt/cp2k/exe/local/cp2k.psmp --version
|
||||
/opt/cp2k/exe/local/cp2k.psmp --xml
|
||||
|
||||
TOOLS=/opt/cp2k/tools
|
||||
cp ${TOOLS}/manual/favicon.png .
|
||||
|
||||
set +e # disable error trapping for remainder of script
|
||||
(
|
||||
set -e # abort if error is encountered
|
||||
|
|
@ -50,6 +51,20 @@ if ((EXIT_CODE)); then
|
|||
exit
|
||||
fi
|
||||
|
||||
echo -e "\n========== Generating VIM Plugin =========="
|
||||
(
|
||||
set -e # abort if error is encountered
|
||||
sed -i 's/\x0/?/g' cp2k_input.xml # replace null bytes which would crash saxon
|
||||
SAXON="java -jar /usr/share/java/Saxon-HE.jar"
|
||||
$SAXON -o:cp2k.vim ./cp2k_input.xml /opt/cp2k/tools/input_editing/vim/vim.xsl
|
||||
)
|
||||
EXIT_CODE=$?
|
||||
if ((EXIT_CODE)); then
|
||||
echo -e "\nSummary: Saxon run failed."
|
||||
echo -e "Status: FAILED\n"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo -e "\nSummary: Manual generation works fine."
|
||||
echo -e "Status: OK\n"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue