Change in osmo-dev[master]: gen_makefile.py: fix find errors

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/.

osmith gerrit-no-reply at lists.osmocom.org
Tue Dec 14 08:17:50 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/26543 )

Change subject: gen_makefile.py: fix find errors
......................................................................

gen_makefile.py: fix find errors

Don't print find errors if not all dirs were cloned. Found this also
while running osmo-dev on a fresh install.

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

Approvals:
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved; Verified



diff --git a/gen_makefile.py b/gen_makefile.py
index 7c780a5..9eb2d94 100755
--- a/gen_makefile.py
+++ b/gen_makefile.py
@@ -177,7 +177,7 @@
     -name "Makefile.am" \
     -or -name "*.in" \
     -and -not -name "Makefile.in" \
-    -and -not -name "config.h.in" )
+    -and -not -name "config.h.in" 2>/dev/null)
 {proj}_files := $(shell find {src_proj} \
     \( \
       -name "*.[hc]" \
@@ -186,7 +186,7 @@
       -or -name "*.tpl" \
       -or -name "*.map" \
     \) \
-    -and -not -name "config.h")
+    -and -not -name "config.h" 2>/dev/null)
 
 .make.{proj}.clone:
 	@echo -e "\n\n\n===== $@\n"

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

Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I7955fedc96484e5703073b63906a03477452db6e
Gerrit-Change-Number: 26543
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211214/bb25173e/attachment.htm>


More information about the gerrit-log mailing list