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