On 29/03/2009, at 18:10, Ebrahim Mayat wrote:
> I would like to add the key-value pair for the *.icns file into the
> Info.plist file of an application bundle.

(snip)

> touch application.app/Contents/Info.plist

Is it possible that Info.plist already exists or are you always  
creating a new one?

> sed -e "s/<key>CFBundleIconFile<\/key> <string>application.icns<\/
> string>//" application.app/Contents/Info.plist
>
> The last command only adds the following lines to Info.plist:
>
> <dict>
>       <key>CFBundleIconFile</key>
>       <string></string>
>
> i.e. the name "application.icns" is not inserted.


As far as I understand, your sed command actually "erases" the line  
"<key>CFBundlIconFile</key> <string>application.icns</string>" – the  
first expression between forward slashes is what sed should look for  
and the second expression is what sed should replace with, which is  
null in your example.

Which package are you working on?


--
monipol


------------------------------------------------------------------------------
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to