Skip to content

Commit f653cec

Browse files
committed
chore: add script to regenerate API on schema version update
Fixes #12
1 parent 3c4a6be commit f653cec

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

update.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Copyright 2023 NeuroML contributors
4+
# Author: NeuroML contributors
5+
# File : update.sh
6+
#
7+
# Script to regenerate and update the API for a new version of the NeuroML schema
8+
#
9+
NEUROML_VERSION="2.2"
10+
11+
echo "Please ensure that you have ctest and xsd installed. See readme for details."
12+
13+
rm -rf build && \
14+
mkdir build && \
15+
pushd build && \
16+
cmake -DREGENERATE_BINDINGS=ON ../ && \
17+
make && \
18+
pushd src && sed -i -e 's/:param \(.*\):/@param \1/' -e '/:type/ d' -e '/\\n/ d' NeuroML_v${NEUROML_VERSION}.hxx && popd && \
19+
make doc && make copy_wrappers &&
20+
make test && popd && \
21+
echo "All done"

0 commit comments

Comments
 (0)