view etc/editclient.sh @ 1494:210683f31426

[xemacs-hg @ 2003-05-22 06:09:03 by stephent] coding detection debug code <87vfw3tt4b.fsf@tleepslib.sk.tsukuba.ac.jp> typo in comment <87r86rtt18.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Thu, 22 May 2003 06:09:04 +0000
parents 3ecd8885ac67
children
line wrap: on
line source

#!/bin/sh
if gnuclient -batch -eval t >/dev/null 2>&1; then
  exec gnuclient ${1+"$@"}
else
  xemacs -unmapped -f gnuserv-start &
  until gnuclient -batch -eval t >/dev/null 2>&1
  do
     sleep 1
  done
  exec gnuclient ${1+"$@"}
fi