1 2 #!/bin/sh - 3 4 echo 'Pretty Print Script v0.2 by s tayefeh (2004)' 5 echo 'collects all .C .cc .cpp and .h from a ./.' 6 echo 'and create a PRETTY_C.ps file with the C-sources' 7 echo 'and a PRETTY_h.ps file with the header-sources' 8 9 ls -lq *.C *.cc *.cpp \ 10 | awk '{printf "%s ", $8}' \ 11 > clist.temp 12 13 ls -lq *.h \ 14 | awk '{printf "%s ", $8}' \ 15 > hlist.temp 16 17 a2ps --prologue=color -Ec++ -o PRETTY_C.ps \ 18 `cat clist.temp` $1 $2 $3 $4 19 20 a2ps --prologue=color -Ec++ -o PRETTY_h.ps \ 21 `cat hlist.temp` $1 $2 $3 $4 22 23 rm hlist.temp clist.temp 24
You need to create an account or log in to post comments to this site.