Replace config/config.awk with simple sed invocation
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13316
This commit is contained in:
parent
ea04cc4a22
commit
eaf94bda6c
|
@ -37,7 +37,6 @@ extra_HEADERS = zfs.release.in zfs_config.h.in
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_DIST += autogen.sh copy-builtin
|
EXTRA_DIST += autogen.sh copy-builtin
|
||||||
EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
|
|
||||||
EXTRA_DIST += AUTHORS CODE_OF_CONDUCT.md COPYRIGHT LICENSE META NEWS NOTICE
|
EXTRA_DIST += AUTHORS CODE_OF_CONDUCT.md COPYRIGHT LICENSE META NEWS NOTICE
|
||||||
EXTRA_DIST += README.md RELEASES.md
|
EXTRA_DIST += README.md RELEASES.md
|
||||||
EXTRA_DIST += module/lua/README.zfs module/os/linux/spl/README.md
|
EXTRA_DIST += module/lua/README.zfs module/os/linux/spl/README.md
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
# Remove default preprocessor define's from config.h
|
|
||||||
# PACKAGE
|
|
||||||
# PACKAGE_BUGREPORT
|
|
||||||
# PACKAGE_NAME
|
|
||||||
# PACKAGE_STRING
|
|
||||||
# PACKAGE_TARNAME
|
|
||||||
# PACKAGE_VERSION
|
|
||||||
# STDC_HEADERS
|
|
||||||
# VERSION
|
|
||||||
|
|
||||||
BEGIN { RS = "" ; FS = "\n" } \
|
|
||||||
!/.#define PACKAGE./ && \
|
|
||||||
!/.#define VERSION./ && \
|
|
||||||
!/.#define STDC_HEADERS./ \
|
|
||||||
{ print $0"\n" }
|
|
|
@ -40,10 +40,10 @@ AC_CANONICAL_TARGET
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
AM_INIT_AUTOMAKE([subdir-objects foreign])
|
AM_INIT_AUTOMAKE([subdir-objects foreign])
|
||||||
|
# Remove default macros from config.h:
|
||||||
|
# PACKAGE, PACKAGE_{BUGREPORT,NAME,STRING,TARNAME,VERSION}, STDC_HEADERS, VERSION
|
||||||
AC_CONFIG_HEADERS([zfs_config.h], [
|
AC_CONFIG_HEADERS([zfs_config.h], [
|
||||||
(mv zfs_config.h zfs_config.h.tmp &&
|
sed -nEi~ -e '/^$/be' -e 'N;N;/#define (PACKAGE|VERSION|STDC_HEADERS)/d' -e ':e' -e 'p' zfs_config.h && rm zfs_config.h~ || exit])
|
||||||
awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
|
|
||||||
rm zfs_config.h.tmp) || exit 1])
|
|
||||||
|
|
||||||
LT_INIT
|
LT_INIT
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
Loading…
Reference in New Issue