-
Notifications
You must be signed in to change notification settings - Fork 2
/
make-single-file
31 lines (31 loc) · 914 Bytes
/
make-single-file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/tcsh -f
scc -o remove-extra-blank-lines remove-extra-blank-lines.sc
rm -f remove-extra-blank-lines.c
rm -f stalin.sc last-line.sc trotsky.sed
cat <<eof >trotsky.sed
\+;;; Begin delete for Trotsky+,\+;;; End delete for Trotsky+d
\+;;; Tam V'Nishlam Shevah L'El Borei Olam+,\+;;; http://www.ece.purdue.edu/~qobi+d
s/\\\\+\./+\./g
s/\\\\-\./-\./g
eof
cat <<eof >last-line.sc
;;; Tam V'Nishlam Shevah L'El Borei Olam
eof
cat lenin.sc\
source/stalin1.sc\
source/stalin2.sc\
source/stalin3a.sc\
source/stalin3b.sc\
source/stalin4a.sc\
source/stalin4b.sc\
source/stalin4c.sc\
source/stalin4d.sc\
source/stalin5a.sc\
source/stalin5b.sc\
source/stalin5c.sc\
source/stalin5d.sc\
source/stalin5e.sc\
source/stalin.sc\
|sed -f trotsky.sed|cat - last-line.sc\
|remove-extra-blank-lines >stalin.sc
rm -f last-line.sc trotsky.sed remove-extra-blank-lines