Skip to content

Commit

Permalink
Fix generation of systemd unit file
Browse files Browse the repository at this point in the history
@sbindir@ wants us to do shell expansion, too. Use the same trick we use
for manpages to accomplish that here -- in fact, symlink in the shell
script snippet.
  • Loading branch information
yoe committed Jun 23, 2016
1 parent 661a540 commit c0ead25
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -233,7 +233,7 @@ AC_CONFIG_FILES([Makefile
man/nbd-trdump.1.sh
man/nbdtab.5.sh
systemd/Makefile
systemd/nbd@.service
systemd/nbd@.service.sh
])
AC_OUTPUT

7 changes: 7 additions & 0 deletions systemd/Makefile.am
Expand Up @@ -2,3 +2,10 @@
#systemdunitdir = $(DESTDIR)/$(SYSTEMDLOC)
#systemdunit_DATA = nbd@.service
#endif

nbd@.service: nbd@.service.sh
sh nbd@.service.sh > nbd@.service

nbd@.service.sh.in: nbd@.service.tmpl sh.tmpl
cat sh.tmpl nbd@.service.tmpl > nbd@.service.sh.in
echo EOF >> nbd@.service.sh.in
File renamed without changes.
1 change: 1 addition & 0 deletions systemd/sh.tmpl

0 comments on commit c0ead25

Please sign in to comment.