drop DU* config variables
Since DUFLAGS and DUPATH are not needed anymore remove them from the source Signed-off-by: Santiago Torres <santiago@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
bbfb75fd29
commit
226d2c1248
5 changed files with 0 additions and 28 deletions
|
@ -21,8 +21,6 @@ mode=$3
|
||||||
-e "s|@INODECMD[@]|@INODECMD@|g" \
|
-e "s|@INODECMD[@]|@INODECMD@|g" \
|
||||||
-e "s|@SEDINPLACEFLAGS[@]|@SEDINPLACEFLAGS@|g" \
|
-e "s|@SEDINPLACEFLAGS[@]|@SEDINPLACEFLAGS@|g" \
|
||||||
-e "s|@SEDPATH[@]|@SEDPATH@|g" \
|
-e "s|@SEDPATH[@]|@SEDPATH@|g" \
|
||||||
-e "s|@DUFLAGS[@]|@DUFLAGS@|g" \
|
|
||||||
-e "s|@DUPATH[@]|@DUPATH@|g" \
|
|
||||||
-e "s|@configure_input[@]|Generated from ${input##*/}; do not edit by hand.|g" \
|
-e "s|@configure_input[@]|Generated from ${input##*/}; do not edit by hand.|g" \
|
||||||
"$input" >"$output"
|
"$input" >"$output"
|
||||||
|
|
||||||
|
|
10
configure.ac
10
configure.ac
|
@ -345,7 +345,6 @@ AC_CHECK_MEMBERS([struct statfs.f_flags],,,[[#include <sys/param.h>
|
||||||
GCC_VISIBILITY_CC
|
GCC_VISIBILITY_CC
|
||||||
|
|
||||||
# Host-dependant definitions
|
# Host-dependant definitions
|
||||||
DEFAULT_DUFLAGS=" -sk --apparent-size"
|
|
||||||
DEFAULT_SEDINPLACEFLAGS=" --follow-symlinks -i"
|
DEFAULT_SEDINPLACEFLAGS=" --follow-symlinks -i"
|
||||||
INODECMD="stat -c '%i %n'"
|
INODECMD="stat -c '%i %n'"
|
||||||
STRIP_BINARIES="--strip-all"
|
STRIP_BINARIES="--strip-all"
|
||||||
|
@ -355,32 +354,23 @@ case "${host_os}" in
|
||||||
*bsd*)
|
*bsd*)
|
||||||
INODECMD="stat -f '%i %N'"
|
INODECMD="stat -f '%i %N'"
|
||||||
DEFAULT_SEDINPLACEFLAGS=" -i \"\""
|
DEFAULT_SEDINPLACEFLAGS=" -i \"\""
|
||||||
DEFAULT_DUFLAGS=" -sk"
|
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
host_os_darwin=yes
|
host_os_darwin=yes
|
||||||
INODECMD="/usr/bin/stat -f '%i %N'"
|
INODECMD="/usr/bin/stat -f '%i %N'"
|
||||||
DEFAULT_SEDINPLACEFLAGS=" -i ''"
|
DEFAULT_SEDINPLACEFLAGS=" -i ''"
|
||||||
DEFAULT_DUFLAGS=" -sk"
|
|
||||||
STRIP_BINARIES=""
|
STRIP_BINARIES=""
|
||||||
STRIP_SHARED="-S"
|
STRIP_SHARED="-S"
|
||||||
STRIP_STATIC="-S"
|
STRIP_STATIC="-S"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AM_CONDITIONAL([DARWIN], test "x$host_os_darwin" = "xyes")
|
AM_CONDITIONAL([DARWIN], test "x$host_os_darwin" = "xyes")
|
||||||
AC_PATH_PROGS([DUPATH], [du], [du], [/usr/bin$PATH_SEPARATOR/bin] )
|
|
||||||
AC_PATH_PROGS([SEDPATH], [sed], [sed], [/usr/bin$PATH_SEPARATOR/bin] )
|
AC_PATH_PROGS([SEDPATH], [sed], [sed], [/usr/bin$PATH_SEPARATOR/bin] )
|
||||||
AC_SUBST(INODECMD)
|
AC_SUBST(INODECMD)
|
||||||
AC_SUBST(STRIP_BINARIES)
|
AC_SUBST(STRIP_BINARIES)
|
||||||
AC_SUBST(STRIP_SHARED)
|
AC_SUBST(STRIP_SHARED)
|
||||||
AC_SUBST(STRIP_STATIC)
|
AC_SUBST(STRIP_STATIC)
|
||||||
|
|
||||||
# Flags for du
|
|
||||||
if test "${DUFLAGS+set}" != "set"; then
|
|
||||||
DUFLAGS="${DEFAULT_DUFLAGS}"
|
|
||||||
fi
|
|
||||||
AC_ARG_VAR(DUFLAGS, [flags for du, overriding the default])
|
|
||||||
|
|
||||||
# Flags for sed in place
|
# Flags for sed in place
|
||||||
if test "${SEDINPLACEFLAGS+set}" != "set"; then
|
if test "${SEDINPLACEFLAGS+set}" != "set"; then
|
||||||
SEDINPLACEFLAGS="${DEFAULT_SEDINPLACEFLAGS}"
|
SEDINPLACEFLAGS="${DEFAULT_SEDINPLACEFLAGS}"
|
||||||
|
|
11
meson.build
11
meson.build
|
@ -252,7 +252,6 @@ config_h = configure_file(
|
||||||
configuration : conf)
|
configuration : conf)
|
||||||
add_project_arguments('-include', 'config.h', language : 'c')
|
add_project_arguments('-include', 'config.h', language : 'c')
|
||||||
|
|
||||||
default_duflags = ' -sk --apparent-size'
|
|
||||||
default_sedinplaceflags = ' --follow-symlinks -i'
|
default_sedinplaceflags = ' --follow-symlinks -i'
|
||||||
inodecmd = 'stat -c \'%i %n\''
|
inodecmd = 'stat -c \'%i %n\''
|
||||||
strip_binaries = '--strip-all'
|
strip_binaries = '--strip-all'
|
||||||
|
@ -263,19 +262,12 @@ os = host_machine.system()
|
||||||
if os.startswith('darwin')
|
if os.startswith('darwin')
|
||||||
inodecmd = '/usr/bin/stat -f \'%i %n\''
|
inodecmd = '/usr/bin/stat -f \'%i %n\''
|
||||||
default_sedinplaceflags = ' -i \'\''
|
default_sedinplaceflags = ' -i \'\''
|
||||||
default_duflags = ' -sk'
|
|
||||||
strip_binaries = ''
|
strip_binaries = ''
|
||||||
strip_shared = '-s'
|
strip_shared = '-s'
|
||||||
strip_static = '-s'
|
strip_static = '-s'
|
||||||
elif os.contains('bsd') or os == 'dragonfly'
|
elif os.contains('bsd') or os == 'dragonfly'
|
||||||
inodecmd = 'stat -f \'%i %n\''
|
inodecmd = 'stat -f \'%i %n\''
|
||||||
default_sedinplaceflags = ' -i \'\''
|
default_sedinplaceflags = ' -i \'\''
|
||||||
default_duflags = ' -sk'
|
|
||||||
endif
|
|
||||||
|
|
||||||
duflags = get_option('duflags')
|
|
||||||
if duflags == 'autodetect'
|
|
||||||
duflags = default_duflags
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
sedinplaceflags = get_option('sedinplaceflags')
|
sedinplaceflags = get_option('sedinplaceflags')
|
||||||
|
@ -310,8 +302,6 @@ substs.set('DEBUGSUFFIX', get_option('debug-suffix'))
|
||||||
substs.set('INODECMD', inodecmd)
|
substs.set('INODECMD', inodecmd)
|
||||||
substs.set('SEDINPLACEFLAGS', sedinplaceflags)
|
substs.set('SEDINPLACEFLAGS', sedinplaceflags)
|
||||||
substs.set('SEDPATH', SED.path())
|
substs.set('SEDPATH', SED.path())
|
||||||
substs.set('DUFLAGS', duflags)
|
|
||||||
substs.set('DUPATH', DU.path())
|
|
||||||
substs.set('LIBMAKEPKGDIR', LIBMAKEPKGDIR)
|
substs.set('LIBMAKEPKGDIR', LIBMAKEPKGDIR)
|
||||||
substs.set('STRIP_BINARIES', strip_binaries)
|
substs.set('STRIP_BINARIES', strip_binaries)
|
||||||
substs.set('STRIP_SHARED', strip_shared)
|
substs.set('STRIP_SHARED', strip_shared)
|
||||||
|
@ -463,7 +453,6 @@ message('\n '.join([
|
||||||
' Architecture : @0@'.format(carch),
|
' Architecture : @0@'.format(carch),
|
||||||
' Host Type : @0@'.format(chost),
|
' Host Type : @0@'.format(chost),
|
||||||
' File inode command : @0@'.format(inodecmd),
|
' File inode command : @0@'.format(inodecmd),
|
||||||
' Directory size command : @0@ @1@'.format(DU.path(), duflags),
|
|
||||||
' In-place sed command : @0@ @1@'.format(SED.path(), sedinplaceflags),
|
' In-place sed command : @0@ @1@'.format(SED.path(), sedinplaceflags),
|
||||||
' libalpm version : @0@'.format(libalpm_version),
|
' libalpm version : @0@'.format(libalpm_version),
|
||||||
' pacman version : @0@'.format(PACKAGE_VERSION),
|
' pacman version : @0@'.format(PACKAGE_VERSION),
|
||||||
|
|
|
@ -54,8 +54,5 @@ option('i18n', type : 'boolean', value : true,
|
||||||
description : 'enable localization of pacman, libalpm and scripts')
|
description : 'enable localization of pacman, libalpm and scripts')
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
option('duflags', type : 'string', value : 'autodetect',
|
|
||||||
description : 'flags to pass to du to measure file size')
|
|
||||||
|
|
||||||
option('sedinplaceflags', type : 'string', value : 'auto',
|
option('sedinplaceflags', type : 'string', value : 'auto',
|
||||||
description : 'flags to pass to sed to edit a file in-place')
|
description : 'flags to pass to sed to edit a file in-place')
|
||||||
|
|
|
@ -176,8 +176,6 @@ edit = sed \
|
||||||
-e "s|@INODECMD[@]|$(INODECMD)|g" \
|
-e "s|@INODECMD[@]|$(INODECMD)|g" \
|
||||||
-e 's|@SEDINPLACEFLAGS[@]|$(SEDINPLACEFLAGS)|g' \
|
-e 's|@SEDINPLACEFLAGS[@]|$(SEDINPLACEFLAGS)|g' \
|
||||||
-e 's|@SEDPATH[@]|$(SEDPATH)|g' \
|
-e 's|@SEDPATH[@]|$(SEDPATH)|g' \
|
||||||
-e 's|@DUFLAGS[@]|$(DUFLAGS)|g' \
|
|
||||||
-e 's|@DUPATH[@]|$(DUPATH)|g' \
|
|
||||||
-e 's|@SCRIPTNAME[@]|$@|g' \
|
-e 's|@SCRIPTNAME[@]|$@|g' \
|
||||||
-e 's|@configure_input[@]|Generated from $<; do not edit by hand.|g'
|
-e 's|@configure_input[@]|Generated from $<; do not edit by hand.|g'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue