]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* tools/run-with-tmp-session-bus.sh:
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 10 Aug 2006 21:44:00 +0000 (21:44 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 10 Aug 2006 21:44:00 +0000 (21:44 +0000)
* test/name-test/run-test.sh:
  Remove bashisms (patch from Julio M. Merino Vidal
  <jmmv at NetBSD dot org>)

ChangeLog
test/name-test/run-test.sh
tools/run-with-tmp-session-bus.sh

index e41b8c86bdc7a3b6db2d6f95de89e6441e4d184b..9c157a9b24d3acee2e0d270c1326a6d7aae491e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-08-10  John (J5) Palmieri  <johnp@redhat.com>
+
+       * tools/run-with-tmp-session-bus.sh:
+       * test/name-test/run-test.sh:
+       Remove bashisms (patch from Julio M. Merino Vidal
+       <jmmv at NetBSD dot org>)
+
 2006-08-10  John (J5) Palmieri  <johnp@redhat.com>
 
        * configure.in: add a version (>= 2.6.0) check for libxml2
index 706d5950c31a6a687766936530e20fa94c32d9e0..6c612499d0fa572c063bbc3484c4645ec604fcbd 100755 (executable)
@@ -1,6 +1,6 @@
-#! /bin/bash
+#! /bin/sh
 
-function die()
+ie()
 {
     if ! test -z "$DBUS_SESSION_BUS_PID" ; then
         echo "killing message bus "$DBUS_SESSION_BUS_PID >&2
index 07cbb501678ac46d7eae17c00cfe0d4ec2af500e..880924b7a37d5a38afefb990c714b2cdf7158d55 100755 (executable)
@@ -4,7 +4,7 @@ SCRIPTNAME=$0
 WRAPPED_SCRIPT=$1
 shift
 
-function die() 
+die() 
 {
     if ! test -z "$DBUS_SESSION_BUS_PID" ; then
         echo "killing message bus "$DBUS_SESSION_BUS_PID >&2
@@ -19,7 +19,7 @@ if test -z "$DBUS_TOP_BUILDDIR" ; then
 fi
 
 ## convenient to be able to ctrl+C without leaking the message bus process
-trap 'die "Received SIGINT"' SIGINT
+trap 'die "Received SIGINT"' INT
 
 CONFIG_FILE=./run-with-tmp-session-bus.conf
 SERVICE_DIR="$DBUS_TOP_BUILDDIR/test/data/valid-service-files"