Skip to content

Commit 265a9b0

Browse files
Updated postbuild script
1 parent 7b1da89 commit 265a9b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

postbuild.sh

+8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
# Use run this script after building trawld to generate updated
33
# Introspection xml for the dbus service
44

5+
./target/release/trawld &
6+
name_acquired=$?
7+
sleep 0.5
58
dbus-send --session \
69
--dest=org.regolith.Trawl \
710
--type=method_call \
811
--print-reply \
912
/org/regolith/Trawl \
1013
org.freedesktop.DBus.Introspectable.Introspect | tail -n +3 | head -n -1 > ./client_api/service.xml
14+
15+
# kill trawld if it was not running before
16+
if [ $name_acquired -eq 0 ]; then
17+
killall trawld
18+
fi

0 commit comments

Comments
 (0)