]> git.llucax.com Git - z.facultad/75.29/dale.git/commitdiff
Agregar script para convertir de codigo a PDF.
authorAlberto Bertogli <albertogli@telpin.com.ar>
Wed, 5 Oct 2005 18:40:16 +0000 (18:40 +0000)
committerAlberto Bertogli <albertogli@telpin.com.ar>
Wed, 5 Oct 2005 18:40:16 +0000 (18:40 +0000)
tests/enscript.sh [new file with mode: 0644]

diff --git a/tests/enscript.sh b/tests/enscript.sh
new file mode 100644 (file)
index 0000000..06abd7f
--- /dev/null
@@ -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
+