aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-12-24 06:15:34 +0800
committerdinoex <dinoex@FreeBSD.org>2002-12-24 06:15:34 +0800
commit6428c138e7a0d22c0e8030ef57f62e963c1d0a56 (patch)
treee0287877e3ad7323b7b8ccea4fcc9e9b28e1dee0 /lang
parent9ebf8104cd6d7a103cfc1026838f2e77ba71b7d7 (diff)
downloadfreebsd-ports-gnome-6428c138e7a0d22c0e8030ef57f62e963c1d0a56.tar.gz
freebsd-ports-gnome-6428c138e7a0d22c0e8030ef57f62e963c1d0a56.tar.zst
freebsd-ports-gnome-6428c138e7a0d22c0e8030ef57f62e963c1d0a56.zip
- use opentool in GNUstep.sh
Diffstat (limited to 'lang')
-rw-r--r--lang/gnustep-base/files/GNUstep.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/gnustep-base/files/GNUstep.sh b/lang/gnustep-base/files/GNUstep.sh
index b76c3eac6432..b5672dec2f4e 100644
--- a/lang/gnustep-base/files/GNUstep.sh
+++ b/lang/gnustep-base/files/GNUstep.sh
@@ -2,22 +2,23 @@
PREFIX=%%PREFIX%%
IFFILE=${PREFIX}/etc/gdomap_if
-PIDFILE=/var/run/gdomap.pid
-GNUSTEP_SYSTEM_ROOT=${PREFIX}/GNUstep/System
+PIDFILE="/var/run/gdomap.pid"
+GNUSTEP_SYSTEM_ROOT="${PREFIX}/GNUstep/System"
case "$1" in
start)
if [ -e ${GNUSTEP_SYSTEM_ROOT}/Makefiles/GNUstep.sh ]; then
. ${GNUSTEP_SYSTEM_ROOT}/Makefiles/GNUstep.sh
- if [ -x ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/gdomap ]; then
- rm -f ${PIDFILE}
- ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/gdomap -a ${IFFILE} -I ${PIDFILE}
- echo -n ' GNUstep'
- fi
+ rm -f ${PIDFILE}
+ opentool gdomap -a ${IFFILE} -I ${PIDFILE}
+ opentool gdnc
+ echo -n ' GNUstep'
fi
;;
stop)
[ -r ${PIDFILE} ] && kill $(cat ${PIDFILE}) && echo -n ' GNUstep'
+ killall gdnc
+ rm -f ${PIDFILE}
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2