X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fgen-gdbus-interfaces.sh;h=0d74aa2cefaa6f6cc59d2be6f30d5c7175d47305;hb=86cb77279934d78b941aa6d3712d0e6aa45806c2;hp=1e44b356024ea558370b04eb34154ace940d2941;hpb=50b26156fcf6a828fe47174f4432b4f31d9b798d;p=systembsd.git diff --git a/scripts/gen-gdbus-interfaces.sh b/scripts/gen-gdbus-interfaces.sh index 1e44b35..0d74aa2 100755 --- a/scripts/gen-gdbus-interfaces.sh +++ b/scripts/gen-gdbus-interfaces.sh @@ -5,12 +5,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ && pwd )" if [[ -z "$1" ]]; then echo "syntax: ./gen-dbus-interfaces " exit 1 +elif [[ "$1" != "hostnamed" && "$1" != "localed" && "$1" != "timedated" && "$1" != "logind" ]]; then + echo " must be 'hostnamed', 'localed', 'timedated', or 'logind'" + exit 1 fi gdbus-codegen \ --interface-prefix org.freedesktop. \ --generate-docbook doc/$1-docbook.xml \ --generate-c-code src/interfaces/$1/$1-gen \ ---c-namespace SystemdUtils \ conf/$1-ispect.xml +echo "success" +exit 0