nixpkgs/pkgs/misc/tex/nix/find-lhs2tex-includes.sh

4 lines
107 B
Bash
Raw Normal View History

echo '[' > $out
grep '^%include ' $src | cut -d ' ' -f 2 | sed 's/^\(.*\)$/"\1"/' >> $out
echo ']' >> $out