3 # stuff we should do in the makefile
4 # but can't for portability reasons.
10 dotfiles="$HOME/$1 $dotfiles"
11 xxxfiles="${2%.lp} $xxxfiles"
13 dname=$(dirname "$HOME/$1")
14 cat <<EOF >> Makefile.local
16 [ ! -d "$dname" ] && mkdir -p "$dname" || true
24 gemfiles="gem/$1.gmi $gemfiles"
25 wwwfiles="www/$1.html $wwwfiles"
26 cat <<EOF >> Makefile.local
28 sed 's/EXT/gmi'/ $2 | ./unpar | ./gc > \$@
30 www/$1.html: gem/$1.gmi header.html footer.html
31 sed 's!TITLE!$1!' header.html > \$@
32 sed 's/EXT/html/' $2 | ./unpar | ./gc | ./gem2html >> \$@
33 cat footer.html >> \$@
40 pair .profile profile.lp
42 pair lib/profile rc.lp
43 pair .sqliterc sqliterc.lp
46 for file in $files; do
47 conv "${file%.lp}" "$file"
50 cat <<EOF >> Makefile.local
54 XXXFILES = $(printf "%s\n" $xxxfiles | sort | xargs echo)