"Fossies" - the Fresh Open Source Software Archive

Member "sssd-2.2.3/sbus_generate.sh.in" (30 Nov 2019, 763 Bytes) of package /linux/misc/sssd-2.2.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 SRCDIR=$1
    4 CODEGEN="$SRCDIR/src/sbus/codegen/sbus_CodeGen.py"
    5 
    6 generate() {
    7     XML=$1
    8     DEST=$2
    9     PREFIX=$3
   10     HEADERS=`echo $DEST | sed -E 's|^$SRCDIR/src/||'`
   11 
   12     shift 3
   13 
   14     echo "Generating sbus code for: $XML"
   15 
   16     @PYTHON_EXEC@ $CODEGEN --sbus sbus --util util \
   17         --headers "$HEADERS" \
   18         --dest "$SRCDIR/src/$DEST" \
   19         --fileprefix "sbus_${PREFIX}_" \
   20         --symbolprefix "$PREFIX" $* \
   21         "$SRCDIR/src/$XML"
   22 }
   23 
   24 generate sbus/codegen/dbus.xml sbus/interface_dbus dbus
   25 generate sss_iface/sss_iface.xml sss_iface sss -i sss_iface/sss_iface_types.h "$SRCDIR/src/sss_iface/external_iface.xml"
   26 generate responder/ifp/ifp_iface/ifp_iface.xml responder/ifp/ifp_iface ifp -i responder/ifp/ifp_iface/ifp_iface_types.h