Source

shlomi-fish-homepage / bin / gen-printable-CVs.sh

Full commit
#!/bin/bash
render()
{
  filename="$1"
  shift
  (cd t2 && wml --passoption=2,-X3074 --passoption=3,-I../lib/ \
    -I../lib/ -DROOT~. -DLATEMP_SERVER=t2 -DLATEMP_FILENAME="$filename" \
    -DPRINTABLE=1 "${filename}.wml" $(latemp-config --wml-flags) \
    -DLATEMP_THEME=better-scm \
    -I $HOME/conf/wml/Latemp/lib \
    -I $HOME/apps/wml \
    "$filename"
    ) | grep -vP '^<\?xml ver' \
        > printable/"$filename"
}
render "SFresume_detailed.html"
render "SFresume.html"