]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit,meson: drop .in suffix if no substitution is required (#8740)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Apr 2018 17:49:10 +0000 (02:49 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Apr 2018 17:49:10 +0000 (19:49 +0200)
units/console-getty.service.m4 [moved from units/console-getty.service.m4.in with 100% similarity]
units/container-getty@.service.m4 [moved from units/container-getty@.service.m4.in with 100% similarity]
units/meson.build
units/system-update-cleanup.service [moved from units/system-update-cleanup.service.in with 100% similarity]

index dac8feb27c0926995d114a2988ac04c943a0a1cc..5e454ab3b18046124d1373afd0233bbd7f621987 100644 (file)
@@ -79,6 +79,7 @@ units = [
         ['sysinit.target',                      ''],
         ['syslog.socket',                       ''],
         ['system-update.target',                ''],
+        ['system-update-cleanup.service',       ''],
         ['systemd-ask-password-console.path',   '',
          'sysinit.target.wants/'],
         ['systemd-ask-password-wall.path',      '',
@@ -127,7 +128,6 @@ in_units = [
         ['quotaon.service',                      'ENABLE_QUOTACHECK'],
         ['rc-local.service',                     'HAVE_SYSV_COMPAT'],
         ['rescue.service',                       ''],
-        ['system-update-cleanup.service',        ''],
         ['systemd-ask-password-console.service', ''],
         ['systemd-ask-password-wall.service',    ''],
         ['systemd-backlight@.service',           'ENABLE_BACKLIGHT'],
@@ -222,28 +222,14 @@ in_units = [
 ]
 
 m4_units = [
+        ['console-getty.service',              ''],
+        ['container-getty@.service',           ''],
         ['getty@.service',                     '',
          'autovt@.service ' +
          join_paths(pkgsysconfdir, 'system/getty.target.wants/getty@tty1.service')],
         ['serial-getty@.service',              ''],
 ]
 
-m4_in_units = [
-        ['console-getty.service',              ''],
-        ['container-getty@.service',           ''],
-]
-
-foreach tuple : m4_in_units
-        file = tuple[0]
-
-        gen = configure_file(
-                input : file + '.m4.in',
-                output : file + '.m4',
-                configuration : substs)
-
-        m4_units += [[file, tuple.get(1, ''), tuple.get(2, ''), gen]]
-endforeach
-
 foreach tuple : in_units
         file = tuple[0]