]> sourceware.org Git - lvm2.git/commitdiff
makefiles: avoid using # with awk
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Apr 2024 11:31:24 +0000 (13:31 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Apr 2024 12:52:23 +0000 (14:52 +0200)
Also awk got annoyed by this \# char sequence which is reported
as incorrect, however older rpm builder were failing without this.
So let's just try other variant.

udev/Makefile.in

index 7bf184947a053b892192b8ae0aac9643230a503f..166a4572ab7e7e5a8d9c0986abed0f409fe029a9 100644 (file)
@@ -20,7 +20,7 @@ include $(top_builddir)/make.tmpl
 DM_RULES=10-dm.rules 13-dm-disk.rules 95-dm-notify.rules
 LVM_RULES=11-dm-lvm.rules 69-dm-lvm.rules
 
-DM_DIR=$(shell $(AWK) '/\#define DM_DIR/ {print $$3}' $(top_srcdir)/libdm/misc/dm-ioctl.h)
+DM_DIR=$(shell $(AWK) '/^.define DM_DIR/ {print $$3}' $(top_srcdir)/libdm/misc/dm-ioctl.h)
 
 SYSTEMDRUN=@SYSTEMD_RUN_CMD@
 ifeq ("@UDEV_RULE_EXEC_DETECTION@", "yes")
This page took 0.037186 seconds and 5 git commands to generate.