wrapper script to allow reading *.maff
9 Sep
2015
9 Sep
'15
9:45 a.m.
Some of y'all might find this useful. If you put it in your path, you can invoke it "dill filename" or make it the default ap for maffs or regular htm(l)s for that matter. It lets Dillo read the Mozilla Archive File Format (*.maff) files. Maffs are pretty nice - if you haven't played with them you might like to try it. Here is the body of the file if you find that more convenient than the attachment: #!/bin/bash # if the argument ends in ".maff" if [ "$(echo "$1" | rev | cut -c1-5 | rev)" = ".maff" ]; then DIR="/tmp/dillo_maff_unzpped/$(date +%s%N)" mkdir -p "$DIR" unzip "$1" -d "$DIR" SUBDIR="$(ls "$DIR")" dillo "$DIR/$SUBDIR/index.html" || dillo "$DIR/$SUBDIR/index.htm" rm -r "$DIR" else dillo "$1" fi
3360
Age (days ago)
3360
Last active (days ago)
0 comments
1 participants
participants (1)
-
plmalternateļ¼ gmail.com