#!/bin/sh -u # -Ian! D. Allen - idallen@idallen.ca - www.idallen.com NEWLINE=' ' wget --mirror -Delearning.algonquincollege.com http://elearning.algonquincollege.com/coursemat/allisor/cst8177/ -nH --cut-dirs=3 "$@" IFS=$NEWLINE for d in $( find . -type d ) ; do ( cd "$d" || exit $? for f in *.zip ; do unzip "$f" ; done rm *.zip ) done ~/sh/makepdftxt.sh *.odt */*.odt cd lectures && { for f in *.odp ; do base=${f%%.???} echo "Base $base" mkdir -p "$base" && ( cd "$base" || exit 1 ln -s "../$f" index.html unoconv -f html index.html ) done }