installalias.c revision 943
1450N/A * Copyright (c) 1993, 2009, Oracle and/or its affiliates. All rights reserved. 1450N/A * Permission is hereby granted, free of charge, to any person obtaining a 1450N/A * copy of this software and associated documentation files (the "Software"), 1450N/A * to deal in the Software without restriction, including without limitation 1450N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1450N/A * and/or sell copies of the Software, and to permit persons to whom the 1450N/A * Software is furnished to do so, subject to the following conditions: 1450N/A * The above copyright notice and this permission notice (including the next 1450N/A * paragraph) shall be included in all copies or substantial portions of the 1450N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1450N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1450N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1450N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1450N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1450N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1450N/A * DEALINGS IN THE SOFTWARE. 1450N/A/* Code copied from libXfont is: 1450N/ACopyright 1991, 1998 The Open Group 1450N/APermission to use, copy, modify, distribute, and sell this software and its 1450N/Adocumentation for any purpose is hereby granted without fee, provided that 1450N/Athe above copyright notice appear in all copies and that both that 1450N/Acopyright notice and this permission notice appear in supporting 1450N/AThe above copyright notice and this permission notice shall be included in 1450N/Aall copies or substantial portions of the Software. 1450N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1450N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1450N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1450N/AOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 1450N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1450N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1450N/AExcept as contained in this notice, the name of The Open Group shall not be 1450N/Aused in advertising or otherwise to promote the sale, use or other dealings 1450N/Ain this Software without prior written authorization from The Open Group. 1450N/A * Ensure that a fonts.alias file only contains aliases for fonts that exist 1450N/A * We do this by first reading in the fonts.dir file and then for 1450N/A * each entry in the fonts.alias file we verify that the alias can 1450N/A * be resolved. Most this of this code is borrowed from 1450N/A * libXfont with minor modifications. 1450N/A/* Provide pseudo renderers for font file formats we may find in fonts.dir 1450N/A files during installation, but which libXfont does not support */ 1450N/A /* Match non XLFD pattern */ 1450N/A return;
/* fail silently -- if no alias file, we're done */ 1450N/A /* 4258475: don't add if the names are the same */ 1450N/A /* add this alias to list of known aliases */ 1450N/A ;
/* do nothing -- fail silently */