[mythtv] Ticket #7010: ./cpsvndir causes errors with checkinstall for themes

David Engel david at istwok.net
Wed Sep 9 02:10:58 UTC 2009

On Tue, Sep 08, 2009 at 10:19:10PM +0100, Peter Stokes wrote:
> On 8 Sep 2009, at 17:19, David Engel wrote:
> using the "cp -R" during a second pass. The first pass only handles
> directories (by virtue of the "find -type d"), so that's fairly
> straight forward. The second pass processes all other files (by
> virtue of the "find ! -type d"), "cp -R" is then used in recursive
> mode, as none the filenames will correspond to directories the
> "recursivness" is not what is desirable. However, in recursive mode
> "cp" maintains symbolic links.

I don't see the need for two separate passes since directories are
checked for within the one loop.  As for the symlinks, wouldn't "-P"
be more appropriate?

> Whilst symbolic links are not currently being used in the current
> usage of cpsvndir, I personally use cpsvndir to "install" mythweb
> into the apache hosting directory and mythweb does contain a
> resource symbolic link ("mythplugins/mythweb/skins/grey/img/music").

Please try the current version in svn with "-P" or "-R" and let me
know if that works for you.

> Another concern I have thought of is that the "cpsimple" and
> "cpsvndir" scripts probably behave quiet differently now. But, as I
> have already hinted, I could not fathom the reason why the
> "cpsimple" script is required as the "cpsvndir" script appeared to
> work for me on Windows (but then again my original proposed
> "cpsvndir" script also "worked on my machine" ;-).

I'm going to leave the Windows stuff up to someone who actually uses
it.  I try my best, and usually succeed, to avoid it.

David Engel
david at istwok.net

More information about the mythtv-dev mailing list