use $(gb_AWK) instead of awk
Change-Id: Ia00d7e52de5edfce09c3a0a8aa4390e3e1582a01
This commit is contained in:
2
external/python3/ExternalProject_python3.mk
vendored
2
external/python3/ExternalProject_python3.mk
vendored
@@ -109,7 +109,7 @@ $(call gb_ExternalProject_get_state_target,python3,fixscripts) : $(call gb_Exter
|
||||
$(python3_fw_prefix)/Versions/$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)/bin/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)-config \
|
||||
$(python3_fw_prefix)/Versions/$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)/bin/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m-config \
|
||||
$(python3_fw_prefix)/Versions/$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)/bin/pyvenv-$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR) ; do \
|
||||
{ rm "$$file" && awk '\
|
||||
{ rm "$$file" && $(gb_AWK) '\
|
||||
BEGIN {print "#!/bin/bash\n\
|
||||
origpath=$$(pwd)\n\
|
||||
bindir=$$(cd $$(dirname \"$$0\") ; pwd)\n\
|
||||
|
@@ -594,17 +594,17 @@ $(call gb_CustomTarget_get_workdir,postprocess/registry)/Langpack-%.list :
|
||||
# zero-sized org/openoffice/TypeDectection/Filter.xcu; filter them out in the
|
||||
# find shell command below (see issue 110041):
|
||||
$(call gb_CustomTarget_get_workdir,postprocess/registry)/fcfg_langpack_%.list :
|
||||
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,2)
|
||||
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),AWK,2)
|
||||
$(call gb_Helper_abbreviate_dirs,\
|
||||
find $(call gb_XcuResTarget_get_target,fcfg_langpack/$*/)\
|
||||
-name *.xcu -size +0c \
|
||||
| awk 'BEGIN{print "<list>"} \
|
||||
| $(gb_AWK) 'BEGIN{print "<list>"} \
|
||||
{print "<filename>"$$0"</filename>"} \
|
||||
END {print "</list>"}' > $@ \
|
||||
)
|
||||
|
||||
$(call gb_CustomTarget_get_workdir,postprocess/registry)/registry_%.list :
|
||||
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,2)
|
||||
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),AWK,2)
|
||||
$(call gb_Helper_abbreviate_dirs,\
|
||||
find $(call gb_XcuResTarget_get_target,registry/$*/)\
|
||||
$(if $(filter DBCONNECTIVITY,$(BUILD_TYPE)),\
|
||||
@@ -613,7 +613,7 @@ $(call gb_CustomTarget_get_workdir,postprocess/registry)/registry_%.list :
|
||||
$(if $(filter TRUE,$(ENABLE_ONLINE_UPDATE)),\
|
||||
$(call gb_XcuResTarget_get_target,updchk/$*/))\
|
||||
-name *.xcu \
|
||||
| awk 'BEGIN{print "<list>"} \
|
||||
| $(gb_AWK) 'BEGIN{print "<list>"} \
|
||||
{print "<filename>"$$0"</filename>"} \
|
||||
END {print "</list>"}' > $@ \
|
||||
)
|
||||
|
@@ -45,8 +45,8 @@ define gb_Output_warn
|
||||
$(warning $(NEWLINE)[WARN $(2)] !!!$(NEWLINE)[WARN $(2)] !!! $(1)$(NEWLINE)[WARN $(2)] !!!)
|
||||
endef
|
||||
|
||||
gb_Output_ESCAPE := $(shell echo|awk 'BEGIN { printf "%c", 27 }' -)
|
||||
gb_Output_BELL := $(shell echo|awk 'BEGIN { printf "%c", 7 }' -)
|
||||
gb_Output_ESCAPE := $(shell echo|$(gb_AWK) 'BEGIN { printf "%c", 27 }' -)
|
||||
gb_Output_BELL := $(shell echo|$(gb_AWK) 'BEGIN { printf "%c", 7 }' -)
|
||||
|
||||
# only enable colorized output if
|
||||
# - gb_COLOR is set
|
||||
|
@@ -57,7 +57,7 @@ $(deb_WORKDIR)/%/DEBIAN/control: $(deb_SRCDIR)/control $(call gb_CustomTarget_ge
|
||||
sed 's/%productname/$(PRODUCTNAME.$*) $(PRODUCTVERSION)/' \
|
||||
>> $@
|
||||
echo "Version: $(PKGVERSION)-$(LIBO_VERSION_PATCH)" >>$@
|
||||
du -k -s $(deb_WORKDIR)/$* | awk -F ' ' '{ printf "Installed-Size: %s\n", $$1 ; }' >>$@
|
||||
du -k -s $(deb_WORKDIR)/$* | $(gb_AWK) -F ' ' '{ printf "Installed-Size: %s\n", $$1 ; }' >>$@
|
||||
|
||||
$(deb_WORKDIR)/%$(PKGVERSIONSHORT)-debian-menus_$(PKGVERSION)-$(LIBO_VERSION_PATCH)_all.deb: $(deb_WORKDIR)/%/DEBIAN/postrm $(deb_WORKDIR)/%/DEBIAN/postinst $(deb_WORKDIR)/%/DEBIAN/prerm $(deb_WORKDIR)/%/DEBIAN/control $(call gb_Library_get_target,getuid)
|
||||
|
||||
|
Reference in New Issue
Block a user