First pass at script to build start menu icons

Brian E. Gallew geek@burri.to
Fri Aug 8 15:31:00 GMT 2003


Harold L Hunt II wrote:
> The list of programs to create icons for is embedded in the script 
> itself.  The script will still work, since I just copy the whole thing 
> to /etc/postinstall/XWin-bin-icons.sh.  However, I was thinking about 
> how we should probably install this script in /usr/X11R6/bin and the 
> list of icons in some other location. 

Well, it's trivially easy for me to extract the variables into a file, 
e.g., /etc/X11/icon-list, and then dot it in the script.

> Furthermore, having the list of icons in a plain text 
> file would allow the creation of a preremove script that (is this 
> possible?) did a diff between the old icon list and the new icon list to 
> find out which icons were being specifically removed between versions.

Possible, sure, but probably too much work.  Instead, how about having 
the preremove script simply remove all the icons it created?  Then the 
new one would create a new set of icons and all would be well!

Also, it would be pretty easy to add the remove functionality.  In fact, 
here's another version!  The icon-list file goes in /etc/X11.  If you 
add a "-d" to the command, it purges only the icons it created, AND any 
empty directories under there.

> Thanks for contributing Brian, I really appreciate it.

It's the least I can do.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin-icons.sh
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20030808/23f59851/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: icon-list
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20030808/23f59851/attachment-0001.ksh>


More information about the Cygwin-xfree mailing list