[mythtv] [mythtv-commits] Ticket#1699: Patchfor MythMusicandMythweb
Colin Guthrie
mythtv at colin.guthr.ie
Sun Apr 16 23:35:54 UTC 2006
joggl wrote:
> but the problem is that there are also binary files... (images...)
Ahh I see.
Assuming the binary files don't have spaces or other weird characters in
their names you could try doing something like the following.
svn diff | grep "Property changes on" | cut -d':' -f2 | xargs tar cjf
binary_files.tar.bz2
That should grep the diff for a certain line that appears when you add a
binary file to svn which reads:
Property changes on: test/test.jpg
Assuming you can type:
tar cjf new_archive.tar.bz2 path/to/files
(where c means create archive, j means bzip2 compress it and f means
write this file).
If your tar doesn't work like that then this should work too:
svn diff | grep "Property changes on" | cut -d':' -f2 | xargs tar c |
bzip2 >binary_files.tar.bz2
If you then supply both the diff (which will contain the changes in the
existing files and the new text files) and the binary_files archive
(that, obviously enough, will contain all the binary files).
I think this will please everyone :)
Hope that helps.
Col
--
+------------------------+
| Colin Guthrie |
+------------------------+
| myth(at)colin.guthr.ie |
| http://colin.guthr.ie/ |
+------------------------+
More information about the mythtv-dev
mailing list