nixpkgs/pkgs/misc/tex/nix/find-lhs2tex-includes.sh
Andres Löh 5164d2ec62 Added lhs2TeX support to LaTeX builder.
svn path=/nixpkgs/trunk/; revision=16439
2009-07-23 14:13:09 +00:00

4 lines
107 B
Bash

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