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

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