Update Automatic generation of user_model IO of mbsysc projects authored by Olivier Lantsoght's avatar Olivier Lantsoght
To automatically generate the *user_model.c/.h* and *user_IO.c/.h* files of projects of mbsysC, this file execute the *Gen_mds_user.exe* that should have been generate under mbsysC *build* folder. To automatically generate the *user_model.c/.h* and *user_IO.c/.h* files of projects of mbsysC, this file execute the *Gen_mds_user.exe* that should have been generate under mbsysC *build* folder.
We provide 2 solutions to update user files automatically: We provide 3 solutions to update user files automatically:
* A python script that iterate automatically in all subfolders * A python script that iterate automatically in all subfolders
* A shell script * A shell script
* A unix shell command
## Python script ## Python script
...@@ -32,4 +33,9 @@ avec fichier= ...@@ -32,4 +33,9 @@ avec fichier=
"user_models" "user_models"
"user_IOs" "user_IOs"
"user_all_id" "user_all_id"
"user_hard_param" "user_hard_param"
\ No newline at end of file
## Unix single line command
Open a terminal in *mbsysc* folder then call `find . -name \*.mbs -exec "./MBsysC/build/bin/Gen_mds_user" {} \;`.
- `find` will list all files (recursively) ending with *.mbs*;
- `-exec ...` will call `Gen_mds_user` with each file found.
\ No newline at end of file