forked from SSSD/sssd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsbus_generate.sh.in
More file actions
executable file
·28 lines (22 loc) · 886 Bytes
/
Copy pathsbus_generate.sh.in
File metadata and controls
executable file
·28 lines (22 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# Use /bin/sh as shebang for greater portability. Non-Linux systems such as
# FreeBSD do not have Bash installed by default.
SRCDIR=$1
CODEGEN="$SRCDIR/src/sbus/codegen/sbus_CodeGen.py"
generate() {
XML=$1
DEST=$2
PREFIX=$3
HEADERS=`echo $DEST | sed -E 's|^$SRCDIR/src/||'`
shift 3
echo "Generating sbus code for: $XML"
@PYTHON_EXEC@ $CODEGEN --sbus sbus --util util \
--headers "$HEADERS" \
--dest "$SRCDIR/src/$DEST" \
--fileprefix "sbus_${PREFIX}_" \
--symbolprefix "$PREFIX" $* \
"$SRCDIR/src/$XML"
}
generate sbus/codegen/dbus.xml sbus/interface_dbus dbus
generate sss_iface/sss_iface.xml sss_iface sss -i sss_iface/sss_iface_types.h "$SRCDIR/src/sss_iface/external_iface.xml"
generate responder/ifp/ifp_iface/ifp_iface.xml responder/ifp/ifp_iface ifp -i responder/ifp/ifp_iface/ifp_iface_types.h