about summary refs log tree commit diff stats
path: root/build/latex/letter/scripts/extract_text_from_all.sh
blob: 11b2ac4c620aec7b8c28dc485a753f601f0f7489 (plain) (blame)
1
2
3
4
5
6
7
8
#! /usr/bin/env sh

grep 'INPUT ./' ./build/main.fls | uniq | sed 's/INPUT //' | while read -r file; do
    if ! [ "$(basename "$file")" = preamble.tex ] && ! [ "$(basename "$file")" = gymnasium.png ]; then
        printf "\n%% Filename: %s\n" "$file"
        grep -v '^\s*%' "$file"
    fi
done