Re: binary files in diff

2006-11-09 Thread Frank Küster
Jaldhar H. Vyas [EMAIL PROTECTED] wrote: On Wed, 8 Nov 2006, Darren Salt wrote: I demand that Frank Gevaerts may or may not have written... I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ?

Re: binary files in diff

2006-11-09 Thread Stefan Fritsch
Note perl has the ability to uudecode and encode builtin (perldoc -f pack or unpack and look at the u option.) As perl is an essential package, by using it you can save yourself a needless dependency. Ah, that's great. Can you give a short usage example - I would then prepare a patch for

Re: binary files in diff

2006-11-09 Thread Frank Küster
Jaldhar H. Vyas [EMAIL PROTECTED] wrote: On Thu, 9 Nov 2006, Frank Küster wrote: Jaldhar H. Vyas [EMAIL PROTECTED] wrote: Note perl has the ability to uudecode and encode builtin (perldoc -f pack or unpack and look at the u option.) As perl is an essential package, by using it you can

Re: binary files in diff

2006-11-09 Thread Jaldhar H. Vyas
On Thu, 9 Nov 2006, Frank Küster wrote: Thank you, that's nice. Oh, well, for the non-Perlmaniacs it might be confusing that two functions are called after the other, and hard to understand that print just prints the result of the pack or unpack function. Is perl -ne 'print(pack u, $_);'

Re: binary files in diff

2006-11-09 Thread Frank Küster
Jaldhar H. Vyas [EMAIL PROTECTED] wrote: On Thu, 9 Nov 2006, Frank Küster wrote: Thank you, that's nice. Oh, well, for the non-Perlmaniacs it might be confusing that two functions are called after the other, and hard to understand that print just prints the result of the pack or unpack

binary files in diff

2006-11-08 Thread Frank Gevaerts
Hi, I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? Frank -- Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are,

Re: binary files in diff

2006-11-08 Thread Nelson A. de Oliveira
Hi! On 11/8/06, Frank Gevaerts [EMAIL PROTECTED] wrote: I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? Use uuencode. See

Re: binary files in diff

2006-11-08 Thread Loïc Minier
On Wed, Nov 08, 2006, Frank Gevaerts wrote: I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? One way specific to png is to use sng to ship a .sng and convert it to .png at build-time. For

Re: binary files in diff

2006-11-08 Thread Bart Martens
On Wed, 2006-11-08 at 21:01 +0100, Frank Gevaerts wrote: Hi, I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? The sharutils package contains uuencode and uudecode. You can uuencode the icon,

Re: binary files in diff

2006-11-08 Thread Alexander Schmehl
Hi! * Frank Gevaerts [EMAIL PROTECTED] [061108 21:01]: I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? The normal way to do this, is to add it uuencoded to the diff, and uudecode it during

Re: binary files in diff

2006-11-08 Thread Darren Salt
I demand that Frank Gevaerts may or may not have written... I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? UUcode seems to be the usual way (needs sharutils). -- | Darren Salt| linux or ds

Re: binary files in diff

2006-11-08 Thread Frank Gevaerts
On Wed, Nov 08, 2006 at 09:41:18PM +0100, Alexander Schmehl wrote: Hi! * Frank Gevaerts [EMAIL PROTECTED] [061108 21:01]: I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? The normal way

Re: binary files in diff

2006-11-08 Thread Charles Plessy
Le Wed, Nov 08, 2006 at 09:01:12PM +0100, Frank Gevaerts a écrit : Hi, I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? If it is for the Debian or the FreeDesktop menu, the xpm format is also

Re: binary files in diff

2006-11-08 Thread Andrea Bolognani
On Wed, 8 Nov 2006 21:01:12 +0100 Frank Gevaerts [EMAIL PROTECTED] wrote: Hi, I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? If you need this icon for a menu entry, then you should convert it

Re: binary files in diff

2006-11-08 Thread Jaldhar H. Vyas
On Wed, 8 Nov 2006, Darren Salt wrote: I demand that Frank Gevaerts may or may not have written... I need to add a binary file (a png icon) to my package. What is the best way to do this, since the normal .diff generation does not support this ? UUcode seems to be the usual way (needs