Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aaf0aa3 authored by Chirayu Desai's avatar Chirayu Desai Committed by Gerrit Code Review
Browse files

Revert "build: Use newline at the end of echo to apkcerts file"

This reverts commit 99430f74.
parent 54f011a5
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -245,11 +245,6 @@ $(PACKAGE_STATS_FILE): $(PACKAGES_TO_STAT)
.PHONY: package-stats
package-stats: $(PACKAGE_STATS_FILE)

# makefile workaround to allow the insert of a newline
define \n


endef
# -----------------------------------------------------------------
# Cert-to-package mapping.  Used by the post-build signing tools.
name := $(TARGET_PRODUCT)
@@ -266,12 +261,12 @@ $(APKCERTS_FILE):
	@echo APK certs list: $@
	@mkdir -p $(dir $@)
	@rm -f $@
	$(hide) $(foreach p,$(PACKAGES),\
	$(hide) cd $(dir $@) && $(foreach p,$(PACKAGES),\
          $(if $(PACKAGES.$(p).EXTERNAL_KEY),\
	    echo 'name="$(p).apk" certificate="EXTERNAL" \
	         private_key=""' >> $@;${\n},\
	         private_key=""' >> $(notdir $@);,\
	    echo 'name="$(p).apk" certificate="$(PACKAGES.$(p).CERTIFICATE)" \
	         private_key="$(PACKAGES.$(p).PRIVATE_KEY)"' >> $@;${\n}))
	         private_key="$(PACKAGES.$(p).PRIVATE_KEY)"' >> $(notdir $@);))
	# In case $(PACKAGES) is empty.
	$(hide) touch $@