Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] customize package: odd copy construction
@ 2012-01-05 15:23 Thomas De Schampheleire
  2012-01-05 15:36 ` Thomas Petazzoni
  2012-01-06 12:47 ` Shawn J. Goff
  0 siblings, 2 replies; 11+ messages in thread
From: Thomas De Schampheleire @ 2012-01-05 15:23 UTC (permalink / raw)
  To: buildroot

Hi,

The customize uses an odd copy construction that I can't really explain:

        rm -f $(BUILD_DIR)/series
        (cd $(CUST_DIR); \
         /bin/ls -d * > $(BUILD_DIR)/series || \
         touch $(BUILD_DIR)/series )
        for f in `cat $(BUILD_DIR)/series`; do \
                cp -af $(CUST_DIR)/$$f $(TARGET_DIR); \
        done
        rm -f $(BUILD_DIR)/series

This was changed from:
        -cp -af $(CUST_DIR)/* $(TARGET_DIR)/

in the following commit:
http://git.buildroot.org/buildroot/commit/?id=06cc62f9cfbe43e9d31a07667a6af905b5f34a42

Why would you create a series file first if you're removing it
immediately afterwards?
Doesn't the original copy statement do exactly the same?

Thanks,
Thomas

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-01-12  8:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05 15:23 [Buildroot] customize package: odd copy construction Thomas De Schampheleire
2012-01-05 15:36 ` Thomas Petazzoni
2012-01-05 16:27   ` Michael S. Zick
2012-01-05 17:06     ` Thomas Petazzoni
2012-01-05 17:19       ` Michael S. Zick
2012-01-06  8:29   ` Thomas De Schampheleire
2012-01-11 17:24   ` Peter Korsgaard
     [not found]     ` <CAAXf6LX5xef3YE0zO0mDZxaFZ3s8NpfPU_jQaDxq0h-XCWOqxQ@mail.gmail.com>
2012-01-11 21:43       ` Peter Korsgaard
2012-01-12  8:17         ` Thomas De Schampheleire
2012-01-12  8:18           ` Peter Korsgaard
2012-01-06 12:47 ` Shawn J. Goff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox