conv (326B)
1 #!/bin/sh 2 # 3 # conv 4 5 . lib/suf.sh 6 7 NOM="$(basename "$0")" 8 9 mkdir -p "$(dirname "$OPT_DST")" 10 11 case $OPT_FORMAT in 12 gemtext) SCRIPT="$DOS_LIB/vers_gemtext.awk"; EXT=gmi ;; 13 html) SCRIPT="$DOS_LIB/vers_html.awk"; EXT=html ;; 14 *) exit 1 ;; 15 esac 16 17 awk -v format="$EXT" -f "$SCRIPT" -f "$DOS_LIB/analyser.awk" > "$OPT_DST.$EXT"