view etc/editclient.sh @ 4093:86f900725eda

[xemacs-hg @ 2007-08-02 06:37:48 by michaels] 2007-08-02 Mike Sperber <mike@xemacs.org> * startup.el (startup-setup-paths): Fix typo in init expression for `emacs-roots'.
author michaels
date Thu, 02 Aug 2007 06:37:53 +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