diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2025-11-05 10:13:24 -0700 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2025-11-05 10:13:24 -0700 |
| commit | 397ba81d210dad7331626e4bbaccfca3b745576c (patch) | |
| tree | c5dd8180103638bf0394cd2104dc687e68d0e6df /book/generate_module_tex.sh | |
| parent | 6a5f11936e4419866b941f35b5dfad0729008cb5 (diff) | |
Removed book/ from tracking
Diffstat (limited to 'book/generate_module_tex.sh')
| -rw-r--r-- | book/generate_module_tex.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/book/generate_module_tex.sh b/book/generate_module_tex.sh deleted file mode 100644 index 4d3c449..0000000 --- a/book/generate_module_tex.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -book_dir="." - -# Loop through all module directories (module1, module2, etc.) -for module_path in "$book_dir"/module*/; do - [ -d "$module_path" ] || continue - - module_name=$(basename "$module_path") # e.g. module2 - module_number="${module_name//[!0-9]/}" # extract number: 2 - output_file="$module_path/$module_name.tex" - - echo "Generating $output_file" - - # Start writing the .tex file - { - echo "\\chapter{Module $module_number}" - for texfile in "$module_path"/*.tex; do - tex_base=$(basename "$texfile" .tex) - - # Skip the module.tex itself - [[ "$tex_base" == "$module_name" ]] && continue - - echo "\\input{$module_name/$tex_base}" - done - } > "$output_file" -done |
