#!/bin/sh usage () { cat <schemas.xml If schemas.xml is in the same directory as errors.xml or pipespec.xml, Emacs will give on-the-fly validation using the DTD's. EOF } if [ "$#" != 0 ]; then case "$1" in -V|--version) echo "$0 - libdivvun version 0.3.12-alpha" exit ;; -h|--help) usage exit ;; *) usage exit 1 ;; esac fi # If it looks like we're not installed, use the errors.dtd of the same # dir as this script; otherwise assume we're installed: d=$(dirname "$0") if [ "$0" != "/usr/bin/divvun-gen-xmlschemas" ] && [ -e "$d"/errors.dtd ]; then dir="$d" else dir=/usr/share/libdivvun fi cat < EOF