Update Automatic generation of user_model IO of mbsysc projects authored by Nicolas Docquier's avatar Nicolas Docquier
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:
* A python script that iterate automatically in all subfolders
* A shell script
## Python script
See python script in the **ExampleProject** folder:
[update_user_files.py](./../blob/dev/ExampleProjects/update_user_files.py)
## Shell script
Look at the file to modify the paths, depending on where you put the .sh :)
[automatic_user_file_generation.sh](uploads/dedbf5e9c3b2ab2536f65bef92b7c659/automatic_user_file_generation.sh)
The list of all project is (for now) hard-coded.
Only tested on Windows 10, bash command *MINGW64*
To call it, open bash windows and type :
```bash
./automatic_user_file_generation.sh
```
It should say that all files are correctly created.
\ No newline at end of file