From: Alberto Bertogli Date: Wed, 5 Oct 2005 18:40:16 +0000 (+0000) Subject: Agregar script para convertir de codigo a PDF. X-Git-Tag: Entrega_1~2 X-Git-Url: https://git.llucax.com/z.facultad/75.29/dale.git/commitdiff_plain/0653e2d5da26f56f21841f4dc0a925a864168800?ds=inline Agregar script para convertir de codigo a PDF. --- diff --git a/tests/enscript.sh b/tests/enscript.sh new file mode 100644 index 0000000..06abd7f --- /dev/null +++ b/tests/enscript.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +function ensc() { + enscript --style=emacs --color=0 --highlight=cpp \ + --title='TeorĂ­a de Algoritmos I - TP1' \ + --header="$1"' |%H|$% de $=' -C -L 68 \ + -p doc/codigo/$1.ps src/$1 + ps2pdf doc/codigo/$1.ps doc/codigo/$1.pdf + rm doc/codigo/$1.ps +} + +for i in src/number.h src/main.cpp; do + B=`basename $i` + echo $B + ensc $B + echo +done +