Added preprocessing to batch runner

This commit is contained in:
deajan 2018-10-02 09:07:19 +02:00
parent 2e6e17962c
commit f028f3b6d2
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## MERGE 2018100102 ## MERGE 2018100201
## Merges ofunctions.sh and n_program.sh into program.sh ## Merges ofunctions.sh and n_program.sh into program.sh
## Adds installer ## Adds installer
@ -160,6 +160,11 @@ function __PREPROCESSOR_CopyCommons {
Logger "Cannot assemble batch runner." "SIMPLE" Logger "Cannot assemble batch runner." "SIMPLE"
exit 1 exit 1
fi fi
for subset in "${__PREPROCESSOR_SUBSETS[@]}"; do
__PREPROCESSOR_MergeSubset "$subset" "${subset//SUBSET/SUBSET END}" "ofunctions.sh" "../$PROGRAM-batch.sh"
done
chmod +x ../$PROGRAM-batch.sh chmod +x ../$PROGRAM-batch.sh
if [ $? != 0 ]; then if [ $? != 0 ]; then
Logger "Cannot chmod $PROGRAM-batch.sh" "SIMPLE" Logger "Cannot chmod $PROGRAM-batch.sh" "SIMPLE"