public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OT: Copy directories in a special manner
@ 2011-02-05  7:05 meino.cramer
  2011-02-05  8:22 ` Paul Colquhoun
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: meino.cramer @ 2011-02-05  7:05 UTC (permalink / raw
  To: Gentoo



Hi,

 I want to do the following as fast as possible and with less
 system load as possible:

 There are two directories called 'source' and 'target'.

 'source' gets updated via 'svn up', then it gets compiled.
 Since there is no "make install" or similiar, installation
 is done via copying 'source' to 'target'. A symlink from
 /usr/local/bin/<name> to the compiled executabe in (now) 
 'target' completes the installation.

 BUT:
 'source' is a VERY big directory and copying it to 'target'
 after each svn up is a PAIN.

 Now I need a copy mechanism which does the following:
 * copy all files with newer date to 'target' -- this can be done via
   'cp -u'
 * copy all files which only exist in 'source' to 'target' --
   this can be done also with 'cp -u'
 * BUT: Delete all files from 'target' which do not longer exist in 
   'source'

 The last point gives me headaches. Scanning both directory after 
 'cp -u' has done its job may take as long as a "blind copy" from
 'source' to 'target' after 'target' was initially removed.

 Is there any "lean method" to do what is described above ?

 Thank you very much for any help in advance!
 Best regards,
 mcc




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

end of thread, other threads:[~2011-02-05 11:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-05  7:05 [gentoo-user] OT: Copy directories in a special manner meino.cramer
2011-02-05  8:22 ` Paul Colquhoun
2011-02-05 11:19   ` meino.cramer
2011-02-05  9:06 ` [gentoo-user] " Nikos Chantziaras
2011-02-05 10:33   ` Florian Philipp
2011-02-05  9:50 ` [gentoo-user] " Neil Bothwick

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