view etc/editclient.sh @ 3544:981a144e71fa

[xemacs-hg @ 2006-08-05 08:30:35 by aidan] Eliminate some Windows build errors that also happen with gcc -pedantic.
author aidan
date Sat, 05 Aug 2006 08:30:36 +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