desktop-mime-cache revision 5887
165N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. 165N/A# Permission is hereby granted, free of charge, to any person obtaining a 165N/A# copy of this software and associated documentation files (the 165N/A# "Software"), to deal in the Software without restriction, including 165N/A# without limitation the rights to use, copy, modify, merge, publish, 165N/A# distribute, and/or sell copies of the Software, and to permit persons 165N/A# to whom the Software is furnished to do so, provided that the above 165N/A# copyright notice(s) and this permission notice appear in all copies of 165N/A# the Software and that both the above copyright notice(s) and this 165N/A# permission notice appear in supporting documentation. 165N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 165N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 165N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 165N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 165N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 165N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 165N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 1627N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 165N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 165N/A# Except as contained in this notice, the name of a copyright holder 165N/A# shall not be used in advertising or otherwise to promote the sale, use 1627N/A# or other dealings in this Software without prior written authorization 618N/A# of the copyright holder. 165N/A########################################################################### 165N/A# IF the mime cache exist then : 165N/A# get the list of mime type files newer than the cache file 165N/A# make list greater than zero to generate a cache 165N/A echo "update-desktop-database not installed" 165N/A echo "updating desktop file cache" 165N/A echo "update-mime-database exited with an error while generating the desktop file cache $MIMEFILE" 165N/A echo "update-desktop-database not installed" 165N/A echo "updating desktop file cache" 165N/A echo "update-mime-database exited with an error while generating the desktop file cache $MIMEFILE" # Continue with rest of script