From 0653e2d5da26f56f21841f4dc0a925a864168800 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Wed, 5 Oct 2005 18:40:16 +0000 Subject: [PATCH] Agregar script para convertir de codigo a PDF. --- tests/enscript.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/enscript.sh 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 + -- 2.43.0