pkgsrc/editors/nvi-m17n/files/nvi-m17n
obache 275b378d74 Fixes typo in wapper script.
Problem noticed by Satoshi Suetake in PR 37445.

Bump PKGREVISION.
2007-11-28 11:40:35 +00:00

18 lines
570 B
Bash
Executable file

#! /bin/sh
EXINIT0="set ${CANNA_OPT} autodetect=${AUTODETECT} fileencoding=${ENCODING} displayencoding=${ENCODING} inputencoding=${ENCODING} noskipdisplay"
if [ "x$NEXINIT" != "x" -a "${NEXINIT-UNSET}" != "UNSET" ]; then
EXINIT1="$NEXINIT"
elif [ "x$EXINIT" != "x" -a "${EXINIT-UNSET}" != "UNSET" ]; then
EXINIT1="$EXINIT"
else
rcfile="/dev/null"
if [ -f "${HOME}/.nexrc" ]; then
rcfile="$HOME/.nexrc"
elif [ -f "${HOME}/.exrc" ]; then
rcfile="$HOME/.exrc"
fi
EXINIT1="source $rcfile"
fi
NEXINIT="$EXINIT0|$EXINIT1"
export NEXINIT
exec ${PREFIX}/bin/nvi "$@"