Debian Codegraph @

texmf-dist/doc/support/ctan_chk/ctan_chk_bash

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # File: ctan_chk_bash
3 # Why: Creates the ctan_chk.gawk and ctan_chk.pdf from the ctan_chk.w ``literate program''
4 # How to run: from bash command-terminal
5 # . ctan_chk_bash
6 #
7 echoscip-shell system . . echo. "----------->ctan_chk_bash script<-----------"
8 echoscip-shell system . . echo. "----------->cweave create the pdf doc of ctan_chk<-----------"
9 cweave ctan_chk
10 pdftex ctan_chk
11 echoscip-shell system . . echo. "----------->ctangle create ctan_chk.gawk program<-----------"
12 ctangle -l +e ctan_chk.w
13 echoscip-shell system . . echo. "----------->sed - change section no into a gawk comment<-----------"
14 sedscip-shell system . . sed. 's/^\/\*/# section no/' ctan_chk.gawk>ctan_chk.tmp
15 echoscip-shell system . . echo. "----------->gawk --- remove empty lines and #line lines<-----------"
16 gawkscip-shell system . . gawk. -e '{r=length($0);if(r==0) next; match($0,/^(\#line|;)/);if (RLENGTH > 0) next; print $0;}' ctan_chk.tmp > ctan_chk.tm1
17 echoscip-shell system . . echo. "----------->cp --- create the gawk edited program<-----------"
18 cpscip-shell system . . cp. ctan_chk.tm1 ctan_chk.gawk
19 echoscip-shell system . . echo. "----------->remove temporary files<-----------"
20 rmscip-shell system . . rm. ctan_chk.tmp
21 rmscip-shell system . . rm. ctan_chk.tm1
22 rmscip-shell system . . rm. *.idx
23 rmscip-shell system . . rm. *.scn
24 rmscip-shell system . . rm. *.toc
25 rmscip-shell system . . rm. *.tex
26 rmscip-shell system . . rm. *.log
27 rmscip-shell system . . rm. *.c
28