]> Lady’s Gitweb - Shushe/commitdiff
Fix typeoffile
authorLady <redacted>
Wed, 22 May 2024 04:26:34 +0000 (00:26 -0400)
committerLady <redacted>
Wed, 22 May 2024 04:26:34 +0000 (00:26 -0400)
The old implementation switched some things around and probably would
not work if called with multiple files (it never was).

GNUmakefile

index 6779aa72cf85f91c978bae7db2bd89aa9b13f5a2..f4161de21b6ca209a154e1bd19ccdda69d15ff82 100644 (file)
@@ -359,7 +359,7 @@ override plaintextfiles := $(filter-out $(xmlfiles),$(call filesoftype,$(plainte
 override assetfiles := $(filter-out $(xmlfiles) $(plaintextfiles),$(sourcefiles) $(sourceincludes))
 
 # (callable) Get the types of the given files.
-override typeoffile = $(patsubst $(foreach file,$1,$(file)|%),%,$(filter $(foreach file,$1,$(file)|%),$(types)))
+override typeoffile = $(foreach file,$1,$(patsubst $(file)|%,%,$(filter $(file)|%,$(types))))
 
 # Pair each source magic file with its location in the build directory.
 override magicpair := $(foreach magicfile,$(MAGIC),$(magicfile)|$(BUILDDIR)/magic/$(notdir $(magicfile)))
This page took 0.024948 seconds and 4 git commands to generate.