Skip to content

Commit

Permalink
chore: add script to regenerate API on schema version update
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
sanjayankur31 committed Apr 17, 2023
1 parent 3c4a6be commit f653cec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright 2023 NeuroML contributors
# Author: NeuroML contributors
# File : update.sh
#
# Script to regenerate and update the API for a new version of the NeuroML schema
#
NEUROML_VERSION="2.2"

echo "Please ensure that you have ctest and xsd installed. See readme for details."

rm -rf build && \
mkdir build && \
pushd build && \
cmake -DREGENERATE_BINDINGS=ON ../ && \
make && \
pushd src && sed -i -e 's/:param \(.*\):/@param \1/' -e '/:type/ d' -e '/\\n/ d' NeuroML_v${NEUROML_VERSION}.hxx && popd && \
make doc && make copy_wrappers &&
make test && popd && \
echo "All done"

0 comments on commit f653cec

Please sign in to comment.