view etc/editclient.sh @ 4927:5274591ce707

Add copyright and license information for Jonathan Harris's contributions. See <870180fe1002030842k3c2f851fpeea9f7a361768e01@mail.gmail.com> in xemacs-patches for more information.
author Jerry James <james@xemacs.org>
date Wed, 03 Feb 2010 09:43:16 -0700
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