1#!/bin/sh 2 3# tp-magic-config 4 5# "Tux Paint Magic Config" 6# Tool that reports compiler options used when buidling Magic Tool 7# shared objects for Tux Paint 8 9# (c) Copyright 2007, by Bill Kendrick 10# bill@newbreedsoftware.com 11# http://www.tuxpaint.org/ 12 13# This program is free software; you can redistribute it and/or modify 14# it under the terms of the GNU General Public License as published by 15# the Free Software Foundation; either version 2 of the License, or 16# (at your option) any later version. 17# 18# This program is distributed in the hope that it will be useful, 19# but WITHOUT ANY WARRANTY; without even the implied warranty of 20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21# GNU General Public License for more details. 22# 23# You should have received a copy of the GNU General Public License 24# along with this program; if not, write to the Free Software 25# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26# (See COPYING.txt) 27 28# Note: "__VERSION__", "__APIVERSION__", "__INCLUDE__", 29# "__PLUGINPREFIX__", "__PLUGINDOCPREFIX__" and "__DATAPREFIX__" are replaced 30# by values in Tux Paint's Makefile, via 'sed', by the 'make tp-magic-config' 31# target. 32 33# July 5, 2007 - August 2, 2007 34 35 36if [ $# -ne 0 ]; then 37 if [ $1 = "--version" ]; then 38 echo "__VERSION__" 39 exit 40 fi 41 if [ $1 = "--apiversion" ]; then 42 echo "__APIVERSION__" 43 exit 44 fi 45 if [ $1 = "--cflags" ]; then 46 echo `sdl-config --cflags` -I__INCLUDE__ 47 exit 48 fi 49 if [ $1 = "--dataprefix" ]; then 50 echo "__DATAPREFIX__" 51 exit 52 fi 53 if [ $1 = "--localdataprefix" ]; then 54 echo "$HOME/.tuxpaint/plugins/data" 55 exit 56 fi 57 if [ $1 = "--pluginprefix" ]; then 58 echo "__PLUGINPREFIX__" 59 exit 60 fi 61 if [ $1 = "--localpluginprefix" ]; then 62 echo "$HOME/.tuxpaint/plugins" 63 exit 64 fi 65 if [ $1 = "--plugindocprefix" ]; then 66 echo "__PLUGINDOCPREFIX__" 67 exit 68 fi 69fi 70 71echo "Usage: tp-magic-config [--apiversion | --version | --cflags | --pluginprefix | --plugindocprefix | --dataprefix]" 72 73