From: Wolfgang Denk Date: Thu, 16 Oct 2008 22:18:18 +0200 Subject: [U-Boot] [PATCH 1/1] add tool to check patch and file for CFG_ presence In-Reply-To: <1224184956-2864-1-git-send-email-plagnioj@jcrosoft.com> References: <20081016192014.31CA585EE1F3@gemini.denx.de> <1224184956-2864-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20081016201818.1FF1C85EE174@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jean-Christophe PLAGNIOL-VILLARD, In message <1224184956-2864-1-git-send-email-plagnioj@jcrosoft.com> you wrote: > > +find_config_errors: > + @echo "Search for config errors" > + @git-grep CFG_ | cut -d: -f1 | sort -u | xargs -I {} tools/find_config_errors -f {} > + Hm... should we not just use "grep -r *" so this will also work when we don't have a full git repository? And instead of running another process with "cut", a "-l" argument to grep (or even git-grep) would do the same? [Also note that "git-grep" is deprecated, "git grep" should be used instead.] I think we should change this into: grep -l -r * | xargs tools/find_config_errors -f What do you think? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de There are three ways to get something done: do it yourself, hire someone, or forbid your kids to do it.