chiark / gitweb /
option to suppress launchctl fiddling on install
authorRichard Kettlewell <rjk@greenend.org.uk>
Wed, 26 Sep 2007 15:56:28 +0000 (16:56 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Wed, 26 Sep 2007 15:56:28 +0000 (16:56 +0100)
server/Makefile.am

index 92f3de2..9b92ee8 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # This file is part of DisOrder.
 # Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell
@@ -106,8 +105,10 @@ install-data-hook:
        @if [ -d ${LAUNCHD} ]; then \
          echo $(INSTALL) -m 644 uk.org.greenend.rjk.disorder.plist ${LAUNCHD};\
          $(INSTALL) -m 644 uk.org.greenend.rjk.disorder.plist ${LAUNCHD};\
-         echo launchctl unload ${LAUNCHD} \|\| true;\
-         launchctl unload ${LAUNCHD} || true;\
-         echo launchctl load ${LAUNCHD} \|\| true;\
-         launchctl load ${LAUNCHD} || true;\
+         if [ "$$(NOLAUNCH)" != "" ]; then \
+           echo launchctl unload ${LAUNCHD} \|\| true;\
+           launchctl unload ${LAUNCHD} || true;\
+           echo launchctl load ${LAUNCHD} \|\| true;\
+           launchctl load ${LAUNCHD} || true;\
+         fi;\
        fi