-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] generate_xml.sh - bash script to generate the MIS Templates
- Loading branch information
1 parent
fdc9a87
commit 96ae027
Showing
2 changed files
with
35 additions
and
10 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
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,14 @@ | ||
#!/bin/bash | ||
|
||
while getopts ":a:f:y:" flag; | ||
do | ||
case "${flag}" in | ||
a) author=${OPTARG};; | ||
f) filename=${OPTARG};; | ||
y) year=${OPTARG};; | ||
esac | ||
done | ||
|
||
python generate_xml.py --filename="m${filename}-f" --author=$author --year=$year data/m${filename}-f.json calc/22_19_m${filename}-f.json | ||
python correct_xml.py ../data/mis_report_bs_m${filename}-f.xml | ||
python correct_xml.py ../data/mis_report_pl_m${filename}-f.xml |