EnglishFrenchSpanish

OnWorks favicon

tp-magic-config - Online in the Cloud

Run tp-magic-config in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command tp-magic-config that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


tp-magic-config -- Helps creating 'Magic' tool plugins for Tux Paint(1)

SYNOPSYS


tp-magic-config [--apiversion | --version | --cflags | --pluginprefix | --plugindocprefix
| --dataprefix | --localpluginprefix | --localdataprefix]

DESCRIPTION


tp-magic-config is a simple shell script that responds with various pieces of information
about the currently-installed version of Tux Paint(1) that are useful when building
'Magic' tool plugins.

OPTIONS


--apiversion
Outputs the version of the Tux Paint 'Magic' tool plugin API that the installed
copy of Tux Paint supports. (For API compatibility testing.)

--version
Outputs the version of Tux Paint that tp-magic-config corresponds to.

--cflags
Outputs the compiler flags that Tux Paint 'Magic' tool plugins should be compiled
with. (For example, a "-I" include path option that tells the compiler where it
can find the plugin API header file, "tp_magic_config.h", that plugins must
#include.)

--pluginprefix
Outputs the system directory where the installed copy of Tux Paint expects to find
'Magic' tool plugins (".so" shared objects). (e.g.,
"/usr/share/tuxpaint/plugins")

--localpluginprefix
Outputs the user directory where the installed copy of Tux Paint expects to find
'Magic' tool plugins (".so" shared objects). (e.g.,
"/home/username/.tuxpaint/plugins")

--plugindocprefix
Outputs the directory where the installed copy of Tux Paint expects to find
documentation for 'Magic' tool plugins (".html" and ".txt" files). Tux Paint's
main documentation includes a link to this directory under the section on "Magic"
tools.

--dataprefix
Outputs the system directory where the installed copy of Tux Paint keeps its
global data files (e.g., "/usr/share/tuxpaint/"). This is the same value that
plugins installed system-wide will receive in the "data_directory" string within
the "magic_api" structure sent to the plugins' functions.

--localdataprefix
Outputs the user directory where the installed copy of Tux Paint expects plugins
to install their local data files. (e.g.,
"/home/username/.tuxpaint/plugins/data"). This is the same value that plugins
installed locally will receive in the "data_directory" string within the
"magic_api" structure sent to the plugins' functions.

SYSTEM-WIDE SHELL EXAMPLES


$ gcc -shared `tp-magic-config --cflags` my_plugin.c -o my_plugin.so
# cp my_plugin.so `tp-magic-config --pluginprefix`
# cp my_plugin_icon.png `tp-magic-config --dataprefix`/images/magic
# cp my_plugin.html `tp-magic-config --plugindocrefix`/html
# cp my_plugin.txt `tp-magic-config --plugindocrefix`

LOCAL SHELL EXAMPLES


$ gcc -shared `tp-magic-config --cflags` my_plugin.c -o my_plugin.so
$ mkdir -p `tp-magic-config --localpluginprefix`
$ cp my_plugin.so `tp-magic-config --localpluginprefix`
$ mkdir -p `tp-magic-config --localdataprefix`/images/magic
$ cp my_plugin_icon.png `tp-magic-config --localdataprefix`/images/magic

SYSTEM-WIDE MAKEFILE EXAMPLE


MAGIC_CFLAGS=$(shell tp-magic-config --cflags)
MAGIC_PREFIX=$(shell tp-magic-config --pluginprefix)
MAGIC_DOC_PREFIX=$(shell tp-magic-config --plugindocprefix)
DATA_PREFIX=$(shell tp-magic-config --dataprefix)

all: my_plugin.so

my_plugin.so: my_plugin.c

install: install-so install-data install-docs

install-so:
mkdir -p $(MAGIC_PREFIX)
cp my_plugin.so $(MAGIC_PREFIX)/
chmod 644 $(MAGIC_PREFIX)/my_plugin.so

install-data:
mkdir -p $(DATA_PREFIX)
cp icons/my_plugin_icon.png $(DATA_PREFIX)/images/magic/
chmod 644 $(DATA_PREFIX)/images/magic/my_plugin_icon.png

install-docs:
mkdir -p $(MAGIC_DOC_PREFIX)
cp docs/my_plugin.html $(MAGIC_DOC_PREFIX)/html/
chmod 644 $(MAGIC_DOC_PREFIX)/html/my_plugin.html
cp docs/my_plugin.txt $(MAGIC_DOC_PREFIX)/
chmod 644 $(MAGIC_DOC_PREFIX)/my_plugin.txt

Use tp-magic-config online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad