-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add script to regenerate API on schema version update
Fixes #12
- Loading branch information
1 parent
3c4a6be
commit f653cec
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |