Kaydet (Commit) 84129743 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

split records for awks little brain (also improve readability)

üst 2fc62f63
...@@ -34,8 +34,13 @@ $(call gb_RdbTarget_get_target,%) : ...@@ -34,8 +34,13 @@ $(call gb_RdbTarget_get_target,%) :
mkdir -p $(dir $@) && \ mkdir -p $(dir $@) && \
echo '<?xml version="1.0"?><components xmlns="http://openoffice.org/2010/uno-components">' > $@ && \ echo '<?xml version="1.0"?><components xmlns="http://openoffice.org/2010/uno-components">' > $@ && \
$(gb_AWK) -- \ $(gb_AWK) -- \
'/^<\?xml version.*/ { next; } \ ' BEGIN { RS=">"; } \
{ gsub(/vnd.sun.star.expand:\$$OOO_BASE_DIR\/program/, "vnd.sun.star.expand:$$OOO_BASE_DIR",$$0); gsub(/vnd.sun.star.expand:\$$BRAND_BASE_DIR\/program/, "vnd.sun.star.expand:$$BRAND_BASE_DIR",$$0); print; }' \ /^<\?xml version.*/ { next; } \
/.*[^\r\n\t\s].*/ { \
gsub(/vnd.sun.star.expand:\$$OOO_BASE_DIR\/program/, "vnd.sun.star.expand:$$OOO_BASE_DIR",$$0); \
gsub(/vnd.sun.star.expand:\$$BRAND_BASE_DIR\/program/, "vnd.sun.star.expand:$$BRAND_BASE_DIR",$$0); \
print $$0 ">"; \
}' \
$(foreach component,$(COMPONENTS),$(call gb_ComponentTarget_get_target,$(component))) \ $(foreach component,$(COMPONENTS),$(call gb_ComponentTarget_get_target,$(component))) \
$(foreach component,$(OLD_COMPONENTS),$(call gb_RdbTarget__get_old_component_target,$(component))) \ $(foreach component,$(OLD_COMPONENTS),$(call gb_RdbTarget__get_old_component_target,$(component))) \
>> $@ && \ >> $@ && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment