#!/bin/sh # $Id: gen_schema.sh 59 2006-11-06 09:49:56Z mmmaddd $ # G3DViewer - 3D object viewer # # Copyright (C) 2005, 2006 Markus Dahms # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA schemafile=g3d-thumbnailer.schema > $schemafile add_schema () { cat >> $schemafile < /schemas/desktop/gnome/thumbnailers/$1/enable /desktop/gnome/thumbnailers/$1/enable g3dviewer bool true Enable thumbnailing of $2 models Boolean options available, true enables thumbnailing and false disables the creation of new thumbnails /schemas/desktop/gnome/thumbnailers/$1/command /desktop/gnome/thumbnailers/$1/command g3dviewer string g3d-thumbnailer %i %o %s Thumbnail command for $2 models Valid command plus arguments for the $2 document thumbnailer. See nautilus thumbnailer documentation for more information. EOD } cat >> $schemafile < EOD add_schema "image@x-3dmf" "3DMF" add_schema "image@x-3ds" "3DS" add_schema "image@x-ac3d" "AC3D" add_schema "image@x-cob" "COB" add_schema "image@x-dxf" "DXF" add_schema "image@x-iob" "IOB" add_schema "image@x-vdrift" "VDrift" add_schema "image@x-lcd" "LCD" add_schema "image@x-lwo" "LWO" #add_schema "image@x-lws" "LWS" add_schema "image@x-md2" "MD2" add_schema "image@x-md3" "MD3" add_schema "image@x-nff" "NFF" add_schema "image@x-obj" "OBJ" add_schema "image@x-q3d" "Q3D" add_schema "image@x-vrml" "VRML" cat >> $schemafile < EOD