3 7b4d8efb 2022-02-04 op # stuff we should do in the makefile
4 7b4d8efb 2022-02-04 op # but can't for portability reasons
8 7b4d8efb 2022-02-04 op files="$files $2"
9 7b4d8efb 2022-02-04 op dotfiles="\${HOME}/$1 $dotfiles"
10 6b8ba66c 2022-02-04 op xxxfiles="${2%.lp} $xxxfiles"
11 7b4d8efb 2022-02-04 op cat <<EOF >> Makefile.local
12 7b4d8efb 2022-02-04 op \${HOME}/$1: $2
13 7b4d8efb 2022-02-04 op ./lpp \$? > \$@
20 6b8ba66c 2022-02-04 op gemfiles="gem/$1.gmi $gemfiles"
21 6b8ba66c 2022-02-04 op wwwfiles="www/$1.html $wwwfiles"
22 6b8ba66c 2022-02-04 op cat <<EOF >> Makefile.local
23 6b8ba66c 2022-02-04 op gem/$1.gmi: $2
24 6b8ba66c 2022-02-04 op sed 's/EXT/gmi'/ $2 | ./unpar | ./gc > \$@
26 6b8ba66c 2022-02-04 op www/$1.html: gem/$1.gmi header.html footer.html
27 6b8ba66c 2022-02-04 op sed 's!TITLE!$1!' header.html > \$@
28 6b8ba66c 2022-02-04 op sed 's/EXT/html/' $2 | ./unpar | ./gc | ./gem2html >> \$@
29 6b8ba66c 2022-02-04 op cat footer.html >> \$@
34 7b4d8efb 2022-02-04 op rm -f Makefile.local
36 7b4d8efb 2022-02-04 op pair .profile profile.lp
37 7b4d8efb 2022-02-04 op pair .kshrc kshrc.lp
39 6b8ba66c 2022-02-04 op conv index index.lp
40 7b4d8efb 2022-02-04 op for file in $files; do
41 6b8ba66c 2022-02-04 op conv "${file%.lp}" "$file"
44 7b4d8efb 2022-02-04 op cat <<EOF >> Makefile.local
45 6b8ba66c 2022-02-04 op DOTFILES = $dotfiles
46 7b4d8efb 2022-02-04 op GEMFILES = $gemfiles
47 7b4d8efb 2022-02-04 op WWWFILES = $wwwfiles
48 6b8ba66c 2022-02-04 op XXXFILES = $(printf "%s\n" $xxxfiles | sort | xargs echo)