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

grep 'INPUT ./' ./build/beitragsordnung.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