mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
5cdca5b1da
No installation diff, dist lost -zfs-2.1.99/cmd/fsck_zfs/fsck.zfs which was distributed erroneously, since it's generated Also clean gitrev on clean Also add -e 'any possible bashisms' to default checkbashisms flags, and fully parallelise it and shellcheck, and it works out-of-tree, too Also align the Release in the dist META file correctly Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13316
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
subst_sed_cmd = \
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
-e 's|@sbindir[@]|$(sbindir)|g' \
|
|
-e 's|@datadir[@]|$(datadir)|g' \
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
-e 's|@runstatedir[@]|$(runstatedir)|g' \
|
|
-e 's|@initconfdir[@]|$(initconfdir)|g' \
|
|
-e 's|@initdir[@]|$(initdir)|g' \
|
|
-e 's|@mounthelperdir[@]|$(mounthelperdir)|g' \
|
|
-e 's|@systemdgeneratordir[@]|$(systemdgeneratordir)|g' \
|
|
-e 's|@systemdunitdir[@]|$(systemdunitdir)|g' \
|
|
-e 's|@udevdir[@]|$(udevdir)|g' \
|
|
-e 's|@udevruledir[@]|$(udevruledir)|g' \
|
|
-e 's|@zfsexecdir[@]|$(zfsexecdir)|g' \
|
|
-e 's|@PYTHON[@]|$(PYTHON)|g' \
|
|
-e 's|@PYTHON_SHEBANG[@]|$(PYTHON_SHEBANG)|g' \
|
|
-e 's|@DEFAULT_INIT_NFS_SERVER[@]|$(DEFAULT_INIT_NFS_SERVER)|g' \
|
|
-e 's|@DEFAULT_INIT_SHELL[@]|$(DEFAULT_INIT_SHELL)|g' \
|
|
-e 's|@LIBFETCH_DYNAMIC[@]|$(LIBFETCH_DYNAMIC)|g' \
|
|
-e 's|@LIBFETCH_SONAME[@]|$(LIBFETCH_SONAME)|g' \
|
|
-e 's|@ASAN_ENABLED[@]|$(ASAN_ENABLED)|g' \
|
|
-e 's|@UBSAN_ENABLED[@]|$(UBSAN_ENABLED)|g'
|
|
|
|
define SUBST
|
|
$(1) : $(2)$(1).in Makefile;
|
|
$$(AM_V_GEN)set -e; \
|
|
$$(MKDIR_P) $$(@D); \
|
|
$$(RM) $$@~; \
|
|
$$(SED) $$(subst_sed_cmd) $$< >$$@~; \
|
|
if grep -E '@[a-zA-Z0-9_]+@' $$@~ >&2; then \
|
|
echo "Undefined substitution" >&2; \
|
|
exit 1; \
|
|
fi; \
|
|
[ -x $$< ] && chmod +x $$@~; \
|
|
mv -f $$@~ $$@
|
|
endef
|
|
|
|
SUBSTFILES =
|
|
CLEANFILES += $(SUBSTFILES)
|
|
EXTRA_DIST += $(SUBSTFILES:=.in)
|
|
|
|
$(call SUBST,%,)
|