Change in osmo-dev[master]: gen_makefile.py: fix echo: add -e to enable backslash escapes

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sun May 31 17:59:16 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-dev/+/18621 )


Change subject: gen_makefile.py: fix echo: add -e to enable backslash escapes
......................................................................

gen_makefile.py: fix echo: add -e to enable backslash escapes

I guess it's enabled by default in some distributions like Debian,
but at least for Arch Linux it needs to be enabled using '-e'.

Change-Id: Ie9c0657c9decb83bf8531ce1a0e97c27ee7008bb
---
M gen_makefile.py
1 file changed, 6 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/21/18621/1

diff --git a/gen_makefile.py b/gen_makefile.py
index 77af4c7..f76ebb0 100755
--- a/gen_makefile.py
+++ b/gen_makefile.py
@@ -171,21 +171,21 @@
 {proj}_files := $(shell find {src_proj} -name "*.[hc]" -or -name "*.py" -or -name "*.cpp" -or -name "*.tpl" -or -name "*.map")
 
 .make.{proj}.clone:
-	@echo "\n\n\n===== $@\n"
+	@echo -e "\n\n\n===== $@\n"
 	test -d {src} || mkdir -p {src}
 	test -d {src_proj} || ( git -C {src} clone "{url}/{proj}" "{proj}" && git -C "{src}/{proj}" remote set-url --push origin "{push_url}/{proj}" )
 	sync
 	touch $@
 
 .make.{proj}.autoconf: .make.{proj}.clone {src_proj}/configure.ac
-	@echo "\n\n\n===== $@\n"
+	@echo -e "\n\n\n===== $@\n"
 	-rm -f {src_proj}/.version
 	cd {src_proj}; autoreconf -fi
 	sync
 	touch $@
 	
 .make.{proj}.configure: .make.{proj}.autoconf {deps_installed} $({proj}_configure_files)
-	@echo "\n\n\n===== $@\n"
+	@echo -e "\n\n\n===== $@\n"
 	-chmod -R ug+w {build_proj}
 	-rm -rf {build_proj}
 	mkdir -p {build_proj}
@@ -194,13 +194,13 @@
 	touch $@
 
 .make.{proj}.build: .make.{proj}.configure $({proj}_files)
-	@echo "\n\n\n===== $@\n"
+	@echo -e "\n\n\n===== $@\n"
 	$(MAKE) -C {build_proj} -j {jobs} {check}
 	sync
 	touch $@
 
 .make.{proj}.install: .make.{proj}.build
-	@echo "\n\n\n===== $@\n"
+	@echo -e "\n\n\n===== $@\n"
 	{sudo_make_install}$(MAKE) -C {build_proj} install
 	{no_ldconfig}{sudo_ldconfig}ldconfig
 	sync
@@ -215,7 +215,7 @@
 
 .PHONY: {proj}-clean
 {proj}-clean:
-	@echo "\n\n\n===== $@\n"
+	@echo -e "\n\n\n===== $@\n"
 	-chmod -R ug+w {build_proj}
 	-rm -rf {build_proj}
 	-rm -rf .make.{proj}.*

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/18621
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Ie9c0657c9decb83bf8531ce1a0e97c27ee7008bb
Gerrit-Change-Number: 18621
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200531/9fa9f726/attachment.htm>


More information about the gerrit-log mailing list