#!/bin/bash # $HeadURL$ $LastChangedRevision$ set -e PROGNAME=$(basename $0) MODROOT=${MDI_MODROOT:-$(expr "$(readlink -m $0)" : '\(.*\)/bin/[^/]*$')} [ -d $MODROOT/lib/helpers ] || { echo "$PROGNAME: ERROR: can't find components (do you need to set 'MDI_MODROOT'?)" >&2; exit 1; } # Load config and support functions . $MODROOT/include/mdi.sh . $MODROOT/etc/mdi.sh # Globals main() { $SQLITE_CMD $MDI_DB_FILE .dump return 0 } main "$@"