-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init script to automatically create figures, #636
- Loading branch information
Showing
3 changed files
with
25 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,25 @@ | ||
# List of modules to exclude | ||
exclude_modules=("tool_installation" "image_inspection_and_presentation") | ||
|
||
# Function to check if a module is in the exclude list | ||
is_excluded() { | ||
local e | ||
for e in "${exclude_modules[@]}"; do [[ "$e" == "$1" ]] && return 0; done | ||
return 1 | ||
} | ||
|
||
# Extract the module_order and execute the command for each, excluding specified modules | ||
|
||
i=0 | ||
i_max=3 # Set to a low number for development, otherwise set to 99999 | ||
|
||
yq e '.module_order[]' _config.yml | while read module; do | ||
if ! is_excluded "$module"; then | ||
i=$((i+1)) | ||
echo ${i}: ${module} | ||
#soffice --headless --convert-to png --outdir ./figures figures/resources/"${module}".pptx | ||
fi | ||
if [ $i -eq $i_max ]; then | ||
break | ||
fi | ||
done |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.