#!/bin/sh # You need to set gdir sensibly. gdir="/usr/local/gellmu" if [ $?GELLMU_Dir ] ; then gdir="$GELLMU_Dir" fi if [ ! \( -f "$gdir/wgellmu.elc" \) ] ; then emacs -batch -f batch-byte-compile "$gdir/gellmu.el" mv "$gdir/gellmu.elc" "$gdir/wgellmu.elc" fi gname="${1}" if [ ! \( -f "${gname}" \) ] ; then gname="${1}.glm" fi emacs -batch -l "$gdir/wgellmu.elc" -f gellmu-trans "${gname}"