1
0
forked from drath/libratbag

Change the sed replacement for meson's benefit

No functional changes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-04-06 17:28:47 +10:00
committed by bentiss
parent 8944353716
commit f5270e1539
4 changed files with 6 additions and 6 deletions

View File

@@ -91,14 +91,14 @@ unitdir = $(SYSTEMD_UNIT_DIR)
unit_DATA = ratbagd.service
$(unit_DATA): $(unit_DATA).in
$(AM_V_GEN)$(SED) -e 's|__BIN_PREFIX__|$(bindir)|g' < $< > $@
$(AM_V_GEN)$(SED) -e 's|@bindir@|$(bindir)|g' < $< > $@
dbusservicedir = $(DBUS_SYSTEM_SERVICES_DIR)
dbusservice_DATA = dbus/org.freedesktop.ratbag1.service
$(dbusservice_DATA): $(dbusservice_DATA).in
$(AM_V_GEN)$(MKDIR_P) dbus
$(AM_V_GEN)$(SED) -e 's|__BIN_PREFIX__|$(bindir)|g' < $< > $@
$(AM_V_GEN)$(SED) -e 's|@bindir@|$(bindir)|g' < $< > $@
dbusconfigdir = $(DBUS_SYSTEM_CONFIG_DIR)
dbusconfig_DATA = dbus/org.freedesktop.ratbag1.conf
@@ -119,7 +119,7 @@ bin_SCRIPTS = \
python/ratbagctl: python/ratbagctl.py
$(AM_V_GEN)$(MKDIR_P) python
$(AM_V_GEN)$(SED) -e "s/__VERSION__/$(PACKAGE_VERSION)/" < $^ > $@
$(AM_V_GEN)$(SED) -e "s/@version@/$(PACKAGE_VERSION)/" < $^ > $@
EXTRA_DIST += python/ratbagctl.py
BUILT_SOURCES += python/ratbagctl

View File

@@ -1,5 +1,5 @@
[D-BUS Service]
Name=org.freedesktop.ratbag1
Exec=__BIN_PREFIX__/ratbagd
Exec=@bindir@/ratbagd
User=root
SystemdService=dbus-org.freedesktop.ratbag1.service

View File

@@ -154,7 +154,7 @@ def show_button(r, args):
def make_parser():
parser = argparse.ArgumentParser(description="Inspect and modify configurable mice")
parser.add_argument("-V", "--version", action="version", version="__VERSION__")
parser.add_argument("-V", "--version", action="version", version="@version@")
subs = parser.add_subparsers(title="COMMANDS", help=None)
list = subs.add_parser("list-devices", help="List available configurable mice")

View File

@@ -4,7 +4,7 @@ Description=Daemon to introspect and modify configurable mice
[Service]
Type=dbus
BusName=org.freedesktop.ratbag1
ExecStart=__BIN_PREFIX__/ratbagd
ExecStart=@bindir@/ratbagd
Restart=on-abort
[Install]