git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/potracegui@1101754 283d02a7-25f6-0310-bc7c-ecb5cbfe19dav3.5.13-sru
commit
a39b92f278
@ -0,0 +1,44 @@
|
|||||||
|
1.2 -> 1.3
|
||||||
|
* Internationalization support
|
||||||
|
* German translation
|
||||||
|
|
||||||
|
1.1 -> 1.2
|
||||||
|
* Potracegui now supports autotrace!!
|
||||||
|
* Now if an image is traced to an undisplayable format (i.e. Gimp path or SVG) you can "save as..." (in the older version you could not sue to a silly bug)
|
||||||
|
|
||||||
|
1.0 -> 1.1
|
||||||
|
|
||||||
|
* Added scrollbars for the images, now they are not strangely resized anymore
|
||||||
|
* Changed slightly the layout of the options: now the window is much smaller, so it can be viewed ad lower resolutions (it should be usable at 800x600). Thanks for the idea to Michał Kosmulski
|
||||||
|
* Now it builds on FreeBSD 4.x. Thanks to Markus Brueffer
|
||||||
|
|
||||||
|
0.5.1 -> 1.0
|
||||||
|
|
||||||
|
* New major version
|
||||||
|
* Interface totally changed to SDI
|
||||||
|
* The changes all too many to be listed here. Launch the program yourself and poke around!!!
|
||||||
|
|
||||||
|
0.5 -> 0.5.1
|
||||||
|
|
||||||
|
[Bug report from Yannick Roehlly]
|
||||||
|
* fixed compilation problem (wrong .ui file)
|
||||||
|
|
||||||
|
0.4 -> 0.5
|
||||||
|
|
||||||
|
[Patches from Jakub Stachowski]
|
||||||
|
* Preview windows remains open after tracing the image
|
||||||
|
* Fixed a memory leak when calling the settings dialog
|
||||||
|
* Added drag and drop support
|
||||||
|
|
||||||
|
0.3 -> 0.4
|
||||||
|
|
||||||
|
[Patches from Jakub Stachowski]
|
||||||
|
* fixed a memory leak (QPixmap allocated and never deallocated)
|
||||||
|
* fixed a race condition in potrace execution
|
||||||
|
* Potracegui now uses any image format recognized by KDE
|
||||||
|
* Potracegui can use remote files
|
||||||
|
|
||||||
|
0.2 -> 0.3
|
||||||
|
|
||||||
|
* Updated potracegui to work with potrace 1.3
|
||||||
|
* Changed the options dialog to reflect potrace changes
|
@ -0,0 +1,248 @@
|
|||||||
|
# Doxyfile 1.3.5-KDevelop
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Project related configuration options
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
PROJECT_NAME = potracegui.kdevelop
|
||||||
|
PROJECT_NUMBER = 1.3
|
||||||
|
OUTPUT_DIRECTORY =
|
||||||
|
OUTPUT_LANGUAGE = English
|
||||||
|
USE_WINDOWS_ENCODING = NO
|
||||||
|
BRIEF_MEMBER_DESC = YES
|
||||||
|
REPEAT_BRIEF = YES
|
||||||
|
ABBREVIATE_BRIEF = "The $name class" \
|
||||||
|
"The $name widget" \
|
||||||
|
"The $name file" \
|
||||||
|
is \
|
||||||
|
provides \
|
||||||
|
specifies \
|
||||||
|
contains \
|
||||||
|
represents \
|
||||||
|
a \
|
||||||
|
an \
|
||||||
|
the
|
||||||
|
ALWAYS_DETAILED_SEC = NO
|
||||||
|
INLINE_INHERITED_MEMB = NO
|
||||||
|
FULL_PATH_NAMES = NO
|
||||||
|
STRIP_FROM_PATH = /
|
||||||
|
SHORT_NAMES = NO
|
||||||
|
JAVADOC_AUTOBRIEF = NO
|
||||||
|
MULTILINE_CPP_IS_BRIEF = NO
|
||||||
|
DETAILS_AT_TOP = NO
|
||||||
|
INHERIT_DOCS = YES
|
||||||
|
DISTRIBUTE_GROUP_DOC = NO
|
||||||
|
TAB_SIZE = 8
|
||||||
|
ALIASES =
|
||||||
|
OPTIMIZE_OUTPUT_FOR_C = NO
|
||||||
|
OPTIMIZE_OUTPUT_JAVA = NO
|
||||||
|
SUBGROUPING = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Build related configuration options
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
EXTRACT_ALL = NO
|
||||||
|
EXTRACT_PRIVATE = NO
|
||||||
|
EXTRACT_STATIC = NO
|
||||||
|
EXTRACT_LOCAL_CLASSES = YES
|
||||||
|
HIDE_UNDOC_MEMBERS = NO
|
||||||
|
HIDE_UNDOC_CLASSES = NO
|
||||||
|
HIDE_FRIEND_COMPOUNDS = NO
|
||||||
|
HIDE_IN_BODY_DOCS = NO
|
||||||
|
INTERNAL_DOCS = NO
|
||||||
|
CASE_SENSE_NAMES = YES
|
||||||
|
HIDE_SCOPE_NAMES = NO
|
||||||
|
SHOW_INCLUDE_FILES = YES
|
||||||
|
INLINE_INFO = YES
|
||||||
|
SORT_MEMBER_DOCS = YES
|
||||||
|
SORT_BRIEF_DOCS = NO
|
||||||
|
SORT_BY_SCOPE_NAME = NO
|
||||||
|
GENERATE_TODOLIST = YES
|
||||||
|
GENERATE_TESTLIST = YES
|
||||||
|
GENERATE_BUGLIST = YES
|
||||||
|
GENERATE_DEPRECATEDLIST= YES
|
||||||
|
ENABLED_SECTIONS =
|
||||||
|
MAX_INITIALIZER_LINES = 30
|
||||||
|
SHOW_USED_FILES = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to warning and progress messages
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
QUIET = NO
|
||||||
|
WARNINGS = YES
|
||||||
|
WARN_IF_UNDOCUMENTED = YES
|
||||||
|
WARN_IF_DOC_ERROR = YES
|
||||||
|
WARN_FORMAT = "$file:$line: $text"
|
||||||
|
WARN_LOGFILE =
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the input files
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
INPUT = /home/timi/Documents/Informatik/Programme/tracing/guis/potracegui/in-Arbeit/erfolg7/potracegui
|
||||||
|
FILE_PATTERNS = *.c \
|
||||||
|
*.cc \
|
||||||
|
*.cxx \
|
||||||
|
*.cpp \
|
||||||
|
*.c++ \
|
||||||
|
*.java \
|
||||||
|
*.ii \
|
||||||
|
*.ixx \
|
||||||
|
*.ipp \
|
||||||
|
*.i++ \
|
||||||
|
*.inl \
|
||||||
|
*.h \
|
||||||
|
*.hh \
|
||||||
|
*.hxx \
|
||||||
|
*.hpp \
|
||||||
|
*.h++ \
|
||||||
|
*.idl \
|
||||||
|
*.odl \
|
||||||
|
*.cs \
|
||||||
|
*.php \
|
||||||
|
*.php3 \
|
||||||
|
*.inc \
|
||||||
|
*.C \
|
||||||
|
*.H \
|
||||||
|
*.tlh \
|
||||||
|
*.diff \
|
||||||
|
*.patch \
|
||||||
|
*.moc \
|
||||||
|
*.xpm \
|
||||||
|
*.dox
|
||||||
|
RECURSIVE = yes
|
||||||
|
EXCLUDE =
|
||||||
|
EXCLUDE_SYMLINKS = NO
|
||||||
|
EXCLUDE_PATTERNS =
|
||||||
|
EXAMPLE_PATH =
|
||||||
|
EXAMPLE_PATTERNS = *
|
||||||
|
EXAMPLE_RECURSIVE = NO
|
||||||
|
IMAGE_PATH =
|
||||||
|
INPUT_FILTER =
|
||||||
|
FILTER_SOURCE_FILES = NO
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to source browsing
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
SOURCE_BROWSER = NO
|
||||||
|
INLINE_SOURCES = NO
|
||||||
|
STRIP_CODE_COMMENTS = YES
|
||||||
|
REFERENCED_BY_RELATION = YES
|
||||||
|
REFERENCES_RELATION = YES
|
||||||
|
VERBATIM_HEADERS = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the alphabetical class index
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
ALPHABETICAL_INDEX = NO
|
||||||
|
COLS_IN_ALPHA_INDEX = 5
|
||||||
|
IGNORE_PREFIX =
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the HTML output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_HTML = YES
|
||||||
|
HTML_OUTPUT = html
|
||||||
|
HTML_FILE_EXTENSION = .html
|
||||||
|
HTML_HEADER =
|
||||||
|
HTML_FOOTER =
|
||||||
|
HTML_STYLESHEET =
|
||||||
|
HTML_ALIGN_MEMBERS = YES
|
||||||
|
GENERATE_HTMLHELP = NO
|
||||||
|
CHM_FILE =
|
||||||
|
HHC_LOCATION =
|
||||||
|
GENERATE_CHI = NO
|
||||||
|
BINARY_TOC = NO
|
||||||
|
TOC_EXPAND = NO
|
||||||
|
DISABLE_INDEX = NO
|
||||||
|
ENUM_VALUES_PER_LINE = 4
|
||||||
|
GENERATE_TREEVIEW = NO
|
||||||
|
TREEVIEW_WIDTH = 250
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the LaTeX output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_LATEX = YES
|
||||||
|
LATEX_OUTPUT = latex
|
||||||
|
LATEX_CMD_NAME = latex
|
||||||
|
MAKEINDEX_CMD_NAME = makeindex
|
||||||
|
COMPACT_LATEX = NO
|
||||||
|
PAPER_TYPE = a4wide
|
||||||
|
EXTRA_PACKAGES =
|
||||||
|
LATEX_HEADER =
|
||||||
|
PDF_HYPERLINKS = NO
|
||||||
|
USE_PDFLATEX = NO
|
||||||
|
LATEX_BATCHMODE = NO
|
||||||
|
LATEX_HIDE_INDICES = NO
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the RTF output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_RTF = NO
|
||||||
|
RTF_OUTPUT = rtf
|
||||||
|
COMPACT_RTF = NO
|
||||||
|
RTF_HYPERLINKS = NO
|
||||||
|
RTF_STYLESHEET_FILE =
|
||||||
|
RTF_EXTENSIONS_FILE =
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the man page output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_MAN = NO
|
||||||
|
MAN_OUTPUT = man
|
||||||
|
MAN_EXTENSION = .3
|
||||||
|
MAN_LINKS = NO
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the XML output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_XML = yes
|
||||||
|
XML_OUTPUT = xml
|
||||||
|
XML_SCHEMA =
|
||||||
|
XML_DTD =
|
||||||
|
XML_PROGRAMLISTING = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options for the AutoGen Definitions output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_AUTOGEN_DEF = NO
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the Perl module output
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
GENERATE_PERLMOD = NO
|
||||||
|
PERLMOD_LATEX = NO
|
||||||
|
PERLMOD_PRETTY = YES
|
||||||
|
PERLMOD_MAKEVAR_PREFIX =
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Configuration options related to the preprocessor
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
ENABLE_PREPROCESSING = YES
|
||||||
|
MACRO_EXPANSION = NO
|
||||||
|
EXPAND_ONLY_PREDEF = NO
|
||||||
|
SEARCH_INCLUDES = YES
|
||||||
|
INCLUDE_PATH =
|
||||||
|
INCLUDE_FILE_PATTERNS =
|
||||||
|
PREDEFINED =
|
||||||
|
EXPAND_AS_DEFINED =
|
||||||
|
SKIP_FUNCTION_MACROS = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Configuration::additions related to external references
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
TAGFILES =
|
||||||
|
GENERATE_TAGFILE =
|
||||||
|
ALLEXTERNALS = NO
|
||||||
|
EXTERNAL_GROUPS = YES
|
||||||
|
PERL_PATH = /usr/bin/perl
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Configuration options related to the dot tool
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
CLASS_DIAGRAMS = YES
|
||||||
|
HIDE_UNDOC_RELATIONS = YES
|
||||||
|
HAVE_DOT = NO
|
||||||
|
CLASS_GRAPH = YES
|
||||||
|
COLLABORATION_GRAPH = YES
|
||||||
|
UML_LOOK = NO
|
||||||
|
TEMPLATE_RELATIONS = NO
|
||||||
|
INCLUDE_GRAPH = YES
|
||||||
|
INCLUDED_BY_GRAPH = YES
|
||||||
|
CALL_GRAPH = NO
|
||||||
|
GRAPHICAL_HIERARCHY = YES
|
||||||
|
DOT_IMAGE_FORMAT = png
|
||||||
|
DOT_PATH =
|
||||||
|
DOTFILE_DIRS =
|
||||||
|
MAX_DOT_GRAPH_WIDTH = 1024
|
||||||
|
MAX_DOT_GRAPH_HEIGHT = 1024
|
||||||
|
MAX_DOT_GRAPH_DEPTH = 1000
|
||||||
|
GENERATE_LEGEND = YES
|
||||||
|
DOT_CLEANUP = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Configuration::additions related to the search engine
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
SEARCHENGINE = NO
|
@ -0,0 +1,167 @@
|
|||||||
|
Basic Installation
|
||||||
|
==================
|
||||||
|
|
||||||
|
These are generic installation instructions.
|
||||||
|
|
||||||
|
The `configure' shell script attempts to guess correct values for
|
||||||
|
various system-dependent variables used during compilation. It uses
|
||||||
|
those values to create a `Makefile' in each directory of the package.
|
||||||
|
It may also create one or more `.h' files containing system-dependent
|
||||||
|
definitions. Finally, it creates a shell script `config.status' that
|
||||||
|
you can run in the future to recreate the current configuration, a file
|
||||||
|
`config.cache' that saves the results of its tests to speed up
|
||||||
|
reconfiguring, and a file `config.log' containing compiler output
|
||||||
|
(useful mainly for debugging `configure').
|
||||||
|
|
||||||
|
If you need to do unusual things to compile the package, please try
|
||||||
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
diffs or instructions to the address given in the `README' so they can
|
||||||
|
be considered for the next release. If at some point `config.cache'
|
||||||
|
contains results you don't want to keep, you may remove or edit it.
|
||||||
|
|
||||||
|
The file `configure.in' is used to create `configure' by a program
|
||||||
|
called `autoconf'. You only need `configure.in' if you want to change
|
||||||
|
it or regenerate `configure' using a newer version of `autoconf'.
|
||||||
|
|
||||||
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
|
1. `cd' to the directory containing the package's source code and type
|
||||||
|
`./configure' to configure the package for your system. If you're
|
||||||
|
using `csh' on an old version of System V, you might need to type
|
||||||
|
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||||
|
`configure' itself.
|
||||||
|
|
||||||
|
Running `configure' takes a while. While running, it prints some
|
||||||
|
messages telling which features it is checking for.
|
||||||
|
|
||||||
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
|
3. Type `make install' to install the programs and any data files and
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
4. You can remove the program binaries and object files from the
|
||||||
|
source code directory by typing `make clean'.
|
||||||
|
|
||||||
|
Compilers and Options
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Some systems require unusual options for compilation or linking that
|
||||||
|
the `configure' script does not know about. You can give `configure'
|
||||||
|
initial values for variables by setting them in the environment. Using
|
||||||
|
a Bourne-compatible shell, you can do that on the command line like
|
||||||
|
this:
|
||||||
|
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||||
|
|
||||||
|
Or on systems that have the `env' program, you can do it like this:
|
||||||
|
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||||
|
|
||||||
|
Compiling For Multiple Architectures
|
||||||
|
====================================
|
||||||
|
|
||||||
|
You can compile the package for more than one kind of computer at the
|
||||||
|
same time, by placing the object files for each architecture in their
|
||||||
|
own directory. To do this, you must use a version of `make' that
|
||||||
|
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||||
|
directory where you want the object files and executables to go and run
|
||||||
|
the `configure' script. `configure' automatically checks for the
|
||||||
|
source code in the directory that `configure' is in and in `..'.
|
||||||
|
|
||||||
|
If you have to use a `make' that does not supports the `VPATH'
|
||||||
|
variable, you have to compile the package for one architecture at a time
|
||||||
|
in the source code directory. After you have installed the package for
|
||||||
|
one architecture, use `make distclean' before reconfiguring for another
|
||||||
|
architecture.
|
||||||
|
|
||||||
|
Installation Names
|
||||||
|
==================
|
||||||
|
|
||||||
|
By default, `make install' will install the package's files in
|
||||||
|
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||||
|
installation prefix other than `/usr/local' by giving `configure' the
|
||||||
|
option `--prefix=PATH'.
|
||||||
|
|
||||||
|
You can specify separate installation prefixes for
|
||||||
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||||
|
PATH as the prefix for installing programs and libraries.
|
||||||
|
Documentation and other data files will still use the regular prefix.
|
||||||
|
|
||||||
|
If the package supports it, you can cause programs to be installed
|
||||||
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
`README' should mention any `--enable-' and `--with-' options that the
|
||||||
|
package recognizes.
|
||||||
|
|
||||||
|
For packages that use the X Window System, `configure' can usually
|
||||||
|
find the X include and library files automatically, but if it doesn't,
|
||||||
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Specifying the System Type
|
||||||
|
==========================
|
||||||
|
|
||||||
|
There may be some features `configure' can not figure out
|
||||||
|
automatically, but needs to determine by the type of host the package
|
||||||
|
will run on. Usually `configure' can figure that out, but if it prints
|
||||||
|
a message saying it can not guess the host type, give it the
|
||||||
|
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||||
|
type, such as `sun4', or a canonical name with three fields:
|
||||||
|
CPU-COMPANY-SYSTEM
|
||||||
|
|
||||||
|
See the file `config.sub' for the possible values of each field. If
|
||||||
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
need to know the host type.
|
||||||
|
|
||||||
|
If you are building compiler tools for cross-compiling, you can also
|
||||||
|
use the `--target=TYPE' option to select the type of system they will
|
||||||
|
produce code for and the `--build=TYPE' option to select the type of
|
||||||
|
system on which you are compiling the package.
|
||||||
|
|
||||||
|
Sharing Defaults
|
||||||
|
================
|
||||||
|
|
||||||
|
If you want to set default values for `configure' scripts to share,
|
||||||
|
you can create a site shell script called `config.site' that gives
|
||||||
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
A warning: not all `configure' scripts look for a site script.
|
||||||
|
|
||||||
|
Operation Controls
|
||||||
|
==================
|
||||||
|
|
||||||
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
|
`--cache-file=FILE'
|
||||||
|
Use and save the results of the tests in FILE instead of
|
||||||
|
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||||
|
debugging `configure'.
|
||||||
|
|
||||||
|
`--help'
|
||||||
|
Print a summary of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--quiet'
|
||||||
|
`--silent'
|
||||||
|
`-q'
|
||||||
|
Do not print messages saying which checks are being made.
|
||||||
|
|
||||||
|
`--srcdir=DIR'
|
||||||
|
Look for the package's source code in directory DIR. Usually
|
||||||
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`--version'
|
||||||
|
Print the version of Autoconf used to generate the `configure'
|
||||||
|
script, and exit.
|
||||||
|
|
||||||
|
`configure' also accepts some other, not widely useful, options.
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
SUBDIRS = $(TOPSUBDIRS)
|
||||||
|
|
||||||
|
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
|
||||||
|
|
||||||
|
$(top_srcdir)/subdirs:
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
|
||||||
|
|
||||||
|
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
|
||||||
|
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
|
||||||
|
|
||||||
|
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||||
|
|
||||||
|
package-messages:
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages
|
||||||
|
$(MAKE) -C po merge
|
||||||
|
|
||||||
|
EXTRA_DIST = admin COPYING configure.in.in
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||||
|
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
@ -0,0 +1,10 @@
|
|||||||
|
all:
|
||||||
|
@echo "This Makefile is only for the CVS repository"
|
||||||
|
@echo "This will be deleted before making the distribution"
|
||||||
|
@echo ""
|
||||||
|
$(MAKE) -f admin/Makefile.common cvs
|
||||||
|
|
||||||
|
dist:
|
||||||
|
$(MAKE) -f admin/Makefile.common dist
|
||||||
|
|
||||||
|
.SILENT:
|
@ -0,0 +1,27 @@
|
|||||||
|
Potracegui is a GUI interface for potrace (http://potrace.sourceforge.net), and autotrace (http://autotrace.sourceforge.net/), two programs for tracing bitmapped images.
|
||||||
|
|
||||||
|
-=What does it do?=-
|
||||||
|
Not much at all ;)
|
||||||
|
All the dirt work is done by potrace and autotrace, my app is only an interface: it collects informations in an easy way (hopefully) and then it launches the backend with all the relevant options. Potrace and autotrace, on the contrary, are great apps for tracing: they transform a bitmap image in a vector one (.eps or .svg format as an example) so that they can be scaled, rotated, and transformed in general, without loss of quality (this isn't an accurate description of potrace. For full details and a real description visit their websites).
|
||||||
|
|
||||||
|
-=So why should I use Potracegui?=-
|
||||||
|
Well, using a GUI sometimes is more comfortable (particularly if working with images), even if I'm a strong supporter of command-line programs.
|
||||||
|
On the other hand, Potracegui (thanks to Jakub Stachowski) can now load remote files (web, ftp...), use any image format recognizeb by KDE (potrace uses only a few bitmapped formats) and support drag and drop.
|
||||||
|
|
||||||
|
|
||||||
|
-=A note about dependancies=-
|
||||||
|
|
||||||
|
I'm using kde 3.3.2 and QT 3.3.3 (and SuSE 9.1, but it is so patched that it is quite unrecognizable) for development.
|
||||||
|
Potracegui builds without problem with these versions, but it should do so even if you are using older versions of QT and kde (QT >= 3.3.x and kde >= 3.2.x).
|
||||||
|
I also understand that it builds under FreeBSD 4.x, even if I have never tried personally.
|
||||||
|
|
||||||
|
If you are able to build it in other distros/versions/O.S please let me know.
|
||||||
|
|
||||||
|
|
||||||
|
-=Dirty tricks=-
|
||||||
|
|
||||||
|
If building potracegui you get an error complaining about a version of qt too old, when processing user interface files (*.ui), it may be possible that you can build it anyway. Try opening MainWidgetBase.ui in the src subdirectory: in the first line yu will find the tag
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Try changing the version value to that of your QT installation, and rebuild the project. It may work or it may not, but it's worth a try.
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,102 @@
|
|||||||
|
## generate API documentation with doxygen
|
||||||
|
apidox-am-yes:
|
||||||
|
@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$DOXDATA" ; then \
|
||||||
|
export DOXDATA=$(kde_libs_htmldir)/en/common ; \
|
||||||
|
fi ; \
|
||||||
|
abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
|
||||||
|
test -d $(top_builddir)/apidocs || \
|
||||||
|
( cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
|
||||||
|
--no-modulename --installdir=$(kde_libs_htmldir)/en \
|
||||||
|
--no-recurse $(abs_top_srcdir) . ) ; \
|
||||||
|
cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
|
||||||
|
--recurse --no-modulename --installdir=$(kde_libs_htmldir)/en \
|
||||||
|
$$abs_top_srcdir $(subdir)
|
||||||
|
|
||||||
|
apidox-am-toplevel-yes:
|
||||||
|
@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$ADMIN" ; then \
|
||||||
|
export DOXDATA=$(kde_libs_htmldir)/en/common ; \
|
||||||
|
fi ; \
|
||||||
|
abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
|
||||||
|
cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
|
||||||
|
--no-modulename --installdir=$(kde_libs_htmldir)/en \
|
||||||
|
$$abs_top_srcdir
|
||||||
|
|
||||||
|
## Don't generate API documentation without doxygen
|
||||||
|
apidox-am-no:
|
||||||
|
|
||||||
|
apidox-am-toplevel-no:
|
||||||
|
|
||||||
|
|
||||||
|
apidox:
|
||||||
|
@if test "$(subdir)" != "."; then \
|
||||||
|
$(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
|
||||||
|
else \
|
||||||
|
$(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
install-data-local: install-apidox
|
||||||
|
|
||||||
|
## install API documentation
|
||||||
|
install-apidox:
|
||||||
|
@if test "$(subdir)" != "."; then \
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html ; \
|
||||||
|
if test -f $(top_builddir)/apidocs/$(subdir)/$(subdir).tag; then \
|
||||||
|
echo $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
|
||||||
|
$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
|
||||||
|
fi; \
|
||||||
|
if test -d $(top_builddir)/apidocs/$(subdir)/html; then \
|
||||||
|
list=`ls $(top_builddir)/apidocs/$(subdir)/html`; \
|
||||||
|
echo "installing $(top_builddir)/apidocs/$(subdir)/html" ;\
|
||||||
|
for file in $$list; do \
|
||||||
|
$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
|
||||||
|
done; \
|
||||||
|
fi; \
|
||||||
|
else\
|
||||||
|
if test -d $(top_builddir)/apidocs; then \
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs ;\
|
||||||
|
list=`cd $(top_builddir)/apidocs && ls -1`; \
|
||||||
|
echo "installing $(top_builddir)/apidocs/$$file" ;\
|
||||||
|
echo "target directory $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs" ; \
|
||||||
|
for file in $$list; do \
|
||||||
|
if test -f $(top_builddir)/apidocs/$$file; then \
|
||||||
|
$(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
|
||||||
|
fi; \
|
||||||
|
done ; fi; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
uninstall-local: uninstall-apidox
|
||||||
|
|
||||||
|
## uninstall API documentation
|
||||||
|
uninstall-apidox:
|
||||||
|
@if test "$(subdir)" != "."; then \
|
||||||
|
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
|
||||||
|
rm -rf $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
|
||||||
|
fi \
|
||||||
|
else \
|
||||||
|
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
|
||||||
|
rm -rf $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
|
||||||
|
fi \
|
||||||
|
fi
|
||||||
|
|
||||||
|
install-apidox-recurse: install-apidox
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
|
||||||
|
list='$(SUBDIRS)'; \
|
||||||
|
for subdir in $$list; do \
|
||||||
|
if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am > /dev/null ; then \
|
||||||
|
echo "Installing apidox from $$subdir"; \
|
||||||
|
if test "$$subdir" != "."; then \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=no install-apidox-recurse) || exit 1; \
|
||||||
|
fi ; fi ;\
|
||||||
|
done; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: apidox-am-yes apidox-am-no install-data-local install-apidox install-apidox uninstall-local uninstall-apidox uninstall-apidox apidox apidox-am-toplevel-no apidox-am-toplevel-yes
|
||||||
|
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: makefile
|
||||||
|
# End:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,37 @@
|
|||||||
|
### Makefile.common
|
||||||
|
###
|
||||||
|
### Copyright (C) 2002 by the KDE developers
|
||||||
|
|
||||||
|
### All the real work is done by the shellscript cvs.sh
|
||||||
|
|
||||||
|
SHELL=/bin/sh
|
||||||
|
|
||||||
|
cvs dist configure configure.in configure.files subdirs package-messages package-merge Makefile.am acinclude.m4 extract-messages:
|
||||||
|
@admindir=$(admindir); \
|
||||||
|
if test "x$$admindir" = x; then \
|
||||||
|
admindir=.; until test -f $$admindir/admin/cvs.sh; do \
|
||||||
|
admindir=$$admindir/..; \
|
||||||
|
if test `cd $$admindir && pwd` = / ; then break; fi; \
|
||||||
|
done; \
|
||||||
|
admindir=$$admindir/admin; \
|
||||||
|
if test -f $$admindir/cvs.sh; then :; else \
|
||||||
|
echo "Can't find the admin/ directory in any parent of the"; \
|
||||||
|
echo "current directory. Please set it with admindir=..."; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
if test "$@" = "package-merge"; then \
|
||||||
|
MAKE="$(MAKE)" POFILES="$(POFILES)" PACKAGE="$(PACKAGE)" \
|
||||||
|
$(SHELL) $$admindir/cvs.sh package-merge ;\
|
||||||
|
else \
|
||||||
|
MAKE="$(MAKE)" $(SHELL) $$admindir/cvs.sh $@ ;\
|
||||||
|
fi
|
||||||
|
|
||||||
|
configure.in: configure.files subdirs
|
||||||
|
configure.files: subdirs
|
||||||
|
|
||||||
|
svn: cvs
|
||||||
|
|
||||||
|
.SILENT:
|
||||||
|
|
||||||
|
.PHONY: svn cvs dist package-merge package-messages
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,157 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
use DB_File;
|
||||||
|
use Fcntl ':flock';
|
||||||
|
|
||||||
|
if (!defined($ARGV[0])) {
|
||||||
|
print "usage: requires .class dump as parameter!\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub bailout
|
||||||
|
{
|
||||||
|
untie %bcheckdb if(defined(%bcheckdb));
|
||||||
|
|
||||||
|
if(defined(MYLOCK)) {
|
||||||
|
flock MYLOCK, LOCK_UN;
|
||||||
|
close(MYLOCK);
|
||||||
|
}
|
||||||
|
|
||||||
|
print @_;
|
||||||
|
exit 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub ask_user
|
||||||
|
{
|
||||||
|
my ($dbkey, $dbchunk) = @_;
|
||||||
|
|
||||||
|
if (defined($ENV{"BCHECK_UPDATE"})) {
|
||||||
|
$bcheckdb{$dbkey} = $dbchunk;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
&bailout("BC problem detected") if (! -t STDIN);
|
||||||
|
|
||||||
|
print "(I)gnore / (Q)uit / (U)pdate: ";
|
||||||
|
|
||||||
|
my $key;
|
||||||
|
while(defined(read STDIN, $key, 1)) {
|
||||||
|
$key = lc($key);
|
||||||
|
|
||||||
|
print "got: >$key<\n";
|
||||||
|
|
||||||
|
return if ($key eq 'i');
|
||||||
|
|
||||||
|
&bailout("BC problem. aborted") if ($key eq 'q');
|
||||||
|
|
||||||
|
if ($key eq 'u') {
|
||||||
|
$bcheckdb{$dbkey} = $dbchunk;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
print "\n(I)gnore / (Q)uit / (U)pdate: ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sub diff_chunk($$)
|
||||||
|
{
|
||||||
|
my ($oldl, $newl) = @_;
|
||||||
|
my @old = split /^/m, $oldl;
|
||||||
|
my @new = split /^/m, $newl;
|
||||||
|
my $haschanges = 0;
|
||||||
|
my $max = $#old > $#new ? $#old : $#new;
|
||||||
|
|
||||||
|
die "whoops. key different" if ($old[0] ne $new[0]);
|
||||||
|
|
||||||
|
if ($#old != $#new) {
|
||||||
|
warn ("Structural difference.\n");
|
||||||
|
print @old;
|
||||||
|
print "-----------------------------------------------\n";
|
||||||
|
print @new;
|
||||||
|
$haschanges = 1;
|
||||||
|
return $haschanges;
|
||||||
|
}
|
||||||
|
|
||||||
|
print $old[0];
|
||||||
|
|
||||||
|
my ($class) = ($old[0] =~ /^(?:Class |Vtable for )(\S+)/);
|
||||||
|
|
||||||
|
my $c = 1;
|
||||||
|
while ($c < $max) {
|
||||||
|
my ($o, $n) = ($old[$c], $new[$c]);
|
||||||
|
chomp $o;
|
||||||
|
chomp $n;
|
||||||
|
$c++;
|
||||||
|
next if ($o eq $n);
|
||||||
|
|
||||||
|
if(defined($class) and $n =~ /^(\d+\s+)\w+(::\S+\s*.*)$/) {
|
||||||
|
next if ($n eq "$1$class$2");
|
||||||
|
}
|
||||||
|
|
||||||
|
$haschanges = 1;
|
||||||
|
|
||||||
|
print "-$o\n+$n\n\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
return $haschanges;
|
||||||
|
}
|
||||||
|
|
||||||
|
local $dblock = $ENV{"HOME"} . "/bcheck.lock";
|
||||||
|
my $dbfile = $ENV{"HOME"} . "/bcheck.db";
|
||||||
|
my $cdump = $ARGV[0];
|
||||||
|
|
||||||
|
die "file $cdump is not readable: $!" if (! -f $cdump);
|
||||||
|
|
||||||
|
# make sure the advisory lock exists
|
||||||
|
open(MYLOCK, ">$dblock");
|
||||||
|
print MYLOCK "";
|
||||||
|
|
||||||
|
flock MYLOCK, LOCK_EX;
|
||||||
|
|
||||||
|
tie %bcheckdb, 'DB_File', $dbfile;
|
||||||
|
|
||||||
|
my $chunk = "";
|
||||||
|
|
||||||
|
open (IN, "<$cdump") or die "cannot open $cdump: $!";
|
||||||
|
while (<IN>) {
|
||||||
|
|
||||||
|
chop;
|
||||||
|
|
||||||
|
s/0x[0-9a-fA-F]+/0x......../g;
|
||||||
|
s/base size=/size=/g;
|
||||||
|
s/\(\)\s*$//g;
|
||||||
|
s/base align=/align=/g;
|
||||||
|
|
||||||
|
$chunk .= $_ . "\n";
|
||||||
|
|
||||||
|
if(/^\s*$/) {
|
||||||
|
my @lines = split /^/m, $chunk;
|
||||||
|
my $key = $lines[0];
|
||||||
|
chomp $key;
|
||||||
|
|
||||||
|
if($key !~ /<anonymous struct>/ &&
|
||||||
|
$key !~ /<anonymous union>/) {
|
||||||
|
if(defined($bcheckdb{$key})) {
|
||||||
|
my $dbversion = $bcheckdb{$key};
|
||||||
|
|
||||||
|
if($dbversion ne $chunk) {
|
||||||
|
&ask_user($key, $chunk) if(&diff_chunk($dbversion, $chunk));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$bcheckdb{$key} = $chunk;
|
||||||
|
print "NEW: $key\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$chunk = "";
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
close(IN);
|
||||||
|
|
||||||
|
untie %bcheckdb;
|
||||||
|
flock MYLOCK, LOCK_UN;
|
||||||
|
close(MYLOCK);
|
||||||
|
|
||||||
|
exit 0;
|
@ -0,0 +1,142 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Wrapper for compilers which do not understand `-c -o'.
|
||||||
|
|
||||||
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
|
#
|
||||||
|
# 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Wrapper for compilers which do not understand `-c -o'.
|
||||||
|
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||||
|
arguments, and rename the output as expected.
|
||||||
|
|
||||||
|
If you are trying to build a whole package this is not the
|
||||||
|
right script to run: please start by reading the file `INSTALL'.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "compile $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
ofile=
|
||||||
|
cfile=
|
||||||
|
eat=
|
||||||
|
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$eat"; then
|
||||||
|
eat=
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
-o)
|
||||||
|
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
||||||
|
# So we strip `-o arg' only if arg is an object.
|
||||||
|
eat=1
|
||||||
|
case $2 in
|
||||||
|
*.o | *.obj)
|
||||||
|
ofile=$2
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" -o "$2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*.c)
|
||||||
|
cfile=$1
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$ofile" || test -z "$cfile"; then
|
||||||
|
# If no `-o' option was seen then we might have been invoked from a
|
||||||
|
# pattern rule where we don't need one. That is ok -- this is a
|
||||||
|
# normal compilation that the losing compiler can handle. If no
|
||||||
|
# `.c' file was seen then we are probably linking. That is also
|
||||||
|
# ok.
|
||||||
|
exec "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Name of file we expect compiler to create.
|
||||||
|
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
||||||
|
|
||||||
|
# Create the lock directory.
|
||||||
|
# Note: use `[/.-]' here to ensure that we don't use the same name
|
||||||
|
# that we are using for the .o file. Also, base the name on the expected
|
||||||
|
# object file name, since that is what matters with a parallel build.
|
||||||
|
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
|
||||||
|
while true; do
|
||||||
|
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
# FIXME: race condition here if user kills between mkdir and trap.
|
||||||
|
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||||
|
|
||||||
|
# Run the compile.
|
||||||
|
"$@"
|
||||||
|
ret=$?
|
||||||
|
|
||||||
|
if test -f "$cofile"; then
|
||||||
|
mv "$cofile" "$ofile"
|
||||||
|
elif test -f "${cofile}bj"; then
|
||||||
|
mv "${cofile}bj" "$ofile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rmdir "$lockdir"
|
||||||
|
exit $ret
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
@ -0,0 +1,191 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
# this script patches a config.status file, to use our own perl script
|
||||||
|
# in the main loop
|
||||||
|
# we do it this way to circumvent hacking (and thereby including)
|
||||||
|
# autoconf function (which are GPL) into our LGPL acinclude.m4.in
|
||||||
|
# written by Michael Matz <matz@kde.org>
|
||||||
|
# adapted by Dirk Mueller <mueller@kde.org>
|
||||||
|
#
|
||||||
|
# This file is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Library General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
# This library 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
|
||||||
|
# Library General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU Library General Public License
|
||||||
|
# along with this library; see the file COPYING.LIB. If not, write to
|
||||||
|
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
# Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
# we have to change two places
|
||||||
|
# 1. the splitting of the substitutions into chunks of 90 (or even 48 in
|
||||||
|
# later autoconf's
|
||||||
|
# 2. the big main loop which patches all Makefile.in's
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use File::Basename;
|
||||||
|
|
||||||
|
my $ac_aux_dir = dirname($0);
|
||||||
|
my ($flag);
|
||||||
|
my $ac_version = 0;
|
||||||
|
my $vpath_seen = 0;
|
||||||
|
$flag = 0;
|
||||||
|
|
||||||
|
while (<>) {
|
||||||
|
# usage of $flag: 0 -- we have seen nothing yet
|
||||||
|
# 1 -- we are in (1)
|
||||||
|
# 2 -- we have ended (1)
|
||||||
|
# 3 -- we are in (2)
|
||||||
|
# 4 -- we ended (2)
|
||||||
|
|
||||||
|
if ($flag == 4) {
|
||||||
|
print;
|
||||||
|
} elsif ($flag == 0) {
|
||||||
|
# 1. begins with (including): "ac_max_sed_\S+\s*=\s*[0-9]+..."
|
||||||
|
# ends with (excluding) "CONFIG_FILE=..."
|
||||||
|
# in later autoconf (2.14.1) there is no CONFIG_FILES= line,
|
||||||
|
# but instead the (2) directly follow (1)
|
||||||
|
if (/^\s*ac_max_sed_([a-z]+).*=\s*([0-9]+)/ ) {
|
||||||
|
$flag = 1;
|
||||||
|
if ($1 eq 'lines') {
|
||||||
|
# lets hope its different with 2141,
|
||||||
|
# wasn't able to verify that
|
||||||
|
if ($2 eq '48') {
|
||||||
|
$ac_version = 250;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$ac_version = 2141;
|
||||||
|
}
|
||||||
|
} elsif ($1 eq 'cmds') {
|
||||||
|
$ac_version = 213;
|
||||||
|
}
|
||||||
|
# hmm, we don't know the autoconf version, but we try anyway
|
||||||
|
} else {
|
||||||
|
print;
|
||||||
|
}
|
||||||
|
} elsif ($flag == 1) {
|
||||||
|
if (/^\s*CONFIG_FILES=/ && ($ac_version != 250)) {
|
||||||
|
print;
|
||||||
|
$flag = 2;
|
||||||
|
} elsif (/^\s*for\s+ac_file\s+in\s+.*CONFIG_FILES/ ) {
|
||||||
|
$flag = 3;
|
||||||
|
}
|
||||||
|
} elsif ($flag == 2) {
|
||||||
|
# 2. begins with: "for ac_file in.*CONFIG_FILES" (the next 'for' after (1))
|
||||||
|
# end with: "rm -f conftest.s\*"
|
||||||
|
# on autoconf 250, it ends with '# CONFIG_HEADER section'
|
||||||
|
#
|
||||||
|
# gg: if a post-processing commands section is found first,
|
||||||
|
# stop there and insert a new loop to honor the case/esac.
|
||||||
|
# (pattern: /^\s+#\sRun the commands associated with the file./)
|
||||||
|
|
||||||
|
if (/^\s*for\s+ac_file\s+in\s+.*CONFIG_FILES/ ) {
|
||||||
|
$flag = 3;
|
||||||
|
} else {
|
||||||
|
print;
|
||||||
|
}
|
||||||
|
} elsif ($flag == 3) {
|
||||||
|
if (/^\s*rm\s+-f\s+conftest/ ) {
|
||||||
|
$flag = 4;
|
||||||
|
&insert_main_loop();
|
||||||
|
} elsif (/^\s*rm\s+-f\s+.*ac_cs_root/ ) {
|
||||||
|
$flag = 4;
|
||||||
|
&insert_main_loop();
|
||||||
|
#die "hhhhhhh";
|
||||||
|
if ($ac_version != 2141) {
|
||||||
|
print STDERR "hmm, don't know autoconf version\n";
|
||||||
|
}
|
||||||
|
} elsif (/^\#\s*CONFIG_(HEADER|COMMANDS) section.*|^\s+#\s(Run) the commands associated/) {
|
||||||
|
$flag = 4;
|
||||||
|
my $commands = defined $2;
|
||||||
|
&insert_main_loop();
|
||||||
|
$commands && insert_command_loop();
|
||||||
|
if($ac_version != 250) {
|
||||||
|
print STDERR "hmm, something went wrong :-(\n";
|
||||||
|
}
|
||||||
|
} elsif (/VPATH/ ) {
|
||||||
|
$vpath_seen = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
die "wrong input (flag != 4)" unless $flag == 4;
|
||||||
|
print STDERR "hmm, don't know autoconf version\n" unless $ac_version;
|
||||||
|
|
||||||
|
sub insert_main_loop {
|
||||||
|
|
||||||
|
if ($ac_version == 250) {
|
||||||
|
&insert_main_loop_250();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
&insert_main_loop_213();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sub insert_main_loop_250 {
|
||||||
|
|
||||||
|
print <<EOF;
|
||||||
|
#echo Doing the fast build of Makefiles -- autoconf $ac_version
|
||||||
|
EOF
|
||||||
|
if ($vpath_seen) {
|
||||||
|
print <<EOF;
|
||||||
|
# VPATH subst was seen in original config.status main loop
|
||||||
|
echo '/^[ ]*VPATH[ ]*=[^:]*\$/d' >>\$tmp/subs.sed
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
print <<EOF;
|
||||||
|
rm -f \$tmp/subs.files
|
||||||
|
for ac_file in .. \$CONFIG_FILES ; do
|
||||||
|
if test "x\$ac_file" != x..; then
|
||||||
|
echo \$ac_file >> \$tmp/subs.files
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -f \$tmp/subs.files ; then
|
||||||
|
perl $ac_aux_dir/config.pl "\$tmp/subs.sed" "\$tmp/subs.files" "\$srcdir" "\$INSTALL"
|
||||||
|
fi
|
||||||
|
rm -f \$tmp/subs.files
|
||||||
|
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub insert_main_loop_213 {
|
||||||
|
print <<EOF;
|
||||||
|
#echo Doing the fast build of Makefiles -- autoconf $ac_version
|
||||||
|
if test "x\$ac_cs_root" = "x" ; then
|
||||||
|
ac_cs_root=conftest
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
if ($vpath_seen) {
|
||||||
|
print <<EOF;
|
||||||
|
# VPATH subst was seen in original config.status main loop
|
||||||
|
echo '/^[ ]*VPATH[ ]*=[^:]*\$/d' >> \$ac_cs_root.subs
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
print <<EOF;
|
||||||
|
rm -f \$ac_cs_root.sacfiles
|
||||||
|
for ac_file in .. \$CONFIG_FILES ; do
|
||||||
|
if test "x\$ac_file" != x..; then
|
||||||
|
echo \$ac_file >> \$ac_cs_root.sacfiles
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -f \$ac_cs_root.sacfiles ; then
|
||||||
|
perl $ac_aux_dir/config.pl "\$ac_cs_root.subs" "\$ac_cs_root.sacfiles" "\$ac_given_srcdir" "\$ac_given_INSTALL"
|
||||||
|
fi
|
||||||
|
rm -f \$ac_cs_root.s*
|
||||||
|
|
||||||
|
EOF
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub insert_command_loop {
|
||||||
|
print <<EOF;
|
||||||
|
for ac_file in .. \$CONFIG_FILES ; do
|
||||||
|
EOF
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,238 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
# a script for use by autoconf to make the Makefiles
|
||||||
|
# from the Makefile.in's
|
||||||
|
#
|
||||||
|
# the original autoconf mechanism first splits all substitutions into groups
|
||||||
|
# of ca. 90, and than invokes sed for _every_ Makefile.in and every group
|
||||||
|
# (so around 2-3 times per Makefile.in). So this takes forever, as sed
|
||||||
|
# has to recompile the regexps every time.
|
||||||
|
#
|
||||||
|
# this script does better. It changes all Makefile.ins in one process.
|
||||||
|
# in kdelibs the time for building Makefile went down from 2:59 min to 13 sec!
|
||||||
|
#
|
||||||
|
# written by Michael Matz <matz@kde.org>
|
||||||
|
# adapted by Dirk Mueller <mueller@kde.org>
|
||||||
|
|
||||||
|
# This file is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Library General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
# This library 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
|
||||||
|
# Library General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU Library General Public License
|
||||||
|
# along with this library; see the file COPYING.LIB. If not, write to
|
||||||
|
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
# Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
use File::Path;
|
||||||
|
|
||||||
|
my $ac_subs=$ARGV[0];
|
||||||
|
my $ac_sacfiles = $ARGV[1];
|
||||||
|
my $ac_given_srcdir=$ARGV[2];
|
||||||
|
my $ac_given_INSTALL=$ARGV[3];
|
||||||
|
|
||||||
|
my @comp_match;
|
||||||
|
my @comp_subs;
|
||||||
|
|
||||||
|
#print "ac_subs=$ac_subs\n";
|
||||||
|
#print "ac_sacfiles=$ac_sacfiles\n";
|
||||||
|
#print "ac_given_srcdir=$ac_given_srcdir\n";
|
||||||
|
#print "ac_given_INSTALL=$ac_given_INSTALL\n";
|
||||||
|
|
||||||
|
my $configure_input;
|
||||||
|
my ($srcdir, $top_srcdir);
|
||||||
|
my $INSTALL;
|
||||||
|
my $bad_perl = ($] < 5.005);
|
||||||
|
my $created_file_count = 0;
|
||||||
|
|
||||||
|
open(CF, "< $ac_subs") || die "can't open $ac_subs: $!";
|
||||||
|
my @subs = <CF>;
|
||||||
|
my $pat;
|
||||||
|
close(CF);
|
||||||
|
chomp @subs;
|
||||||
|
@comp_match=();
|
||||||
|
@comp_subs=();
|
||||||
|
|
||||||
|
if ($bad_perl) {
|
||||||
|
print "Using perl older than version 5.005\n";
|
||||||
|
foreach $pat (@subs) {
|
||||||
|
if ( ($pat =~ m/s%([^%]*)%([^%]*)%g/ )
|
||||||
|
|| ($pat =~ m/s%([^%]*)%([^%]*)%;t/ )
|
||||||
|
|| ($pat =~ m/s,([^,]*),(.*),;t/)
|
||||||
|
|| ($pat =~ m%s/([^/]*)/([^/]*)/g% )
|
||||||
|
|| ($pat =~ m%s/([^/]*)/([^/]*)/;t% )
|
||||||
|
) {
|
||||||
|
# form : s%bla%blubb%g
|
||||||
|
# or s%bla%blubb%;t t (autoconf > 2.13 and < 2.52 ?)
|
||||||
|
# or s,bla,blubb,;t t (autoconf 2.52)
|
||||||
|
my $srch = $1;
|
||||||
|
my $repl = $2;
|
||||||
|
$repl =~ s/\\(.)/$1/g;
|
||||||
|
push @comp_subs, make_closure($srch, $repl);
|
||||||
|
|
||||||
|
} elsif ( ($pat =~ /%([^%]*)%d/ )
|
||||||
|
|| ($pat =~ m%/([^/]*)/d% )
|
||||||
|
) {
|
||||||
|
push @comp_subs, make_closure($1, "");
|
||||||
|
} else {
|
||||||
|
die "Uhh. Malformed pattern in $ac_subs ($pat)"
|
||||||
|
unless ( $pat =~ /^\s*$/ ); # ignore white lines
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
foreach $pat (@subs) {
|
||||||
|
if ( ($pat =~ /s%([^%]*)%([^%]*)%g/ ) ||
|
||||||
|
($pat =~ /s%([^%]*)%([^%]*)%;t/ ) ||
|
||||||
|
($pat =~ /s,([^,]*),(.*),;t/) ) {
|
||||||
|
# form : s%bla%blubb%g
|
||||||
|
# or s%bla%blubb%;t t (autoconf > 2.13 and < 2.52 ?)
|
||||||
|
# or s,bla,blubb,;t t (autoconf 2.52)
|
||||||
|
my $srch = $1;
|
||||||
|
my $repl = $2;
|
||||||
|
push @comp_match, eval "qr/\Q$srch\E/"; # compile match pattern
|
||||||
|
$repl =~ s/\\(.)/$1/g;
|
||||||
|
push @comp_subs, $repl;
|
||||||
|
} elsif ( ($pat =~ /%([^%]*)%d/ )
|
||||||
|
|| ($pat =~ m%/([^/]*)/d% )
|
||||||
|
) {
|
||||||
|
push @comp_match, eval "qr/\Q$1\E/";
|
||||||
|
push @comp_subs, "";
|
||||||
|
} else {
|
||||||
|
die "Uhh. Malformed pattern in $ac_subs ($pat)"
|
||||||
|
unless ( $pat =~ /^\s*$/ ); # ignore white lines
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
undef @subs;
|
||||||
|
|
||||||
|
# read the list of files to be patched, form:
|
||||||
|
# ./Makefile arts/Makefile arts/examples/Makefile arts/flow/Makefile
|
||||||
|
|
||||||
|
open(CF, "< $ac_sacfiles") || die "can't open $ac_sacfiles: $!";
|
||||||
|
my @ac_files = <CF>;
|
||||||
|
close(CF);
|
||||||
|
chomp @ac_files;
|
||||||
|
|
||||||
|
|
||||||
|
my $ac_file;
|
||||||
|
foreach $ac_file (@ac_files) {
|
||||||
|
next if $ac_file =~ /\.\./;
|
||||||
|
next if $ac_file =~ /^\s*$/;
|
||||||
|
my $ac_file_in;
|
||||||
|
my ($ac_dir, $ac_dots, $ac_dir_suffix);
|
||||||
|
|
||||||
|
if ($ac_file =~ /.*:.*/ ) {
|
||||||
|
($ac_file_in = $ac_file) =~ s%[^:]*:%%;
|
||||||
|
$ac_file =~ s%:.*%%;
|
||||||
|
} else {
|
||||||
|
$ac_file_in = $ac_file.".in";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
||||||
|
|
||||||
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||||
|
($ac_dir = $ac_file) =~ s%/[^/][^/]*$%%;
|
||||||
|
if ( ($ac_dir ne $ac_file) && ($ac_dir ne ".")) {
|
||||||
|
# The file is in a subdirectory.
|
||||||
|
if (! -d "$ac_dir") { mkpath "$ac_dir", 0, 0777; }
|
||||||
|
($ac_dir_suffix = $ac_dir) =~ s%^./%%;
|
||||||
|
$ac_dir_suffix="/".$ac_dir_suffix;
|
||||||
|
# A "../" for each directory in $ac_dir_suffix.
|
||||||
|
($ac_dots = $ac_dir_suffix) =~ s%/[^/]*%../%g;
|
||||||
|
} else {
|
||||||
|
$ac_dir_suffix="";
|
||||||
|
$ac_dots="";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($ac_given_srcdir eq ".") {
|
||||||
|
$srcdir=".";
|
||||||
|
if ($ac_dots) {
|
||||||
|
( $top_srcdir = $ac_dots) =~ s%/$%%;
|
||||||
|
} else { $top_srcdir="."; }
|
||||||
|
} elsif ($ac_given_srcdir =~ m%^/%) {
|
||||||
|
$srcdir=$ac_given_srcdir.$ac_dir_suffix;
|
||||||
|
$top_srcdir = $ac_given_srcdir;
|
||||||
|
} else {
|
||||||
|
$srcdir = $ac_dots.$ac_given_srcdir.$ac_dir_suffix;
|
||||||
|
$top_srcdir = $ac_dots.$ac_given_srcdir;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($ac_given_INSTALL) {
|
||||||
|
if ($ac_given_INSTALL =~ m%^/% ) {
|
||||||
|
$INSTALL = $ac_given_INSTALL;
|
||||||
|
} else {
|
||||||
|
$INSTALL = $ac_dots.$ac_given_INSTALL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print "fast creating $ac_file\n";
|
||||||
|
unlink $ac_file;
|
||||||
|
my $ac_comsub="";
|
||||||
|
my $fname=$ac_file_in;
|
||||||
|
$fname =~ s%.*/%%;
|
||||||
|
$configure_input="$ac_file. Generated from $fname by config.pl.";
|
||||||
|
|
||||||
|
my $ac_file_inputs;
|
||||||
|
($ac_file_inputs = $ac_file_in) =~ s%^%$ac_given_srcdir/%;
|
||||||
|
$ac_file_inputs =~ s%:% $ac_given_srcdir/%g;
|
||||||
|
|
||||||
|
patch_file($ac_file, $ac_file_inputs);
|
||||||
|
++$created_file_count;
|
||||||
|
}
|
||||||
|
|
||||||
|
print "config.pl: fast created $created_file_count file(s).\n";
|
||||||
|
|
||||||
|
sub patch_file {
|
||||||
|
my ($outf, $infiles) = @_;
|
||||||
|
my $filedata;
|
||||||
|
my @infiles=split(' ', $infiles);
|
||||||
|
my $i=0;
|
||||||
|
my $name;
|
||||||
|
|
||||||
|
foreach $name (@infiles) {
|
||||||
|
if (open(CF, "< $name")) {
|
||||||
|
while (<CF>) {
|
||||||
|
$filedata .= $_;
|
||||||
|
}
|
||||||
|
close(CF);
|
||||||
|
} else {
|
||||||
|
print STDERR "can't open $name: $!"."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$filedata =~ s%\@configure_input\@%$configure_input%g;
|
||||||
|
$filedata =~ s%\@srcdir\@%$srcdir%g;
|
||||||
|
$filedata =~ s%\@top_srcdir\@%$top_srcdir%g;
|
||||||
|
$filedata =~ s%\@INSTALL\@%$INSTALL%g;
|
||||||
|
|
||||||
|
if ($bad_perl) {
|
||||||
|
while ($i <= $#comp_subs) {
|
||||||
|
my $ref = $comp_subs[$i];
|
||||||
|
&$ref(\$filedata);
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
while ($i <= $#comp_match) {
|
||||||
|
$filedata =~ s/$comp_match[$i]/$comp_subs[$i]/g;
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
open(CF, "> $outf") || die "can't create $outf: $!";
|
||||||
|
print CF $filedata;
|
||||||
|
close(CF);
|
||||||
|
}
|
||||||
|
|
||||||
|
sub make_closure {
|
||||||
|
my ($pat, $sub) = @_;
|
||||||
|
my $ret = eval "return sub { my \$ref=shift; \$\$ref =~ s%\Q$pat\E%\Q$sub\E%g; }";
|
||||||
|
if ($@) {
|
||||||
|
print "can't create CODE: $@\n";
|
||||||
|
}
|
||||||
|
return $ret;
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
|||||||
|
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
|
||||||
|
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
|
||||||
|
# And if so, warn when they don't match
|
||||||
|
if test "$kde_libs_prefix" != "$given_prefix"; then
|
||||||
|
# And if kde doesn't know about the prefix yet
|
||||||
|
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
|
||||||
|
if test $? -ne 0; then
|
||||||
|
echo ""
|
||||||
|
echo "Warning: you chose to install this package in $given_prefix,"
|
||||||
|
echo "but KDE was found in $kde_libs_prefix."
|
||||||
|
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
|
||||||
|
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
|
||||||
|
echo "Then restart KDE."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
|
||||||
|
echo ""
|
||||||
|
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
|
||||||
|
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
|
||||||
|
echo ""
|
||||||
|
echo "For better performance, consider including the Qt visibility supporting patch"
|
||||||
|
echo "located at:"
|
||||||
|
echo ""
|
||||||
|
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
|
||||||
|
echo ""
|
||||||
|
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
|
||||||
|
echo "everything will continue to work just fine without it."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$all_tests" = "bad"; then
|
||||||
|
if test ! "$cache_file" = "/dev/null"; then
|
||||||
|
echo ""
|
||||||
|
echo "Please remove the file $cache_file after changing your setup"
|
||||||
|
echo "so that configure will find the changes next time."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "Good - your configure finished. Start make now"
|
||||||
|
echo ""
|
||||||
|
fi
|
@ -0,0 +1,57 @@
|
|||||||
|
dnl This file is part of the KDE libraries/packages
|
||||||
|
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
|
||||||
|
|
||||||
|
dnl This file is free software; you can redistribute it and/or
|
||||||
|
dnl modify it under the terms of the GNU Library General Public
|
||||||
|
dnl License as published by the Free Software Foundation; either
|
||||||
|
dnl version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
dnl This library is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
dnl Library General Public License for more details.
|
||||||
|
|
||||||
|
dnl You should have received a copy of the GNU Library General Public License
|
||||||
|
dnl along with this library; see the file COPYING.LIB. If not, write to
|
||||||
|
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
dnl Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
# Original Author was Kalle@kde.org
|
||||||
|
# I lifted it in some mater. (Stephan Kulow)
|
||||||
|
# I used much code from Janos Farkas
|
||||||
|
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
|
AC_INIT(acinclude.m4) dnl a source file from your sub dir
|
||||||
|
|
||||||
|
dnl This is so we can use kde-common
|
||||||
|
AC_CONFIG_AUX_DIR(admin)
|
||||||
|
|
||||||
|
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
|
||||||
|
unset CDPATH
|
||||||
|
|
||||||
|
dnl Checking host/target/build systems, for make, install etc.
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
dnl Perform program name transformation
|
||||||
|
AC_ARG_PROGRAM
|
||||||
|
|
||||||
|
dnl Automake doc recommends to do this only here. (Janos)
|
||||||
|
AM_INIT_AUTOMAKE(@MODULENAME@, @VERSION@) dnl searches for some needed programs
|
||||||
|
|
||||||
|
KDE_SET_PREFIX
|
||||||
|
|
||||||
|
dnl generate the config header
|
||||||
|
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_CHECK_COMPILERS
|
||||||
|
AC_ENABLE_SHARED(yes)
|
||||||
|
AC_ENABLE_STATIC(no)
|
||||||
|
KDE_PROG_LIBTOOL
|
||||||
|
|
||||||
|
dnl for NLS support. Call them in this order!
|
||||||
|
dnl WITH_NLS is for the po files
|
||||||
|
AM_KDE_WITH_NLS
|
||||||
|
|
||||||
|
dnl KDE_USE_QT
|
||||||
|
AC_PATH_KDE
|
@ -0,0 +1,662 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# cvs.sh
|
||||||
|
#
|
||||||
|
# This file contains support code from Makefile.common
|
||||||
|
# It defines a shell function for each known target
|
||||||
|
# and then does a case to call the correct function.
|
||||||
|
|
||||||
|
unset MAKEFLAGS
|
||||||
|
|
||||||
|
call_and_fix_autoconf()
|
||||||
|
{
|
||||||
|
$AUTOCONF || exit 1
|
||||||
|
if test -r configure.in.in ; then
|
||||||
|
perl -pi -e "print \"if test \\\"x\\\$with_fast_perl\\\" = \\\"xyes\\\"; then\
|
||||||
|
\\n perl -i.bak \\\$ac_aux_dir/conf.change.pl \\\$CONFIG_STATUS\
|
||||||
|
\\\\\\n || mv \\\$CONFIG_STATUS.bak \\\$CONFIG_STATUS\
|
||||||
|
\\n rm -f \\\$CONFIG_STATUS.bak\\nfi\
|
||||||
|
\\n\" if /^\\s*chmod\\s+.*\\+x\\s+.*CONFIG_STATUS/; s,^#line.*LINENO.*\$,/* \$& */, ;" configure
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
strip_makefile()
|
||||||
|
{
|
||||||
|
if test ! -f $makefile_wo; then
|
||||||
|
perl -e '$in=0; while ( <> ) { $in = 1 if ($_ =~ m/^if / ); print $_ unless ($in || $_ =~ m/^include /); $in = 0 if ($_ =~ m/^endif/); }' < $makefile_am > $makefile_wo
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
check_autotool_versions()
|
||||||
|
{
|
||||||
|
required_autoconf_version="2.53 or newer"
|
||||||
|
AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
|
||||||
|
case $AUTOCONF_VERSION in
|
||||||
|
Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
|
||||||
|
"" )
|
||||||
|
echo "*** AUTOCONF NOT FOUND!."
|
||||||
|
echo "*** KDE requires autoconf $required_autoconf_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "*** YOU'RE USING $AUTOCONF_VERSION."
|
||||||
|
echo "*** KDE requires autoconf $required_autoconf_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1`
|
||||||
|
case $AUTOHEADER_VERSION in
|
||||||
|
Autoconf*2.5* | autoheader*2.5* | autoheader*2.6* ) : ;;
|
||||||
|
"" )
|
||||||
|
echo "*** AUTOHEADER NOT FOUND!."
|
||||||
|
echo "*** KDE requires autoheader $required_autoconf_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "*** YOU'RE USING $AUTOHEADER_VERSION."
|
||||||
|
echo "*** KDE requires autoheader $required_autoconf_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
|
||||||
|
required_automake_version="1.6.1 or newer"
|
||||||
|
case $AUTOMAKE_STRING in
|
||||||
|
automake*1.5d* | automake*1.5* | automake*1.5-* )
|
||||||
|
echo "*** YOU'RE USING $AUTOMAKE_STRING."
|
||||||
|
echo "*** KDE requires automake $required_automake_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10* | automake*1.11* | automake*1.12*)
|
||||||
|
echo "*** $AUTOMAKE_STRING found."
|
||||||
|
UNSERMAKE=no
|
||||||
|
;;
|
||||||
|
"" )
|
||||||
|
echo "*** AUTOMAKE NOT FOUND!."
|
||||||
|
echo "*** KDE requires automake $required_automake_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*unsermake* ) :
|
||||||
|
echo "*** YOU'RE USING UNSERMAKE."
|
||||||
|
echo "*** GOOD LUCK!! :)"
|
||||||
|
UNSERMAKE=unsermake
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "*** YOU'RE USING $AUTOMAKE_STRING."
|
||||||
|
echo "*** KDE requires automake $required_automake_version"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
unset required_automake_version
|
||||||
|
}
|
||||||
|
|
||||||
|
cvs()
|
||||||
|
{
|
||||||
|
check_autotool_versions
|
||||||
|
acinclude_m4
|
||||||
|
|
||||||
|
### Make new subdirs and configure.in.
|
||||||
|
### The make calls could be optimized away here,
|
||||||
|
### with a little thought.
|
||||||
|
if test -r configure.in.in; then
|
||||||
|
rm -f configure.in
|
||||||
|
echo "*** Creating list of subdirectories"
|
||||||
|
create_subdirs
|
||||||
|
|
||||||
|
if test -r Makefile.am.in; then
|
||||||
|
echo "*** Creating Makefile.am"
|
||||||
|
if grep '\$(top_srcdir)/Makefile.am:' $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo top_srcdir=. ./Makefile.am || exit 1
|
||||||
|
else
|
||||||
|
Makefile_am
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
configure_files
|
||||||
|
echo "*** Creating configure.in"
|
||||||
|
if grep '\$(top_srcdir)/configure.in:' $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo top_srcdir=. ./configure.in || exit 1
|
||||||
|
else
|
||||||
|
configure_in
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "*** Creating aclocal.m4"
|
||||||
|
$ACLOCAL $ACLOCALFLAGS || exit 1
|
||||||
|
echo "*** Creating configure"
|
||||||
|
call_and_fix_autoconf
|
||||||
|
|
||||||
|
if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
|
||||||
|
echo "*** Creating config.h template"
|
||||||
|
$AUTOHEADER || exit 1
|
||||||
|
touch config.h.in
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "*** Creating Makefile templates"
|
||||||
|
$AUTOMAKE || exit 1
|
||||||
|
|
||||||
|
if test "$UNSERMAKE" = no; then
|
||||||
|
echo "*** Postprocessing Makefile templates"
|
||||||
|
perl -w admin/am_edit || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if egrep "^cvs-local:" $makefile_am >/dev/null; then \
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo cvs-local top_srcdir=. || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "*** Creating date/time stamp"
|
||||||
|
touch stamp-h.in
|
||||||
|
|
||||||
|
echo "*** Finished"
|
||||||
|
echo " Don't forget to run ./configure"
|
||||||
|
echo " If you haven't done so in a while, run ./configure --help"
|
||||||
|
}
|
||||||
|
|
||||||
|
dist()
|
||||||
|
{
|
||||||
|
check_autotool_versions
|
||||||
|
|
||||||
|
###
|
||||||
|
### First build all of the files necessary to do just "make"
|
||||||
|
###
|
||||||
|
acinclude_m4
|
||||||
|
if test -r configure.in.in; then
|
||||||
|
rm -f configure.in
|
||||||
|
create_subdirs
|
||||||
|
|
||||||
|
if test -r Makefile.am.in; then
|
||||||
|
if grep '\$(top_srcdir)/Makefile.am:' $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo top_srcdir=. ./Makefile.am || exit 1
|
||||||
|
else
|
||||||
|
Makefile_am
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
configure_files
|
||||||
|
if grep '\$(top_srcdir)/configure.in:' $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo top_srcdir=. ./configure.in || exit 1
|
||||||
|
else
|
||||||
|
configure_in
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
$ACLOCAL $ACLOCALFLAGS
|
||||||
|
if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
|
||||||
|
echo "*** Creating config.h template"
|
||||||
|
$AUTOHEADER || exit 1
|
||||||
|
touch config.h.in
|
||||||
|
fi
|
||||||
|
$AUTOMAKE --foreign || exit 1
|
||||||
|
if test "$UNSERMAKE" = no; then
|
||||||
|
echo "*** Postprocessing Makefile templates"
|
||||||
|
perl -w admin/am_edit || exit 1
|
||||||
|
fi
|
||||||
|
call_and_fix_autoconf
|
||||||
|
touch stamp-h.in
|
||||||
|
if grep "^cvs-local:" $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo cvs-local top_srcdir=.
|
||||||
|
fi
|
||||||
|
|
||||||
|
###
|
||||||
|
### Then make messages
|
||||||
|
###
|
||||||
|
if test -d po; then
|
||||||
|
LIST=`find ./po -name "*.po"`
|
||||||
|
for i in $LIST; do
|
||||||
|
file2=`echo $i | sed -e "s#\.po#\.gmo#"`
|
||||||
|
msgfmt -o $file2 $i || touch $file2
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if grep "^cvs-dist-local:" $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo cvs-dist-local top_srcdir=.
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
subdir_dist()
|
||||||
|
{
|
||||||
|
$ACLOCAL $ACLOCALFLAGS
|
||||||
|
$AUTOHEADER
|
||||||
|
touch config.h.in
|
||||||
|
$AUTOMAKE
|
||||||
|
AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
|
||||||
|
case $AUTOMAKE_STRING in
|
||||||
|
*unsermake* ) :
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
perl -w ../admin/am_edit --path=../admin
|
||||||
|
esac
|
||||||
|
call_and_fix_autoconf
|
||||||
|
touch stamp-h.in
|
||||||
|
}
|
||||||
|
|
||||||
|
configure_in()
|
||||||
|
{
|
||||||
|
rm -f configure.in configure.in.new
|
||||||
|
kde_use_qt_param=
|
||||||
|
test -f configure.files || { echo "need configure.files for configure.in"; exit 1; }
|
||||||
|
list=`fgrep -v "configure.in.bot" < configure.files | fgrep -v "configure.in.mid"`
|
||||||
|
: > configure.in.new
|
||||||
|
for file in $list; do
|
||||||
|
echo "dnl =======================================================" >> configure.in.new
|
||||||
|
echo "dnl FILE: $file" >> configure.in.new
|
||||||
|
echo "dnl =======================================================" >> configure.in.new
|
||||||
|
echo "" >> configure.in.new
|
||||||
|
cat $file >> configure.in.new
|
||||||
|
done
|
||||||
|
echo "KDE_CREATE_SUBDIRSLIST" >> configure.in.new
|
||||||
|
if test -f Makefile.am.in; then
|
||||||
|
subdirs=`cat subdirs`
|
||||||
|
for dir in $subdirs; do
|
||||||
|
vdir=`echo $dir | sed -e 's,[-+.@],_,g'`
|
||||||
|
echo "AM_CONDITIONAL($vdir""_SUBDIR_included, test \"x\$$vdir""_SUBDIR_included\" = xyes)" >> configure.in.new
|
||||||
|
if test -f "$dir/configure.in"; then
|
||||||
|
echo "if test \"x\$$vdir""_SUBDIR_included\" = xyes; then " >> configure.in.new
|
||||||
|
echo " AC_CONFIG_SUBDIRS($dir)" >> configure.in.new
|
||||||
|
echo "fi" >> configure.in.new
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "AC_CONFIG_FILES([ Makefile ])" >> configure.in.new
|
||||||
|
|
||||||
|
if test -f inst-apps; then
|
||||||
|
topleveldirs=`cat inst-apps`
|
||||||
|
else
|
||||||
|
topleveldirs=
|
||||||
|
for dir in `ls -1d * | sort`; do
|
||||||
|
if test "$dir" != "debian" && test -d $dir; then
|
||||||
|
topleveldirs="$topleveldirs $dir"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
for topleveldir in $topleveldirs; do
|
||||||
|
if test -f $topleveldir/configure.in; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test -f $topleveldir/Makefile.am; then :; else
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
mfs=`find $topleveldir -follow -name Makefile.am -print | fgrep -v "/." | \
|
||||||
|
sed -e 's#\./##; s#/Makefile.am$##' | sort | sed -e 's#$#/Makefile#'`
|
||||||
|
for i in $mfs; do
|
||||||
|
echo "AC_CONFIG_FILES([ $i ])" >> configure.in.new
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
files=`cat configure.files`
|
||||||
|
list=`egrep '^dnl AC_OUTPUT\(.*\)' $files | sed -e "s#^.*dnl AC_OUTPUT(\(.*\))#\1#"`
|
||||||
|
for file in $list; do
|
||||||
|
echo "AC_CONFIG_FILES([ $file ])" >> configure.in.new
|
||||||
|
done
|
||||||
|
|
||||||
|
midfiles=`cat configure.files | fgrep "configure.in.mid"`
|
||||||
|
test -n "$midfiles" && cat $midfiles >> configure.in.new
|
||||||
|
|
||||||
|
echo "AC_OUTPUT" >> configure.in.new
|
||||||
|
modulename=
|
||||||
|
if test -f configure.in.in; then
|
||||||
|
if head -n 2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then
|
||||||
|
kde_use_qt_param=`cat configure.in.in | sed -n -e "s/#MIN_CONFIG(\(.*\))/\1/p"`
|
||||||
|
fi
|
||||||
|
if head -n 2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then
|
||||||
|
line=`grep "^AM_INIT_AUTOMAKE(" configure.in.in`
|
||||||
|
if test -n "$line"; then
|
||||||
|
modulename=`echo $line | sed -e "s#AM_INIT_AUTOMAKE(\([^,]*\),.*#\1#"`
|
||||||
|
VERSION=`echo $line | sed -e "s#AM_INIT_AUTOMAKE([^,]*, *\([^)]*\)).*#\1#"`
|
||||||
|
fi
|
||||||
|
sed -e "s#AM_INIT_AUTOMAKE([^@].*#dnl PACKAGE set before#" \
|
||||||
|
configure.in.new > configure.in && mv configure.in configure.in.new
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test -z "$VERSION" || test "$VERSION" = "@VERSION@"; then
|
||||||
|
VERSION="\"3.5.10\""
|
||||||
|
fi
|
||||||
|
if test -z "$modulename" || test "$modulename" = "@MODULENAME@"; then
|
||||||
|
modulename=`pwd`;
|
||||||
|
modulename=`basename $modulename`
|
||||||
|
esc_VERSION=`echo $VERSION | sed -e "s#[^.0-9a-zA-Z]##g"`
|
||||||
|
modulename=`echo $modulename | sed -e "s#-$esc_VERSION##"`
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test -n "$kde_use_qt_param"; then
|
||||||
|
sed -e "s#^dnl KDE_USE_QT#KDE_USE_QT($kde_use_qt_param)#" \
|
||||||
|
configure.in.new > configure.in && mv configure.in configure.in.new
|
||||||
|
fi
|
||||||
|
sed -e "s#@MODULENAME@#$modulename#" configure.in.new |
|
||||||
|
sed -e "s#@VERSION@#$VERSION#" > configure.in
|
||||||
|
botfiles=`cat configure.files | egrep "configure.in.bot"`
|
||||||
|
test -n "$botfiles" && cat $botfiles >> configure.in
|
||||||
|
cat $admindir/configure.in.bot.end >> configure.in
|
||||||
|
rm -f configure.in.new
|
||||||
|
}
|
||||||
|
|
||||||
|
configure_files()
|
||||||
|
{
|
||||||
|
echo "*** Creating configure.files"
|
||||||
|
admindir=NO
|
||||||
|
for i in . .. ../.. ../../..; do
|
||||||
|
if test -x $i/admin; then admindir=$i/admin; break; fi
|
||||||
|
done
|
||||||
|
rm -f configure.files
|
||||||
|
touch configure.files
|
||||||
|
if test -f configure.in.in && head -n 2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then
|
||||||
|
echo $admindir/configure.in.min >> configure.files
|
||||||
|
fi
|
||||||
|
test -f configure.in.in && echo configure.in.in >> configure.files
|
||||||
|
# we collect files in the subdirs and do some sorting tricks, so subsubdirs come after subdirs
|
||||||
|
if test -f inst-apps; then
|
||||||
|
inst=`cat inst-apps`
|
||||||
|
list=""
|
||||||
|
for i in $inst; do
|
||||||
|
list="$list `find $i/ -follow -name "configure.in.in" -o -name "configure.in.bot" -o -name "configure.in.mid" | \
|
||||||
|
sed -e "s,/configure,/aaaconfigure," | sort | sed -e "s,/aaaconfigure,/configure,"`"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
list=`find . -follow -name "configure.in.in" -o -name "configure.in.bot" -o -name "configure.in.mid" | \
|
||||||
|
sed -e "s,/configure,/aaaconfigure," | sort | sed -e "s,/aaaconfigure,/configure,"`
|
||||||
|
fi
|
||||||
|
for i in $list; do if test -f $i && test `dirname $i` != "." ; then
|
||||||
|
echo $i >> configure.files
|
||||||
|
fi; done
|
||||||
|
test -f configure.in.mid && echo configure.in.mid >> configure.files
|
||||||
|
test -f configure.in.bot && echo configure.in.bot >> configure.files
|
||||||
|
if test ! -s configure.files; then
|
||||||
|
echo "There are no files to build a configure. Please check your checkout."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
create_subdirs()
|
||||||
|
{
|
||||||
|
if grep '\$(top_srcdir)/subdirs:' $makefile_am >/dev/null; then
|
||||||
|
# as many modules contain rules to create subdirs without any
|
||||||
|
# dependencies make won't create it unless there is no file.
|
||||||
|
# so we check if that's a dummy rule or one that works
|
||||||
|
rm -f subdirs.cvs.sh.$$
|
||||||
|
if test -f subdirs; then
|
||||||
|
mv subdirs subdirs.cvs.sh.$$
|
||||||
|
fi
|
||||||
|
strip_makefile
|
||||||
|
$MAKE -f $makefile_wo top_srcdir=. ./subdirs || exit 1
|
||||||
|
if test -f subdirs.cvs.sh.$$; then
|
||||||
|
if test -s subdirs; then
|
||||||
|
rm subdirs.cvs.sh.$$
|
||||||
|
else
|
||||||
|
mv subdirs.cvs.sh.$$ subdirs
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
subdirs
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
subdirs()
|
||||||
|
{
|
||||||
|
dirs=
|
||||||
|
idirs=
|
||||||
|
if test -f inst-apps; then
|
||||||
|
idirs=`cat inst-apps`
|
||||||
|
else
|
||||||
|
idirs=`ls -1 | sort`
|
||||||
|
fi
|
||||||
|
|
||||||
|
compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1`
|
||||||
|
compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1`
|
||||||
|
for i in $idirs; do
|
||||||
|
if test -f $i/Makefile.am; then
|
||||||
|
case " $compilefirst $compilelast " in
|
||||||
|
*" $i "*) ;;
|
||||||
|
*) dirs="$dirs $i"
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
: > ./_SUBDIRS
|
||||||
|
|
||||||
|
for d in $compilefirst; do
|
||||||
|
echo $d >> ./_SUBDIRS
|
||||||
|
done
|
||||||
|
|
||||||
|
(for d in $dirs; do
|
||||||
|
list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1`
|
||||||
|
for s in $list; do
|
||||||
|
echo $s $d
|
||||||
|
done
|
||||||
|
list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1`
|
||||||
|
for s in $list; do
|
||||||
|
echo $d $s
|
||||||
|
done
|
||||||
|
echo $d $d
|
||||||
|
done ) | tsort >> ./_SUBDIRS
|
||||||
|
|
||||||
|
for d in $compilelast; do
|
||||||
|
echo $d >> ./_SUBDIRS
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -r subdirs && cmp -s subdirs _SUBDIRS; then
|
||||||
|
rm -f _SUBDIRS
|
||||||
|
fi
|
||||||
|
test -r _SUBDIRS && mv _SUBDIRS subdirs || true
|
||||||
|
}
|
||||||
|
|
||||||
|
Makefile_am()
|
||||||
|
{
|
||||||
|
if test -f Makefile.am.in; then
|
||||||
|
compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1`
|
||||||
|
compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1`
|
||||||
|
|
||||||
|
idirs=
|
||||||
|
dirs=
|
||||||
|
if test -f inst-apps; then
|
||||||
|
idirs=`cat inst-apps`
|
||||||
|
else
|
||||||
|
idirs=`cat subdirs`
|
||||||
|
fi
|
||||||
|
for i in $idirs; do
|
||||||
|
case " $compilefirst $compilelast " in
|
||||||
|
*" $i "*) ;;
|
||||||
|
*) dirs="$dirs $i"
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
adds=`fgrep '$(top_srcdir)/acinclude.m4:' Makefile.am.in | sed -e 's,^[^:]*: *,,; s,\$(top_srcdir)/,,g'`
|
||||||
|
if echo "$adds" | fgrep "*" >/dev/null ; then
|
||||||
|
adds=`ls -d -1 $adds 2>/dev/null`
|
||||||
|
fgrep -v '$(top_srcdir)/acinclude.m4:' Makefile.am.in > Makefile.am.in.adds
|
||||||
|
str='$(top_srcdir)/acinclude.m4:'
|
||||||
|
for add in $adds; do
|
||||||
|
str="$str \$(top_srcdir)/$add"
|
||||||
|
done
|
||||||
|
echo $str >> Makefile.am.in.adds
|
||||||
|
else
|
||||||
|
cat Makefile.am.in > Makefile.am.in.adds
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat Makefile.am.in.adds | \
|
||||||
|
sed -e 's,^\s*\(COMPILE_BEFORE.*\),# \1,' | \
|
||||||
|
sed -e 's,^\s*\(COMPILE_AFTER.*\),# \1,' > Makefile.am
|
||||||
|
echo "SUBDIRS="'$(TOPSUBDIRS)' >> Makefile.am
|
||||||
|
rm Makefile.am.in.adds
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
acinclude_m4()
|
||||||
|
{
|
||||||
|
echo "*** Creating acinclude.m4"
|
||||||
|
adds=
|
||||||
|
if grep '\$(top_srcdir)/acinclude.m4:' $makefile_am >/dev/null; then
|
||||||
|
strip_makefile
|
||||||
|
rm -f acinclude.m4
|
||||||
|
adds=`grep '\$(top_srcdir)/acinclude.m4:' $makefile_wo | sed -e 's,^[^:]*: *,,; s,\$(top_srcdir),.,g'`
|
||||||
|
if echo $adds | fgrep "*" >/dev/null ; then
|
||||||
|
adds=`ls -d -1 $adds 2>/dev/null`
|
||||||
|
else
|
||||||
|
$MAKE -f $makefile_wo top_srcdir=. ./acinclude.m4 || exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
rm -f acinclude.m4
|
||||||
|
fi
|
||||||
|
# if it wasn't created up to now, then we do it better
|
||||||
|
if test ! -f acinclude.m4; then
|
||||||
|
cat admin/acinclude.m4.in admin/libtool.m4.in admin/pkg.m4.in $adds > acinclude.m4
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
package_merge()
|
||||||
|
{
|
||||||
|
catalogs=$POFILES
|
||||||
|
for cat in $catalogs; do
|
||||||
|
msgmerge -o $cat.new $cat $PACKAGE.pot
|
||||||
|
if test -s $cat.new; then
|
||||||
|
grep -v "\"POT-Creation" $cat.new > $cat.new.2
|
||||||
|
grep -v "\"POT-Creation" $cat >> $cat.new.1
|
||||||
|
if diff $cat.new.1 $cat.new.2; then
|
||||||
|
rm $cat.new
|
||||||
|
else
|
||||||
|
mv $cat.new $cat
|
||||||
|
fi
|
||||||
|
rm -f $cat.new.1 $cat.new.2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
extract_messages()
|
||||||
|
{
|
||||||
|
podir=${podir:-$PWD/po}
|
||||||
|
files=`find . -name Makefile.am | xargs egrep -l '^messages:' `
|
||||||
|
dirs=`for i in $files; do echo \`dirname $i\`; done`
|
||||||
|
tmpname="$PWD/messages.log"
|
||||||
|
export PATH=$PATH:/opt/kde3/bin
|
||||||
|
if test -z "$EXTRACTRC"; then EXTRACTRC=extractrc ; fi
|
||||||
|
if test -z "$PREPARETIPS"; then PREPARETIPS=preparetips ; fi
|
||||||
|
export EXTRACTRC PREPARETIPS
|
||||||
|
|
||||||
|
for subdir in $dirs; do
|
||||||
|
test -z "$VERBOSE" || echo "Making messages in $subdir"
|
||||||
|
(cd $subdir
|
||||||
|
if test -n "`grep -e '^messages:.*rc.cpp' Makefile.am`"; then
|
||||||
|
$EXTRACTRC *.rc *.ui *.kcfg > rc.cpp
|
||||||
|
else
|
||||||
|
candidates=`ls -1 *.rc *.ui *.kcfg 2>/dev/null`
|
||||||
|
if test -n "$candidates"; then
|
||||||
|
echo "$subdir has *.rc, *.ui or *.kcfg files, but not correct messages line"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if find . -name \*.c\* -o -name \*.h\* | fgrep -v ".svn" | xargs fgrep -s -q KAboutData ; then
|
||||||
|
echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp
|
||||||
|
else echo " " > _translatorinfo.cpp
|
||||||
|
fi
|
||||||
|
perl -e '$mes=0; while (<STDIN>) { next if (/^(if\s|else\s|endif)/); if (/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/$\\(XGETTEXT\)/ && / -o/) { s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile
|
||||||
|
|
||||||
|
kdepotpath=${includedir:-`kde-config --expandvars --install include`}/kde.pot
|
||||||
|
if ! test -f $kdepotpath; then
|
||||||
|
kdepotpath=`kde-config --expandvars --prefix`/include/kde.pot
|
||||||
|
fi
|
||||||
|
|
||||||
|
$MAKE -s -f _transMakefile podir=$podir EXTRACTRC="$EXTRACTRC" PREPARETIPS="$PREPARETIPS" srcdir=. \
|
||||||
|
XGETTEXT="${XGETTEXT:-xgettext} --foreign-user -C -ci18n -ki18n -ktr2i18n -kI18N_NOOP -kI18N_NOOP2 -kaliasLocale -x $kdepotpath" messages
|
||||||
|
exit_code=$?
|
||||||
|
if test "$exit_code" != 0; then
|
||||||
|
echo "make exit code: $exit_code"
|
||||||
|
fi
|
||||||
|
) 2>&1 | grep -v '^make\[1\]' > $tmpname
|
||||||
|
test -s $tmpname && { echo $subdir ; cat "$tmpname"; }
|
||||||
|
test -f $subdir/rc.cpp && rm -f $subdir/rc.cpp
|
||||||
|
rm -f $subdir/_translatorinfo.cpp
|
||||||
|
rm -f $subdir/_transMakefile
|
||||||
|
done
|
||||||
|
rm -f $tmpname
|
||||||
|
}
|
||||||
|
|
||||||
|
package_messages()
|
||||||
|
{
|
||||||
|
rm -rf po.backup
|
||||||
|
mkdir po.backup
|
||||||
|
|
||||||
|
for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do
|
||||||
|
egrep -v '^#[^,]' po/$i | egrep '^.*[^ ]+.*$' | grep -v "\"POT-Creation" > po.backup/$i
|
||||||
|
cat po/$i > po.backup/backup_$i
|
||||||
|
touch -r po/$i po.backup/backup_$i
|
||||||
|
rm po/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
extract_messages
|
||||||
|
|
||||||
|
for i in `ls -1 po.backup/*.pot 2>/dev/null | sed -e "s#po.backup/##" | egrep -v '^backup_'`; do
|
||||||
|
test -f po/$i || echo "disappeared: $i"
|
||||||
|
done
|
||||||
|
for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do
|
||||||
|
sed -e 's,^"Content-Type: text/plain; charset=CHARSET\\n"$,"Content-Type: text/plain; charset=UTF-8\\n",' po/$i > po/$i.new && mv po/$i.new po/$i
|
||||||
|
#msgmerge -q -o po/$i po/$i po/$i
|
||||||
|
egrep -v '^#[^,]' po/$i | egrep '^.*[^ ]+.*$' | grep -v "\"POT-Creation" > temp.pot
|
||||||
|
if test -f po.backup/$i && ! cmp -s temp.pot po.backup/$i; then
|
||||||
|
echo "will update $i"
|
||||||
|
else
|
||||||
|
if test -f po.backup/backup_$i; then
|
||||||
|
test -z "$VERBOSE" || echo "I'm restoring $i"
|
||||||
|
mv po.backup/backup_$i po/$i
|
||||||
|
rm po.backup/$i
|
||||||
|
else
|
||||||
|
echo "will add $i"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
rm -f temp.pot
|
||||||
|
rm -rf po.backup
|
||||||
|
}
|
||||||
|
|
||||||
|
# Make sure that sorting is always done the same way
|
||||||
|
LC_ALL=C
|
||||||
|
export LC_ALL
|
||||||
|
unset LANG || :
|
||||||
|
unset LC_CTYPE || :
|
||||||
|
unset LANGUAGE || :
|
||||||
|
|
||||||
|
unset CDPATH || :
|
||||||
|
admindir=`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
|
||||||
|
test "x$admindir" = "x$0" && admindir=.
|
||||||
|
|
||||||
|
test "x$MAKE" = x && MAKE=make
|
||||||
|
makefile_am=Makefile.am
|
||||||
|
makefile_wo=Makefile.am.wo
|
||||||
|
if test -f Makefile.am.in; then
|
||||||
|
makefile_am=Makefile.am.in
|
||||||
|
makefile_wo=Makefile.am.in.wo
|
||||||
|
rm -f $makefile_wo
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Call script to find autoconf and friends. Uses eval since the script outputs
|
||||||
|
# sh-compatible code.
|
||||||
|
eval `$admindir/detect-autoconf.pl`
|
||||||
|
|
||||||
|
###
|
||||||
|
### Main
|
||||||
|
###
|
||||||
|
|
||||||
|
arg=`echo $1 | tr .- __`
|
||||||
|
case $arg in
|
||||||
|
cvs | dist | subdir_dist | configure_in | configure_files | subdirs | \
|
||||||
|
cvs_clean | package_merge | package_messages | Makefile_am | acinclude_m4 | extract_messages ) $arg ;;
|
||||||
|
configure ) call_and_fix_autoconf ;;
|
||||||
|
* ) echo "Usage: cvs.sh <target>"
|
||||||
|
echo "Target can be one of:"
|
||||||
|
echo " cvs svn dist"
|
||||||
|
echo " configure.in configure.files"
|
||||||
|
echo " package-merge package-messages"
|
||||||
|
echo ""
|
||||||
|
echo "Usage: anything but $1"
|
||||||
|
exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -f $makefile_wo; then
|
||||||
|
rm $makefile_wo
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
@ -0,0 +1,43 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
use Shell qw(mv cp mkdir rm) ;
|
||||||
|
use File::Find;
|
||||||
|
use Cwd;
|
||||||
|
|
||||||
|
$origPwd = `pwd`;
|
||||||
|
chomp $origPwd;
|
||||||
|
|
||||||
|
$kde_prefix = "/usr";
|
||||||
|
$sysconfdir = "/etc";
|
||||||
|
$kde_includedir = "$kde_prefix/include/kde";
|
||||||
|
$infodir = "$kde_prefix/share/info";
|
||||||
|
$mandir = "$kde_prefix/share/man";
|
||||||
|
$qtdir = "/usr/share/qt3";
|
||||||
|
|
||||||
|
$kde_cgidir = "$kde_prefix/lib/cgi-bin";
|
||||||
|
$kde_confdir = "$sysconfdir/kde3";
|
||||||
|
$kde_htmldir = "$kde_prefix/share/doc/kde/HTML";
|
||||||
|
|
||||||
|
if (defined $ENV{DEB_BUILD_OPTIONS} &&
|
||||||
|
$ENV{DEB_BUILD_OPTIONS} =~ /\bnostrip\b/) {
|
||||||
|
$enable_debug="--enable-debug=full";
|
||||||
|
} else {
|
||||||
|
$enable_debug="--disable-debug";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (@ARGV && $ARGV[0] eq 'echodirs') {
|
||||||
|
print STDOUT "export kde_prefix=$kde_prefix\n";
|
||||||
|
print STDOUT "export sysconfdir=$sysconfdir\n";
|
||||||
|
print STDOUT "export kde_includedir=$kde_includedir\n";
|
||||||
|
print STDOUT "export infodir=$infodir\n";
|
||||||
|
print STDOUT "export mandir=$mandir\n";
|
||||||
|
print STDOUT "export qtdir=$qtdir\n";
|
||||||
|
|
||||||
|
print STDOUT "export kde_cgidir=$kde_cgidir\n";
|
||||||
|
print STDOUT "export kde_confdir=$kde_confdir\n";
|
||||||
|
print STDOUT "export kde_htmldir=$kde_htmldir\n";
|
||||||
|
|
||||||
|
print STDOUT "configkde=$enable_debug --disable-rpath --prefix=\$(kde_prefix) --sysconfdir=\$(sysconfdir) --includedir=\$(kde_includedir) --infodir=\$(infodir) --mandir=\$(mandir) --with-qt-dir=\$(qtdir)\n";
|
||||||
|
|
||||||
|
exit
|
||||||
|
}
|
@ -0,0 +1,530 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
|
||||||
|
scriptversion=2005-07-09.11
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
# 02110-1301, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||||
|
as side-effects.
|
||||||
|
|
||||||
|
Environment variables:
|
||||||
|
depmode Dependency tracking mode.
|
||||||
|
source Source file read by `PROGRAMS ARGS'.
|
||||||
|
object Object file output by `PROGRAMS ARGS'.
|
||||||
|
DEPDIR directory where to store dependencies.
|
||||||
|
depfile Dependency file to output.
|
||||||
|
tmpdepfile Temporary file to use when outputing dependencies.
|
||||||
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "depcomp $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||||
|
depfile=${depfile-`echo "$object" |
|
||||||
|
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||||
|
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
|
||||||
|
# Some modes work just like other modes, but use different flags. We
|
||||||
|
# parameterize here, but still list the modes in the big case below,
|
||||||
|
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||||
|
# here, because this file can only contain one case statement.
|
||||||
|
if test "$depmode" = hp; then
|
||||||
|
# HP compiler uses -M and no extra arg.
|
||||||
|
gccflag=-M
|
||||||
|
depmode=gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = dashXmstdout; then
|
||||||
|
# This is just like dashmstdout with a different argument.
|
||||||
|
dashmflag=-xM
|
||||||
|
depmode=dashmstdout
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$depmode" in
|
||||||
|
gcc3)
|
||||||
|
## gcc 3 implements dependency tracking that does exactly what
|
||||||
|
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||||
|
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||||
|
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
mv "$tmpdepfile" "$depfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
gcc)
|
||||||
|
## There are various ways to get dependency output from gcc. Here's
|
||||||
|
## why we pick this rather obscure method:
|
||||||
|
## - Don't want to use -MD because we'd like the dependencies to end
|
||||||
|
## up in a subdir. Having to rename by hand is ugly.
|
||||||
|
## (We might end up doing this anyway to support other compilers.)
|
||||||
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||||
|
## -MM, not -M (despite what the docs say).
|
||||||
|
## - Using -M directly means running the compiler twice (even worse
|
||||||
|
## than renaming).
|
||||||
|
if test -z "$gccflag"; then
|
||||||
|
gccflag=-MD,
|
||||||
|
fi
|
||||||
|
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||||
|
## The second -e expression handles DOS-style file names with drive letters.
|
||||||
|
sed -e 's/^[^:]*: / /' \
|
||||||
|
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||||
|
## This next piece of magic avoids the `deleted header file' problem.
|
||||||
|
## The problem is that when a header file which appears in a .P file
|
||||||
|
## is deleted, the dependency causes make to die (because there is
|
||||||
|
## typically no way to rebuild the header). We avoid this by adding
|
||||||
|
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||||
|
## this for us directly.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" |
|
||||||
|
## Some versions of gcc put a space before the `:'. On the theory
|
||||||
|
## that the space means something, we add a space to the output as
|
||||||
|
## well.
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
hp)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
sgi)
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||||
|
else
|
||||||
|
"$@" -MDupdate "$tmpdepfile"
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
|
||||||
|
# Clip off the initial element (the dependent). Don't try to be
|
||||||
|
# clever and replace this with sed code, as IRIX sed won't handle
|
||||||
|
# lines with more than a fixed number of characters (4096 in
|
||||||
|
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||||
|
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||||
|
# dependency line.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||||
|
tr '
|
||||||
|
' ' ' >> $depfile
|
||||||
|
echo >> $depfile
|
||||||
|
|
||||||
|
# The second pass generates a dummy entry for each header file.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||||
|
>> $depfile
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
aix)
|
||||||
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
|
# in a .u file. In older versions, this file always lives in the
|
||||||
|
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||||
|
# start of each line; $object doesn't have directory information.
|
||||||
|
# Version 6 uses the directory in both cases.
|
||||||
|
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" -Wc,-M
|
||||||
|
else
|
||||||
|
"$@" -M
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then :
|
||||||
|
else
|
||||||
|
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
outname="$stripped.o"
|
||||||
|
# Each line is of the form `foo.o: dependent.h'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
icc)
|
||||||
|
# Intel's C compiler understands `-MD -MF file'. However on
|
||||||
|
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||||
|
# ICC 7.0 will fill foo.d with something like
|
||||||
|
# foo.o: sub/foo.c
|
||||||
|
# foo.o: sub/foo.h
|
||||||
|
# which is wrong. We want:
|
||||||
|
# sub/foo.o: sub/foo.c
|
||||||
|
# sub/foo.o: sub/foo.h
|
||||||
|
# sub/foo.c:
|
||||||
|
# sub/foo.h:
|
||||||
|
# ICC 7.1 will output
|
||||||
|
# foo.o: sub/foo.c sub/foo.h
|
||||||
|
# and will wrap long lines using \ :
|
||||||
|
# foo.o: sub/foo.c ... \
|
||||||
|
# sub/foo.h ... \
|
||||||
|
# ...
|
||||||
|
|
||||||
|
"$@" -MD -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
# Each line is of the form `foo.o: dependent.h',
|
||||||
|
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||||
|
sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
tru64)
|
||||||
|
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||||
|
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||||
|
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||||
|
# dependencies in `foo.d' instead, so we check for that too.
|
||||||
|
# Subdirectories are respected.
|
||||||
|
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||||
|
test "x$dir" = "x$object" && dir=
|
||||||
|
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||||
|
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
# With Tru64 cc, shared objects can also be used to make a
|
||||||
|
# static library. This mecanism is used in libtool 1.4 series to
|
||||||
|
# handle both shared and static libraries in a single compilation.
|
||||||
|
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||||
|
#
|
||||||
|
# With libtool 1.5 this exception was removed, and libtool now
|
||||||
|
# generates 2 separate objects for the 2 libraries. These two
|
||||||
|
# compilations output dependencies in in $dir.libs/$base.o.d and
|
||||||
|
# in $dir$base.o.d. We have to check for both files, because
|
||||||
|
# one of the two compilations can be disabled. We should prefer
|
||||||
|
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||||
|
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||||
|
# the former would cause a distcleancheck panic.
|
||||||
|
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
||||||
|
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||||
|
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||||
|
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||||
|
"$@" -Wc,-MD
|
||||||
|
else
|
||||||
|
tmpdepfile1=$dir$base.o.d
|
||||||
|
tmpdepfile2=$dir$base.d
|
||||||
|
tmpdepfile3=$dir$base.d
|
||||||
|
tmpdepfile4=$dir$base.d
|
||||||
|
"$@" -MD
|
||||||
|
fi
|
||||||
|
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||||
|
do
|
||||||
|
test -f "$tmpdepfile" && break
|
||||||
|
done
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||||
|
# That's a tab and a space in the [].
|
||||||
|
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
#nosideeffect)
|
||||||
|
# This comment above is used by automake to tell side-effect
|
||||||
|
# dependency tracking mechanisms from slower ones.
|
||||||
|
|
||||||
|
dashmstdout)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout, regardless of -o.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
test -z "$dashmflag" && dashmflag=-M
|
||||||
|
# Require at least two characters before searching for `:'
|
||||||
|
# in the target name. This is to cope with DOS-style filenames:
|
||||||
|
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||||
|
"$@" $dashmflag |
|
||||||
|
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
dashXmstdout)
|
||||||
|
# This case only exists to satisfy depend.m4. It is never actually
|
||||||
|
# run, as this mode is specially recognized in the preamble.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
makedepend)
|
||||||
|
"$@" || exit $?
|
||||||
|
# Remove any Libtool call
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
# X makedepend
|
||||||
|
shift
|
||||||
|
cleared=no
|
||||||
|
for arg in "$@"; do
|
||||||
|
case $cleared in
|
||||||
|
no)
|
||||||
|
set ""; shift
|
||||||
|
cleared=yes ;;
|
||||||
|
esac
|
||||||
|
case "$arg" in
|
||||||
|
-D*|-I*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
# Strip any option that makedepend may not understand. Remove
|
||||||
|
# the object too, otherwise makedepend will parse it as a source file.
|
||||||
|
-*|$object)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||||
|
touch "$tmpdepfile"
|
||||||
|
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||||
|
' | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||||
|
;;
|
||||||
|
|
||||||
|
cpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
"$@" -E |
|
||||||
|
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
|
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||||
|
sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
cat < "$tmpdepfile" >> "$depfile"
|
||||||
|
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
msvisualcpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout, regardless of -o,
|
||||||
|
# because we must use -o when running libtool.
|
||||||
|
"$@" || exit $?
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case "$arg" in
|
||||||
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||||
|
set fnord "$@"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
"$@" -E |
|
||||||
|
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||||
|
echo " " >> "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
none)
|
||||||
|
exec "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Unknown depmode $depmode" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
@ -0,0 +1,19 @@
|
|||||||
|
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in $(top_srcdir)/admin/cvs.sh $(top_srcdir)/admin/pkg.m4.in
|
||||||
|
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh acinclude_m4
|
||||||
|
|
||||||
|
$(top_srcdir)/configure.in: $(top_srcdir)/subdirs $(top_srcdir)/configure.files $(top_srcdir)/admin/cvs.sh
|
||||||
|
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh configure_in
|
||||||
|
|
||||||
|
$(top_srcdir)/configure.files: $(top_srcdir)/subdirs $(CONF_FILES)
|
||||||
|
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh configure.files $(top_srcdir)/admin/cvs.sh
|
||||||
|
|
||||||
|
$(top_srcdir)/Makefile.am: $(top_srcdir)/Makefile.am.in $(top_srcdir)/subdirs $(top_srcdir)/admin/cvs.sh
|
||||||
|
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh Makefile_am
|
||||||
|
|
||||||
|
$(top_srcdir)/subdirs: $(top_srcdir)/Makefile.am.in $(top_srcdir)/admin/cvs.sh
|
||||||
|
@cd $(top_srcdir) && $(SHELL) admin/cvs.sh subdirs
|
||||||
|
|
||||||
|
# defining default rules for files that may not be present
|
||||||
|
$(top_srcdir)/Makefile.am.in:
|
||||||
|
$(CONF_FILES):
|
||||||
|
|
@ -0,0 +1,256 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
# Try to locate best version of auto*
|
||||||
|
# By Michael Pyne <michael.pyne@kdemail.net>
|
||||||
|
#
|
||||||
|
# Copyright (c) 2005.
|
||||||
|
# This code is public domain. You may use it however you like (including
|
||||||
|
# relicensing).
|
||||||
|
|
||||||
|
# Emulate the 'which' program.
|
||||||
|
sub which
|
||||||
|
{
|
||||||
|
my $prog = shift;
|
||||||
|
my @paths = split(/:/, $ENV{'PATH'});
|
||||||
|
|
||||||
|
for $path (@paths)
|
||||||
|
{
|
||||||
|
return "$path/$prog" if -x "$path/$prog";
|
||||||
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Subroutine to lexicographically compare two version strings, a and b.
|
||||||
|
# If a > b, 1 is returned.
|
||||||
|
# If a == b, 0 is returned.
|
||||||
|
# If a < b, -1 is returned.
|
||||||
|
#
|
||||||
|
# If the strings are of uneven number length then the shorter string is
|
||||||
|
# prepended by enough zeroes to make the two string lengths equal in order to
|
||||||
|
# allow an accurate comparison. Note that the zero-padding only occurs in
|
||||||
|
# between version separators (i.e. 1.6 and 1.10, results in 1.06 vs. 1.10).
|
||||||
|
# Parts of the version ending in -foo (or any other text) are not considered
|
||||||
|
# when doing the compare. (i.e. 2.53a vs 2.53 doesn't end up in 2.53a vs.
|
||||||
|
# 2.053)
|
||||||
|
sub compareVersions
|
||||||
|
{
|
||||||
|
my ($a, $b) = @_;
|
||||||
|
|
||||||
|
# Split the strings up by '.' (version separator) and start comparing digit
|
||||||
|
# length.
|
||||||
|
|
||||||
|
my @aParts = split(/\./, $a);
|
||||||
|
my @bParts = split(/\./, $b);
|
||||||
|
|
||||||
|
# Make the arrays equal in length by adding missing zeroes to the end of the
|
||||||
|
# version.
|
||||||
|
push @aParts, '0' while scalar @aParts < scalar @bParts;
|
||||||
|
push @bParts, '0' while scalar @bParts < scalar @aParts;
|
||||||
|
|
||||||
|
# Now compare each individual portion.
|
||||||
|
for (my $i = 0; $i < scalar @aParts; ++$i)
|
||||||
|
{
|
||||||
|
# Make sure that any portion that has numbers is contiguous. I'm sure
|
||||||
|
# there's a technique for saving stuff like 2.52a2 but I don't feel
|
||||||
|
# like implementing it.
|
||||||
|
if ($aParts[$i] !~ /^[^\d]*\d+[^\d]*$/ or
|
||||||
|
$bParts[$i] !~ /^[^\d]*\d+[^\d]*$/)
|
||||||
|
{
|
||||||
|
die "Not able to compare $a to $b!\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
my ($aDigits) = ($aParts[$i] =~ /(\d+)/);
|
||||||
|
my ($bDigits) = ($bParts[$i] =~ /(\d+)/);
|
||||||
|
|
||||||
|
# Perl is $MODERATELY_INSULTING_TERM, don't remove the parentheses in
|
||||||
|
# the delta calculation below.
|
||||||
|
my $delta = (length $aDigits) - (length $bDigits);
|
||||||
|
if ($delta < 0) # b is longer
|
||||||
|
{
|
||||||
|
my $replacement = ('0' x (-$delta)) . $aDigits;
|
||||||
|
$aParts[$i] =~ s/$aDigits/$replacement/;
|
||||||
|
}
|
||||||
|
elsif ($delta > 0) # a is longer
|
||||||
|
{
|
||||||
|
my $replacement = ('0' x $delta) . $bDigits;
|
||||||
|
$bParts[$i] =~ s/$bDigits/$replacement/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Arrays now have standardized version components, let's re-merge them
|
||||||
|
# to strings to do the compare.
|
||||||
|
my $newA = join('.', @aParts);
|
||||||
|
my $newB = join('.', @bParts);
|
||||||
|
|
||||||
|
return 1 if ($newA gt $newB);
|
||||||
|
return -1 if ($newA lt $newB);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Subroutine to determine the highest installed version of the given program,
|
||||||
|
# searching from the given paths.
|
||||||
|
sub findBest
|
||||||
|
{
|
||||||
|
my ($program, @paths) = @_;
|
||||||
|
my $best_version_found = '0'; # Deliberately a string.
|
||||||
|
my %versions;
|
||||||
|
my %minimumVersions = (
|
||||||
|
'autoconf' => '2.5',
|
||||||
|
'automake' => '1.6',
|
||||||
|
);
|
||||||
|
my $sgn; # Used for compareVersions results.
|
||||||
|
|
||||||
|
# Allow user to use environment variable to override search.
|
||||||
|
return $ENV{uc $program} if $ENV{uc $program};
|
||||||
|
|
||||||
|
for $prefix (@paths)
|
||||||
|
{
|
||||||
|
@files = glob "$prefix/$program*";
|
||||||
|
for $file (@files)
|
||||||
|
{
|
||||||
|
# Don't check non-executable scripts.
|
||||||
|
next unless -x $file;
|
||||||
|
|
||||||
|
($version) = $file =~ /$prefix\/$program-?(.*)$/;
|
||||||
|
|
||||||
|
# Don't check the -wrapper ones (or any other non program one).
|
||||||
|
# The real deal should start with a version number, or have no
|
||||||
|
# suffix at all.
|
||||||
|
next if $version =~ /^[^\d]/;
|
||||||
|
|
||||||
|
# Special case some programs to make sure it has a minimum version.
|
||||||
|
if (not $version and exists $minimumVersions{$program})
|
||||||
|
{
|
||||||
|
my $min_version = $minimumVersions{$program};
|
||||||
|
my $versionOutput = `$program --version 2>/dev/null | head -n 1`;
|
||||||
|
|
||||||
|
# If we can't run the script to get the version it likely won't work later.
|
||||||
|
next unless $versionOutput;
|
||||||
|
|
||||||
|
# Use number.number for version (we don't need the excess in general).
|
||||||
|
($versionOutput) = ($versionOutput =~ /(\d+\.\d+)/);
|
||||||
|
|
||||||
|
# compareVersions returns -1 if the left argument is less than
|
||||||
|
# the right argument. It can also die for invalid input so
|
||||||
|
# wrap with eval.
|
||||||
|
eval {
|
||||||
|
$sgn = compareVersions($versionOutput, $min_version);
|
||||||
|
};
|
||||||
|
|
||||||
|
# $@ would be set if an error was encountered.
|
||||||
|
if ($@ or not $versionOutput or $sgn == -1) {
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# If no version suffix then use it in favor of a versioned autotool
|
||||||
|
# since the ever-popular WANT_AUTOFOO should then work (in theory).
|
||||||
|
return $file unless $version;
|
||||||
|
|
||||||
|
# Emulate 'which', and abort if we've already seen this version.
|
||||||
|
next if exists $versions{$version};
|
||||||
|
|
||||||
|
# Save filename of program.
|
||||||
|
$versions{$version} = $file;
|
||||||
|
|
||||||
|
# Use string comparison so that e.g. 253a will be > 253 but < 254.
|
||||||
|
# See above about the need for eval.
|
||||||
|
eval {
|
||||||
|
$sgn = compareVersions($version, $best_version_found);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (not $@ and $sgn == 1)
|
||||||
|
{
|
||||||
|
$best_version_found = $version;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $versions{$best_version_found};
|
||||||
|
}
|
||||||
|
|
||||||
|
# Find an appropriate "which" program for later use by the shell script calling
|
||||||
|
# us.
|
||||||
|
sub findWhich
|
||||||
|
{
|
||||||
|
for $candidate ('type -p', 'which', 'type')
|
||||||
|
{
|
||||||
|
$test = `$candidate sh 2>/dev/null`;
|
||||||
|
chomp $test;
|
||||||
|
|
||||||
|
return $candidate if -x $test;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Uses which() to find a program unless the user provided its path in the
|
||||||
|
# environment (the upper case program name is searched).
|
||||||
|
sub findProgram
|
||||||
|
{
|
||||||
|
$suffix = ""; # For use if @_ has only one param.
|
||||||
|
my ($program, $suffix) = @_;
|
||||||
|
|
||||||
|
return $ENV{uc $program} if $ENV{uc $program};
|
||||||
|
return which("$program$suffix");
|
||||||
|
}
|
||||||
|
|
||||||
|
# SCRIPT STARTS.
|
||||||
|
|
||||||
|
# Search in path.
|
||||||
|
@paths = split(/:/, $ENV{'PATH'});
|
||||||
|
|
||||||
|
# Make sure at least /usr/bin and /usr/local/bin are in this search.
|
||||||
|
unshift @paths, '/usr/local/bin' unless grep $_ eq '/usr/local/bin', @paths;
|
||||||
|
unshift @paths, '/usr/bin' unless grep $_ eq '/usr/bin', @paths;
|
||||||
|
|
||||||
|
$autoconf = findBest('autoconf', @paths);
|
||||||
|
($autoconf_suffix) = $autoconf =~ /.*autoconf(.*)$/;
|
||||||
|
|
||||||
|
# Find matching autoconf companions.
|
||||||
|
$autoheader = findProgram('autoheader', $autoconf_suffix);
|
||||||
|
$autom4te = findProgram('autom4te', $autoconf_suffix);
|
||||||
|
|
||||||
|
# Get best automake, and look for unsermake to possibly override it.
|
||||||
|
$automake = findBest('automake', @paths);
|
||||||
|
$unsermake = "";
|
||||||
|
# backward compatible: if $UNSERMAKE points to a path, use it
|
||||||
|
$unsermake = findProgram('unsermake') if (defined($ENV{'UNSERMAKE'}) and $ENV{'UNSERMAKE'} =~ /\//);
|
||||||
|
# new compatible: if it says 'yes', use the one from path
|
||||||
|
$unsermake = which('unsermake') if ($ENV{'UNSERMAKE'} ne 'no');
|
||||||
|
|
||||||
|
($automake_suffix) = $automake =~ /.*automake(.*)$/;
|
||||||
|
|
||||||
|
# Find matching automake companions.
|
||||||
|
$aclocal = findProgram('aclocal', $automake_suffix);
|
||||||
|
|
||||||
|
# Use unsermake if we found it.
|
||||||
|
$automake = "$unsermake -c" if ($unsermake and $aclocal);
|
||||||
|
|
||||||
|
$which = findWhich();
|
||||||
|
|
||||||
|
# Make sure we have all of the needed programs.
|
||||||
|
for $i (qw'autoconf autoheader autom4te automake aclocal')
|
||||||
|
{
|
||||||
|
unless(${$i})
|
||||||
|
{
|
||||||
|
print STDERR "# Unable to find $i!!\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Print results in eval-able form.
|
||||||
|
print <<EOF;
|
||||||
|
AUTOCONF="$autoconf"
|
||||||
|
AUTOHEADER="$autoheader"
|
||||||
|
AUTOM4TE="$autom4te"
|
||||||
|
|
||||||
|
AUTOMAKE="$automake"
|
||||||
|
ACLOCAL="$aclocal"
|
||||||
|
|
||||||
|
WHICH="$which"
|
||||||
|
|
||||||
|
export AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE ACLOCAL WHICH
|
||||||
|
EOF
|
||||||
|
|
||||||
|
exit 0;
|
||||||
|
|
||||||
|
# vim: set noet ts=8 sw=4:
|
@ -0,0 +1,883 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# doxygen.sh Copyright (C) 2005 by Adriaan de Groot
|
||||||
|
# Based on some code from Doxyfile.am, among other things.
|
||||||
|
# License: GPL version 2.
|
||||||
|
# See file COPYING in kdelibs for details.
|
||||||
|
|
||||||
|
echo "*** doxygen.sh"
|
||||||
|
|
||||||
|
# Recurse handling is a little complicated, since normally
|
||||||
|
# subdir (given on the command-line) processing doesn't recurse
|
||||||
|
# but you can force it to do so.
|
||||||
|
recurse=1
|
||||||
|
recurse_given=NO
|
||||||
|
use_modulename=1
|
||||||
|
cleanup=YES
|
||||||
|
|
||||||
|
while test -n "$1" ; do
|
||||||
|
case "x$1" in
|
||||||
|
"x--no-cleanup" )
|
||||||
|
cleanup=NO
|
||||||
|
;;
|
||||||
|
"x--no-recurse" )
|
||||||
|
recurse=0
|
||||||
|
recurse_given=YES
|
||||||
|
;;
|
||||||
|
"x--recurse" )
|
||||||
|
recurse=1
|
||||||
|
recurse_given=YES
|
||||||
|
;;
|
||||||
|
"x--no-modulename" )
|
||||||
|
use_modulename=0
|
||||||
|
;;
|
||||||
|
"x--modulename" )
|
||||||
|
use_modulename=1
|
||||||
|
;;
|
||||||
|
"x--help" )
|
||||||
|
echo "doxygen.sh usage:"
|
||||||
|
echo "doxygen.sh [--no-recurse] [--no-modulename] <srcdir> [<subdir>]"
|
||||||
|
exit 2
|
||||||
|
;;
|
||||||
|
x--doxdatadir=* )
|
||||||
|
DOXDATA=`echo $1 | sed -e 's+--doxdatadir=++'`
|
||||||
|
;;
|
||||||
|
x--installdir=*)
|
||||||
|
PREFIX=`echo $1 | sed -e 's+--installdir=++'`
|
||||||
|
;;
|
||||||
|
x--* )
|
||||||
|
echo "Unknown option: $1"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
top_srcdir="$1"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
### Sanity check the mandatory "top srcdir" argument.
|
||||||
|
if test -z "$top_srcdir" ; then
|
||||||
|
echo "Usage: doxygen.sh <top_srcdir>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if test ! -d "$top_srcdir" ; then
|
||||||
|
echo "top_srcdir ($top_srcdir) is not a directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Normalize top_srcdir so it is an absolute path.
|
||||||
|
if expr "x$top_srcdir" : "x/" > /dev/null ; then
|
||||||
|
# top_srcdir is absolute already
|
||||||
|
:
|
||||||
|
else
|
||||||
|
top_srcdir=`cd "$top_srcdir" 2> /dev/null && pwd`
|
||||||
|
if test ! -d "$top_srcdir" ; then
|
||||||
|
echo "top_srcdir ($top_srcdir) is not a directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Sanity check and guess QTDOCDIR.
|
||||||
|
if test -z "$QTDOCDIR" ; then
|
||||||
|
if test -z "$QTDIR" ; then
|
||||||
|
for i in /usr/X11R6/share/doc/qt/html
|
||||||
|
do
|
||||||
|
QTDOCDIR="$i"
|
||||||
|
test -d "$QTDOCDIR" && break
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for i in share/doc/qt/html doc/html
|
||||||
|
do
|
||||||
|
QTDOCDIR="$QTDIR/$i"
|
||||||
|
test -d "$QTDOCDIR" && break
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test -z "$QTDOCDIR" || test ! -d "$QTDOCDIR" ; then
|
||||||
|
if test -z "$QTDOCDIR" ; then
|
||||||
|
echo "* QTDOCDIR could not be guessed."
|
||||||
|
else
|
||||||
|
echo "* QTDOCDIR does not name a directory."
|
||||||
|
fi
|
||||||
|
if test -z "$QTDOCTAG" ; then
|
||||||
|
echo "* QTDOCDIR set to \"\""
|
||||||
|
QTDOCDIR=""
|
||||||
|
else
|
||||||
|
echo "* But I'll use $QTDOCDIR anyway because of QTDOCTAG."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Get the "top srcdir", also its name, and handle the case that subdir "."
|
||||||
|
### is given (which would be top_srcdir then, so it's equal to none-given
|
||||||
|
### but no recursion either).
|
||||||
|
###
|
||||||
|
# top_srcdir="$1" # Already set by options processing
|
||||||
|
module_name=`basename "$top_srcdir"`
|
||||||
|
subdir="$2"
|
||||||
|
if test "x." = "x$subdir" ; then
|
||||||
|
subdir=""
|
||||||
|
if test "x$recurse_given" = "xNO" ; then
|
||||||
|
recurse=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test "x" != "x$subdir" ; then
|
||||||
|
# If no recurse option given explicitly, default to
|
||||||
|
# no recurse when processing subdirs given on the command-line.
|
||||||
|
if test "x$recurse_given" = "xNO" ; then
|
||||||
|
recurse=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$DOXDATA" || test ! -d "$DOXDATA" ; then
|
||||||
|
if test -n "$DOXDATA" ; then
|
||||||
|
echo "* \$DOXDATA is '$DOXDATA' which does not name a directory"
|
||||||
|
fi
|
||||||
|
DOXDATA="$top_srcdir/doc/common"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test ! -d "$DOXDATA" ; then
|
||||||
|
echo "* \$DOXDATA does not name a directory ( or is unset ), tried \"$DOXDATA\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$PREFIX" && test ! -d "$PREFIX" ; then
|
||||||
|
echo "* \$PREFIX does not name a directory, tried \"$PREFIX\""
|
||||||
|
echo "* \$PREFIX is disabled."
|
||||||
|
PREFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
### We need some values from top-level files, which
|
||||||
|
### are not preserved between invocations of this
|
||||||
|
### script, so factor it out for easy use.
|
||||||
|
create_doxyfile_in()
|
||||||
|
{
|
||||||
|
eval `grep 'VERSION="' "$top_srcdir/admin/cvs.sh"`
|
||||||
|
echo "PROJECT_NUMBER = $VERSION" > Doxyfile.in
|
||||||
|
grep '^KDE_INIT_DOXYGEN' "$top_srcdir/configure.in.in" | \
|
||||||
|
sed -e 's+[^[]*\[\([^]]*\)+PROJECT_NAME = "\1"+' \
|
||||||
|
-e 's+].*++' >> Doxyfile.in
|
||||||
|
}
|
||||||
|
|
||||||
|
apidoxdir="$module_name"-apidocs
|
||||||
|
test "x$use_modulename" = "x0" && apidoxdir="apidocs"
|
||||||
|
|
||||||
|
### If we're making the top subdir, create the structure
|
||||||
|
### for the apidox and initialize it. Otherwise, just use the
|
||||||
|
### structure assumed to be there.
|
||||||
|
if test -z "$subdir" ; then
|
||||||
|
if test ! -d "$apidoxdir" ; then
|
||||||
|
mkdir "$apidoxdir" > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
cd "$apidoxdir" > /dev/null 2>&1 || {
|
||||||
|
echo "Cannot create and cd into $apidoxdir"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
test -f "Doxyfile.in" || create_doxyfile_in
|
||||||
|
|
||||||
|
# Copy in logos and the like
|
||||||
|
for i in "favicon.ico" "kde_gear_64.png"
|
||||||
|
do
|
||||||
|
cp "$DOXDATA/$i" . > /dev/null 2> /dev/null
|
||||||
|
done
|
||||||
|
for i in "$top_srcdir/doc/api/Dox-"*.png
|
||||||
|
do
|
||||||
|
T=`basename "$i" | sed -e 's+Dox-++'`
|
||||||
|
test -f "$i" && cp "$i" "./$T" > /dev/null 2> /dev/null
|
||||||
|
done
|
||||||
|
|
||||||
|
top_builddir="."
|
||||||
|
srcdir="$1"
|
||||||
|
subdir="."
|
||||||
|
else
|
||||||
|
cd "$apidoxdir" > /dev/null 2>&1 || {
|
||||||
|
echo "Cannot cd into $apidoxdir -- maybe you need to"
|
||||||
|
echo "build the top-level dox first."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "x1" = "x$recurse" ; then
|
||||||
|
# OK, so --recurse was requested
|
||||||
|
if test ! -f "subdirs.top" ; then
|
||||||
|
echo "* No subdirs.top available in the $apidoxdir."
|
||||||
|
echo "* The --recurse option will be ignored."
|
||||||
|
recurse=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Read a single line (TODO: support \ continuations) from the Makefile.am.
|
||||||
|
### Used to extract variable assignments from it.
|
||||||
|
extract_line()
|
||||||
|
{
|
||||||
|
file="$2" ; test -z "$file" && file="$srcdir/Makefile.am"
|
||||||
|
pattern=`echo "$1" | tr + .`
|
||||||
|
grep "^$1" "$file" | \
|
||||||
|
sed -e "s+$pattern.*=\s*++"
|
||||||
|
}
|
||||||
|
|
||||||
|
### Handle the COMPILE_{FIRST,LAST,BEFORE,AFTER} part of Makefile.am
|
||||||
|
### in the toplevel. Copied from admin/cvs.sh. Licence presumed LGPL).
|
||||||
|
create_subdirs()
|
||||||
|
{
|
||||||
|
echo "* Sorting top-level subdirs"
|
||||||
|
dirs=
|
||||||
|
idirs=
|
||||||
|
if test -f "$top_srcdir/inst-apps"; then
|
||||||
|
idirs=`cat "$top_srcdir/"inst-apps`
|
||||||
|
else
|
||||||
|
idirs=`cd "$top_srcdir" && ls -1 | sort`
|
||||||
|
fi
|
||||||
|
|
||||||
|
compilefirst=""
|
||||||
|
compilelast=""
|
||||||
|
if test -f "$top_srcdir/"Makefile.am.in ; then
|
||||||
|
compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' "$top_srcdir/"Makefile.am.in | head -n 1`
|
||||||
|
compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' "$top_srcdir/"Makefile.am.in | head -n 1`
|
||||||
|
fi
|
||||||
|
for i in $idirs; do
|
||||||
|
if test -f "$top_srcdir/$i"/Makefile.am; then
|
||||||
|
case " $compilefirst $compilelast " in
|
||||||
|
*" $i "*) ;;
|
||||||
|
*) dirs="$dirs $i"
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
: > ./_SUBDIRS
|
||||||
|
|
||||||
|
for d in $compilefirst; do
|
||||||
|
echo $d >> ./_SUBDIRS
|
||||||
|
done
|
||||||
|
|
||||||
|
(for d in $dirs; do
|
||||||
|
list=""
|
||||||
|
if test -f "$top_srcdir/"Makefile.am.in ; then
|
||||||
|
list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" "$top_srcdir/"Makefile.am.in | head -n 1`
|
||||||
|
fi
|
||||||
|
for s in $list; do
|
||||||
|
echo $s $d
|
||||||
|
done
|
||||||
|
list=""
|
||||||
|
if test -f "$top_srcdir/"Makefile.am.in ; then
|
||||||
|
list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" "$top_srcdir/"Makefile.am.in | head -n 1`
|
||||||
|
fi
|
||||||
|
for s in $list; do
|
||||||
|
echo $d $s
|
||||||
|
done
|
||||||
|
echo $d $d
|
||||||
|
done ) | tsort >> ./_SUBDIRS
|
||||||
|
|
||||||
|
for d in $compilelast; do
|
||||||
|
echo $d >> ./_SUBDIRS
|
||||||
|
done
|
||||||
|
|
||||||
|
test -r _SUBDIRS && mv _SUBDIRS subdirs.top || true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
### Add HTML header, footer, CSS tags to Doxyfile.
|
||||||
|
### Assumes $subdir is set. Argument is a string
|
||||||
|
### to stick in front of the file if needed.
|
||||||
|
apidox_htmlfiles()
|
||||||
|
{
|
||||||
|
dox_header="$top_srcdir/doc/api/$1header.html"
|
||||||
|
dox_footer="$top_srcdir/doc/api/$1footer.html"
|
||||||
|
dox_css="$top_srcdir/doc/api/doxygen.css"
|
||||||
|
test -f "$dox_header" || dox_header="$DOXDATA/$1header.html"
|
||||||
|
test -f "$dox_footer" || dox_footer="$DOXDATA/$1footer.html"
|
||||||
|
test -f "$dox_css" || dox_css="$DOXDATA/doxygen.css"
|
||||||
|
|
||||||
|
echo "HTML_HEADER = $dox_header" >> "$subdir/Doxyfile" ; \
|
||||||
|
echo "HTML_FOOTER = $dox_footer" >> "$subdir/Doxyfile" ; \
|
||||||
|
echo "HTML_STYLESHEET = $dox_css" >> "$subdir/Doxyfile"
|
||||||
|
}
|
||||||
|
|
||||||
|
apidox_specials()
|
||||||
|
{
|
||||||
|
line=`extract_line DOXYGEN_PROJECTNAME "$1"`
|
||||||
|
test -n "$line" && echo "PROJECT_NAME = \"$line\"" >> "$2"
|
||||||
|
}
|
||||||
|
|
||||||
|
apidox_local()
|
||||||
|
{
|
||||||
|
for i in "$top_srcdir/doc/api/Doxyfile.local"
|
||||||
|
do
|
||||||
|
if test -f "$i" ; then
|
||||||
|
cat "$i" >> "$subdir/Doxyfile"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
### Post-process HTML files by substituting in the menu files
|
||||||
|
#
|
||||||
|
# In non-top directories, both <!-- menu --> and <!-- gmenu -->
|
||||||
|
# are calculated and replaced. Top directories get an empty <!-- menu -->
|
||||||
|
# if any.
|
||||||
|
doxyndex()
|
||||||
|
{
|
||||||
|
# Special case top-level to have an empty MENU.
|
||||||
|
if test "x$subdir" = "x." ; then
|
||||||
|
MENU=""
|
||||||
|
htmldir="."
|
||||||
|
htmltop="$top_builddir" # Just ., presumably
|
||||||
|
echo "* Post-processing top-level files"
|
||||||
|
else
|
||||||
|
MENU="<ul>"
|
||||||
|
htmldir="$subdir/html"
|
||||||
|
htmltop="$top_builddir.." # top_builddir ends with /
|
||||||
|
echo "* Post-processing files in $htmldir"
|
||||||
|
|
||||||
|
# Build a little PHP file that maps class names to file
|
||||||
|
# names, for the quick-class-picker functionality.
|
||||||
|
# (The quick-class-picker is disabled due to styling
|
||||||
|
# problems in IE & FF).
|
||||||
|
(
|
||||||
|
echo "<?php \$map = array("; \
|
||||||
|
for htmlfile in `find $htmldir/ -type f -name "class[A-Z]*.html" | grep -v "\-members.html$"`; do
|
||||||
|
classname=`echo $htmlfile | sed -e "s,.*/class\\(.*\\).html,\1," -e "s,_1_1,::,g" -e "s,_01, ,g" -e "s,_4,>,g" -e "s+_00+,+g" -e "s+_3+<+g" | tr "[A-Z]" "[a-z]"`
|
||||||
|
echo " \"$classname\" => \"$htmlfile\","
|
||||||
|
done | sort ; \
|
||||||
|
echo ") ?>"
|
||||||
|
) > "$subdir/classmap.inc"
|
||||||
|
|
||||||
|
# This is a list of pairs, with / separators so we can use
|
||||||
|
# basename and dirname (a crude shell hack) to split them
|
||||||
|
# into parts. For each, if the file part exists (as a html
|
||||||
|
# file) tack it onto the MENU variable as a <li> with link.
|
||||||
|
for i in "Main Page/index" \
|
||||||
|
"Modules/modules" \
|
||||||
|
"Namespace List/namespaces" \
|
||||||
|
"Class Hierarchy/hierarchy" \
|
||||||
|
"Alphabetical List/classes" \
|
||||||
|
"Class List/annotated" \
|
||||||
|
"File List/files" \
|
||||||
|
"Directories/dirs" \
|
||||||
|
"Namespace Members/namespacemembers" \
|
||||||
|
"Class Members/functions" \
|
||||||
|
"Related Pages/pages"
|
||||||
|
do
|
||||||
|
NAME=`dirname "$i"`
|
||||||
|
FILE=`basename "$i"`
|
||||||
|
test -f "$htmldir/$FILE.html" && MENU="$MENU<li><a href=\"$FILE.html\">$NAME</a></li>"
|
||||||
|
done
|
||||||
|
|
||||||
|
MENU="$MENU</ul>"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Get the list of global Menu entries.
|
||||||
|
GMENU=`cat subdirs | tr -d '\n'`
|
||||||
|
|
||||||
|
PMENU=`grep '<!-- pmenu' "$htmldir/index.html" | sed -e 's+.*pmenu *++' -e 's+ *-->++' | awk '{ c=split($0,a,"/"); for (j=1; j<=c; j++) { printf " / <a href=\""; if (j==c) { printf("."); } for (k=j; k<c; k++) { printf "../"; } if (j<c) { printf("../html/index.html"); } printf "\">%s</a>\n" , a[j]; } }' | tr -d '\n'`
|
||||||
|
|
||||||
|
# Map the PHP file into HTML options so that
|
||||||
|
# it can be substituted in for the quick-class-picker.
|
||||||
|
CMENU=""
|
||||||
|
# For now, leave the CMENU disabled
|
||||||
|
CMENUBEGIN="<!--"
|
||||||
|
CMENUEND="-->"
|
||||||
|
|
||||||
|
if test "x$subdir" = "x." ; then
|
||||||
|
# Disable CMENU on toplevel anyway
|
||||||
|
CMENUBEGIN="<!--"
|
||||||
|
CMENUEND="-->"
|
||||||
|
else
|
||||||
|
test -f "$subdir/classmap.inc" && \
|
||||||
|
CMENU=`grep '=>' "$subdir/classmap.inc" | sed -e 's+"\([^"]*\)" => "'"$subdir/html/"'\([^"]*\)"+<option value="\2">\1<\/option>+' | tr -d '\n'`
|
||||||
|
|
||||||
|
if test -f "$subdir/classmap.inc" && grep "=>" "$subdir/classmap.inc" > /dev/null 2>&1 ; then
|
||||||
|
# Keep the menu, it's useful
|
||||||
|
:
|
||||||
|
else
|
||||||
|
CMENUBEGIN="<!--"
|
||||||
|
CMENUEND="-->"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Now substitute in the MENU in every file. This depends
|
||||||
|
# on HTML_HEADER (ie. header.html) containing the
|
||||||
|
# <!-- menu --> comment.
|
||||||
|
for i in "$htmldir"/*.html
|
||||||
|
do
|
||||||
|
if test -f "$i" ; then
|
||||||
|
sed -e "s+<!-- menu -->+$MENU+" \
|
||||||
|
-e "s+<!-- gmenu -->+$GMENU+" \
|
||||||
|
-e "s+<!-- pmenu.*-->+$PMENU+" \
|
||||||
|
-e "s+<!-- cmenu.begin -->+$CMENUBEGIN+" \
|
||||||
|
-e "s+<!-- cmenu.end -->+$CMENUEND+" \
|
||||||
|
< "$i" | sed -e "s+@topdir@+$htmltop+g" > "$i.new" && mv "$i.new" "$i"
|
||||||
|
sed -e "s+<!-- cmenu -->+$CMENU+" < "$i" > "$i.new"
|
||||||
|
test -s "$i.new" && mv "$i.new" "$i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Handle the Doxygen processing of a toplevel directory.
|
||||||
|
apidox_toplevel()
|
||||||
|
{
|
||||||
|
echo ""
|
||||||
|
echo "*** Creating API documentation main page for $module_name"
|
||||||
|
echo "*"
|
||||||
|
rm -f "Doxyfile"
|
||||||
|
for i in "$top_srcdir/doc/api/Doxyfile.global" \
|
||||||
|
"$top_srcdir/admin/Doxyfile.global" \
|
||||||
|
"$DOXDATA/Doxyfile.global"
|
||||||
|
do
|
||||||
|
if test -f "$i" ; then
|
||||||
|
cp "$i" Doxyfile
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if test ! -f "Doxyfile" ; then
|
||||||
|
echo "* Cannot create Doxyfile."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat "$top_builddir/Doxyfile.in" >> Doxyfile
|
||||||
|
|
||||||
|
|
||||||
|
echo "INPUT = $top_srcdir" >> Doxyfile
|
||||||
|
echo "OUTPUT_DIRECTORY = $top_builddir" >> Doxyfile ; \
|
||||||
|
echo "FILE_PATTERNS = *.dox" >> Doxyfile ; \
|
||||||
|
echo "RECURSIVE = NO" >> Doxyfile ; \
|
||||||
|
echo "ALPHABETICAL_INDEX = NO" >> Doxyfile ; \
|
||||||
|
echo "HTML_OUTPUT = ." >> Doxyfile ; \
|
||||||
|
apidox_htmlfiles "main"
|
||||||
|
|
||||||
|
# KDevelop has a top-level Makefile.am with settings.
|
||||||
|
for i in "$top_srcdir/Makefile.am.in" "$top_srcdir/Makefile.am"
|
||||||
|
do
|
||||||
|
if test -f "$i" ; then
|
||||||
|
grep '^DOXYGEN_SET_' "$i" | \
|
||||||
|
sed -e 's+DOXYGEN_SET_++' -e "s+@topdir@+$top_srcdir+" >> Doxyfile
|
||||||
|
apidox_specials "$srcdir/Makefile.am" "$subdir/Doxyfile"
|
||||||
|
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
apidox_local
|
||||||
|
|
||||||
|
doxygen Doxyfile
|
||||||
|
|
||||||
|
( cd "$top_srcdir" && grep -l '^include.*Doxyfile.am' `find . -name Makefile.am` ) | sed -e 's+/Makefile.am$++' -e 's+^\./++' | sort > subdirs.in
|
||||||
|
for i in `cat subdirs.in`
|
||||||
|
do
|
||||||
|
test "x." = "x$i" && continue;
|
||||||
|
|
||||||
|
dir=`dirname "$i"`
|
||||||
|
file=`basename "$i"`
|
||||||
|
if test "x." = "x$dir" ; then
|
||||||
|
dir=""
|
||||||
|
else
|
||||||
|
dir="$dir/"
|
||||||
|
fi
|
||||||
|
indent=`echo "$dir" | sed -e 's+[^/]*/+\ \ +g' | sed -e 's+&+\\\&+g'`
|
||||||
|
entryname=`extract_line DOXYGEN_SET_PROJECT_NAME "$top_srcdir/$dir/$file/Makefile.am"`
|
||||||
|
test -z "$entryname" && entryname="$file"
|
||||||
|
|
||||||
|
if grep DOXYGEN_EMPTY "$top_srcdir/$dir/$file/Makefile.am" > /dev/null 2>&1 ; then
|
||||||
|
echo "<li>$indent$file</li>"
|
||||||
|
else
|
||||||
|
echo "<li>$indent<a href=\"@topdir@/$dir$file/html/index.html\">$entryname</a></li>"
|
||||||
|
fi
|
||||||
|
done > subdirs
|
||||||
|
|
||||||
|
doxyndex
|
||||||
|
}
|
||||||
|
|
||||||
|
### Handle the Doxygen processing of a non-toplevel directory.
|
||||||
|
apidox_subdir()
|
||||||
|
{
|
||||||
|
echo ""
|
||||||
|
echo "*** Creating apidox in $subdir"
|
||||||
|
echo "*"
|
||||||
|
rm -f "$subdir/Doxyfile"
|
||||||
|
if test ! -d "$top_srcdir/$subdir" ; then
|
||||||
|
echo "* No source (sub)directory $subdir"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
for i in "$top_srcdir/doc/api/Doxyfile.global" \
|
||||||
|
"$top_srcdir/admin/Doxyfile.global" \
|
||||||
|
"$DOXDATA/Doxyfile.global"
|
||||||
|
do
|
||||||
|
if test -f "$i" ; then
|
||||||
|
cp "$i" "$subdir/Doxyfile"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
test -f "Doxyfile.in" || create_doxyfile_in
|
||||||
|
cat "Doxyfile.in" >> "$subdir/Doxyfile"
|
||||||
|
|
||||||
|
echo "PROJECT_NAME = \"$subdir\"" >> "$subdir/Doxyfile"
|
||||||
|
echo "INPUT = $srcdir" >> "$subdir/Doxyfile"
|
||||||
|
echo "OUTPUT_DIRECTORY = ." >> "$subdir/Doxyfile"
|
||||||
|
if grep -l "$subdir/" subdirs.in > /dev/null 2>&1 ; then
|
||||||
|
echo "RECURSIVE = NO" >> "$subdir/Doxyfile"
|
||||||
|
fi
|
||||||
|
echo "HTML_OUTPUT = $subdir/html" >> "$subdir/Doxyfile"
|
||||||
|
echo "GENERATE_TAGFILE = $subdir/$subdirname.tag" >> "$subdir/Doxyfile"
|
||||||
|
test -d "$top_srcdir/doc/api" && \
|
||||||
|
echo "IMAGE_PATH = $top_srcdir/doc/api" >> "$subdir/Doxyfile"
|
||||||
|
|
||||||
|
apidox_htmlfiles ""
|
||||||
|
|
||||||
|
# Makefile.ams may contain overrides to our settings,
|
||||||
|
# so copy them in.
|
||||||
|
grep '^DOXYGEN_SET_' "$srcdir/Makefile.am" | \
|
||||||
|
sed -e 's+DOXYGEN_SET_++' >> "$subdir/Doxyfile"
|
||||||
|
apidox_specials "$srcdir/Makefile.am" "$subdir/Doxyfile"
|
||||||
|
|
||||||
|
excludes=`extract_line DOXYGEN_EXCLUDE`
|
||||||
|
if test -n "$excludes"; then
|
||||||
|
patterns=""
|
||||||
|
dirs=""
|
||||||
|
for item in `echo "$excludes"`; do
|
||||||
|
if test -d "$top_srcdir/$subdir/$item"; then
|
||||||
|
dirs="$dirs $top_srcdir/$subdir/$item/"
|
||||||
|
else
|
||||||
|
patterns="$patterns $item"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "EXCLUDE_PATTERNS += $patterns" >> "$subdir/Doxyfile"
|
||||||
|
echo "EXCLUDE += $dirs" >> "$subdir/Doxyfile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "TAGFILES = \\" >> "$subdir/Doxyfile"
|
||||||
|
## For now, don't support \ continued references lines
|
||||||
|
tags=`extract_line DOXYGEN_REFERENCES`
|
||||||
|
for i in $tags qt ; do
|
||||||
|
tagsubdir=`dirname $i` ; tag=`basename $i`
|
||||||
|
tagpath=""
|
||||||
|
not_found=""
|
||||||
|
|
||||||
|
if test "x$tagsubdir" = "x." ; then
|
||||||
|
tagsubdir=""
|
||||||
|
else
|
||||||
|
tagsubdir="$tagsubdir/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Find location of tag file
|
||||||
|
if test -f "$tagsubdir$tag/$tag.tag" ; then
|
||||||
|
file="$tagsubdir$tag/$tag.tag"
|
||||||
|
loc="$tagsubdir$tag/html"
|
||||||
|
else
|
||||||
|
# This checks for dox built with_out_ --no-modulename
|
||||||
|
# in the same build dir as this dox run was started in.
|
||||||
|
file=`ls -1 ../*-apidocs/"$tagsubdir$tag/$tag.tag" 2> /dev/null`
|
||||||
|
|
||||||
|
if test -n "$file" ; then
|
||||||
|
loc=`echo "$file" | sed -e "s/$tag.tag\$/html/"`
|
||||||
|
else
|
||||||
|
# If the tag file doesn't exist yet, but should
|
||||||
|
# because we have the right dirs here, queue
|
||||||
|
# this directory for re-processing later.
|
||||||
|
if test -d "$top_srcdir/$tagsubdir$tag" ; then
|
||||||
|
echo "* Need to re-process $subdir for tag $i"
|
||||||
|
echo "$subdir" >> "subdirs.later"
|
||||||
|
else
|
||||||
|
# Re-check in $PREFIX if needed.
|
||||||
|
test -n "$PREFIX" && \
|
||||||
|
file=`cd "$PREFIX" && \
|
||||||
|
ls -1 *-apidocs/"$tagsubdir$tag/$tag.tag" 2> /dev/null`
|
||||||
|
|
||||||
|
# If something is found, patch it up. The location must be
|
||||||
|
# relative to the installed location of the dox and the
|
||||||
|
# file must be absolute.
|
||||||
|
if test -n "$file" ; then
|
||||||
|
loc=`echo "../$file" | sed -e "s/$tag.tag\$/html/"`
|
||||||
|
file="$PREFIX/$file"
|
||||||
|
echo "* Tags for $tagsubdir$tag will only work when installed."
|
||||||
|
not_found="YES"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test "$tag" = "qt" ; then
|
||||||
|
if test -z "$QTDOCDIR" ; then
|
||||||
|
echo " $file" >> "$subdir/Doxyfile"
|
||||||
|
else
|
||||||
|
if test -z "$file" ; then
|
||||||
|
# Really no Qt tags
|
||||||
|
echo "" >> "$subdir/Doxyfile"
|
||||||
|
else
|
||||||
|
echo " $file=$QTDOCDIR" >> "$subdir/Doxyfile"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if test -n "$file" ; then
|
||||||
|
test -z "$not_found" && echo "* Found tag $file"
|
||||||
|
echo " $file=../$top_builddir$loc \\" >> "$subdir/Doxyfile"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
apidox_local
|
||||||
|
|
||||||
|
if grep '^DOXYGEN_EMPTY' "$srcdir/Makefile.am" > /dev/null 2>&1 ; then
|
||||||
|
# This directory is empty, so don't process it, but
|
||||||
|
# *do* handle subdirs that might have dox.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
# Regular processing
|
||||||
|
doxygen "$subdir/Doxyfile"
|
||||||
|
doxyndex
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
### Run a given subdir by setting up global variables first.
|
||||||
|
do_subdir()
|
||||||
|
{
|
||||||
|
subdir=`echo "$1" | sed -e 's+/$++'`
|
||||||
|
srcdir="$top_srcdir/$subdir"
|
||||||
|
subdirname=`basename "$subdir"`
|
||||||
|
mkdir -p "$subdir" 2> /dev/null
|
||||||
|
if test ! -d "$subdir" ; then
|
||||||
|
echo "Can't create dox subdirectory $subdir"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
top_builddir=`echo "/$subdir" | sed -e 's+/[^/]*+../+g'`
|
||||||
|
apidox_subdir
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
### Create installdox-slow in the toplevel
|
||||||
|
create_installdox()
|
||||||
|
{
|
||||||
|
# Fix up the installdox script so it accepts empty args
|
||||||
|
#
|
||||||
|
# This code is copied from the installdox generated by Doxygen,
|
||||||
|
# copyright by Dimitri van Heesch and released under the GPL.
|
||||||
|
# This does a _slow_ update of the dox, because it loops
|
||||||
|
# over the given substitutions instead of assuming all the
|
||||||
|
# needed ones are given.
|
||||||
|
#
|
||||||
|
cat <<\EOF
|
||||||
|
#! /usr/bin/env perl
|
||||||
|
|
||||||
|
%subst = () ;
|
||||||
|
$quiet = 0;
|
||||||
|
|
||||||
|
if (open(F,"search.cfg"))
|
||||||
|
{
|
||||||
|
$_=<F> ; s/[ \t\n]*$//g ; $subst{"_doc"} = $_;
|
||||||
|
$_=<F> ; s/[ \t\n]*$//g ; $subst{"_cgi"} = $_;
|
||||||
|
}
|
||||||
|
|
||||||
|
while ( @ARGV ) {
|
||||||
|
$_ = shift @ARGV;
|
||||||
|
if ( s/^-// ) {
|
||||||
|
if ( /^l(.*)/ ) {
|
||||||
|
$v = ($1 eq "") ? shift @ARGV : $1;
|
||||||
|
($v =~ /\/$/) || ($v .= "/");
|
||||||
|
$_ = $v;
|
||||||
|
if ( /(.+)\@(.+)/ ) {
|
||||||
|
$subst{$1} = $2;
|
||||||
|
} else {
|
||||||
|
print STDERR "Argument $_ is invalid for option -l\n";
|
||||||
|
&usage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elsif ( /^q/ ) {
|
||||||
|
$quiet = 1;
|
||||||
|
}
|
||||||
|
elsif ( /^\?|^h/ ) {
|
||||||
|
&usage();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print STDERR "Illegal option -$_\n";
|
||||||
|
&usage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
push (@files, $_ );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ( ! @files ) {
|
||||||
|
if (opendir(D,".")) {
|
||||||
|
foreach $file ( readdir(D) ) {
|
||||||
|
$match = ".html";
|
||||||
|
next if ( $file =~ /^\.\.?$/ );
|
||||||
|
($file =~ /$match/) && (push @files, $file);
|
||||||
|
($file =~ "tree.js") && (push @files, $file);
|
||||||
|
}
|
||||||
|
closedir(D);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! @files ) {
|
||||||
|
print STDERR "Warning: No input files given and none found!\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach $f (@files)
|
||||||
|
{
|
||||||
|
if ( ! $quiet ) {
|
||||||
|
print "Editing: $f...\n";
|
||||||
|
}
|
||||||
|
$oldf = $f;
|
||||||
|
$f .= ".bak";
|
||||||
|
unless (rename $oldf,$f) {
|
||||||
|
print STDERR "Error: cannot rename file $oldf\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
if (open(F,"<$f")) {
|
||||||
|
unless (open(G,">$oldf")) {
|
||||||
|
print STDERR "Error: opening file $oldf for writing\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
if ($oldf ne "tree.js") {
|
||||||
|
while (<F>) {
|
||||||
|
foreach $sub (keys %subst) {
|
||||||
|
s/doxygen\=\"$sub\:([^ \"\t\>\<]*)\" (href|src)=\"\1/doxygen\=\"$sub:$subst{$sub}\" \2=\"$subst{$sub}/g;
|
||||||
|
print G "$_";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
while (<F>) {
|
||||||
|
foreach $sub (keys %subst) {
|
||||||
|
s/\"$sub\:([^ \"\t\>\<]*)\", \"\1/\"$sub:$subst{$sub}\" ,\"$subst{$sub}/g;
|
||||||
|
print G "$_";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print STDERR "Warning file $f does not exist\n";
|
||||||
|
}
|
||||||
|
unlink $f;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub usage {
|
||||||
|
print STDERR "Usage: installdox [options] [html-file [html-file ...]]\n";
|
||||||
|
print STDERR "Options:\n";
|
||||||
|
print STDERR " -l tagfile\@linkName tag file + URL or directory \n";
|
||||||
|
print STDERR " -q Quiet mode\n\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
# Do only the subdirs that match the RE passed in as $1
|
||||||
|
do_subdirs_re()
|
||||||
|
{
|
||||||
|
RE=`echo "$1" | sed -e 's+/$++'`
|
||||||
|
|
||||||
|
# Here's a queue of dirs to re-process later when
|
||||||
|
# all the rest have been done already.
|
||||||
|
> subdirs.later
|
||||||
|
|
||||||
|
# subdirs.top lists _all_ subdirs of top in the order they
|
||||||
|
# should be handled; subdirs.in lists those dirs that contain
|
||||||
|
# dox. So the intersection of the two is the ordered list
|
||||||
|
# of top-level subdirs that contain dox.
|
||||||
|
#
|
||||||
|
# subdirs.top also doesn't contain ".", so that special
|
||||||
|
# case can be ignored in the loop.
|
||||||
|
|
||||||
|
|
||||||
|
(
|
||||||
|
for i in `grep "^$RE" subdirs.top`
|
||||||
|
do
|
||||||
|
if test "x$i" = "x." ; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
# Calculate intersection of this element and the
|
||||||
|
# set of dox dirs.
|
||||||
|
if grep "^$i\$" subdirs.in > /dev/null 2>&1 ; then
|
||||||
|
echo "$i"
|
||||||
|
mkdir -p "$i" 2> /dev/null
|
||||||
|
|
||||||
|
# Handle the subdirs of this one
|
||||||
|
for j in `grep "$i/" subdirs.in`
|
||||||
|
do
|
||||||
|
echo "$j"
|
||||||
|
mkdir -p "$j" 2> /dev/null
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Now we still need to handle whatever is left
|
||||||
|
for i in `cat subdirs.in`
|
||||||
|
do
|
||||||
|
test -d "$i" || echo "$i"
|
||||||
|
mkdir -p "$i" 2> /dev/null
|
||||||
|
done
|
||||||
|
) > subdirs.sort
|
||||||
|
for i in `cat subdirs.sort`
|
||||||
|
do
|
||||||
|
do_subdir "$i"
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -s "subdirs.later" ; then
|
||||||
|
sort subdirs.later | uniq > subdirs.sort
|
||||||
|
for i in `cat subdirs.sort`
|
||||||
|
do
|
||||||
|
: > subdirs.later
|
||||||
|
echo "*** Reprocessing $i"
|
||||||
|
do_subdir "$i"
|
||||||
|
test -s "subdirs.later" && echo "* Some tag files were still not found."
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "x." = "x$top_builddir" ; then
|
||||||
|
apidox_toplevel
|
||||||
|
create_subdirs
|
||||||
|
create_installdox > installdox-slow
|
||||||
|
if test "x$recurse" = "x1" ; then
|
||||||
|
if test "x$module_name" = "xkdelibs" ; then
|
||||||
|
if test -z "$QTDOCTAG" && test -d "$QTDOCDIR" && \
|
||||||
|
test ! -f "qt/qt.tag" ; then
|
||||||
|
# Special case: create a qt tag file.
|
||||||
|
echo "*** Creating a tag file for the Qt library:"
|
||||||
|
mkdir qt
|
||||||
|
doxytag -t qt/qt.tag "$QTDOCDIR" > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test -n "$QTDOCTAG" && test -r "$QTDOCTAG" ; then
|
||||||
|
echo "*** Copying tag file for the Qt library:"
|
||||||
|
mkdir qt
|
||||||
|
cp "$QTDOCTAG" qt/qt.tag
|
||||||
|
fi
|
||||||
|
|
||||||
|
do_subdirs_re "."
|
||||||
|
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if test "x$recurse" = "x1" ; then
|
||||||
|
do_subdirs_re "$subdir"
|
||||||
|
else
|
||||||
|
do_subdir "$subdir"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# At the end of a run, clean up stuff.
|
||||||
|
if test "YES" = "$cleanup" ; then
|
||||||
|
rm -f subdirs.in subdirs.later subdirs.sort subdirs.top Doxyfile.in
|
||||||
|
rm -f `find . -name Doxyfile`
|
||||||
|
rm -f qt/qt.tag
|
||||||
|
rmdir qt > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,401 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
|
scriptversion=2005-11-07.23
|
||||||
|
|
||||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
# following copyright and license.
|
||||||
|
#
|
||||||
|
# Copyright (C) 1994 X Consortium
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to
|
||||||
|
# deal in the Software without restriction, including without limitation the
|
||||||
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
# sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# Except as contained in this notice, the name of the X Consortium shall not
|
||||||
|
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||||
|
# ings in this Software without prior written authorization from the X Consor-
|
||||||
|
# tium.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# FSF changes to this file are in the public domain.
|
||||||
|
#
|
||||||
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
|
# `make' implicit rules from creating a file called install from it
|
||||||
|
# when there is no Makefile.
|
||||||
|
#
|
||||||
|
# This script is compatible with the BSD install script, but was written
|
||||||
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
|
mvprog="${MVPROG-mv}"
|
||||||
|
cpprog="${CPPROG-cp}"
|
||||||
|
chmodprog="${CHMODPROG-chmod}"
|
||||||
|
chownprog="${CHOWNPROG-chown}"
|
||||||
|
chgrpprog="${CHGRPPROG-chgrp}"
|
||||||
|
stripprog="${STRIPPROG-strip}"
|
||||||
|
rmprog="${RMPROG-rm}"
|
||||||
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
|
posix_glob=
|
||||||
|
posix_mkdir=
|
||||||
|
|
||||||
|
# Symbolic mode for testing mkdir with directories.
|
||||||
|
# It is the same as 755, but also tests that "u+" works.
|
||||||
|
test_mode=u=rwx,g=rx,o=rx,u+wx
|
||||||
|
|
||||||
|
# Desired mode of installed file.
|
||||||
|
mode=0755
|
||||||
|
|
||||||
|
# Desired mode of newly created intermediate directories.
|
||||||
|
# It is empty if not known yet.
|
||||||
|
intermediate_mode=
|
||||||
|
|
||||||
|
chmodcmd=$chmodprog
|
||||||
|
chowncmd=
|
||||||
|
chgrpcmd=
|
||||||
|
stripcmd=
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=
|
||||||
|
dst=
|
||||||
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-c (ignored)
|
||||||
|
-d create directories instead of installing files.
|
||||||
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
|
Environment variables override the default commands:
|
||||||
|
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||||
|
"
|
||||||
|
|
||||||
|
while test -n "$1"; do
|
||||||
|
case $1 in
|
||||||
|
-c) shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
|
-m) mode=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd=$stripprog
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t) dstarg=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dstarg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dstarg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dstarg=$arg
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
test -n "$dir_arg" || trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
dstdir=$dst
|
||||||
|
test -d "$dstdir"
|
||||||
|
dstdir_status=$?
|
||||||
|
else
|
||||||
|
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dstarg"; then
|
||||||
|
echo "$0: no destination specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dst=$dstarg
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $dst in
|
||||||
|
-*) dst=./$dst ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; won't work
|
||||||
|
# if double slashes aren't ignored.
|
||||||
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dstdir=$dst
|
||||||
|
dst=$dstdir/`basename "$src"`
|
||||||
|
dstdir_status=0
|
||||||
|
else
|
||||||
|
# Prefer dirname, but fall back on a substitute if dirname fails.
|
||||||
|
dstdir=`
|
||||||
|
(dirname "$dst") 2>/dev/null ||
|
||||||
|
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||||
|
X"$dst" : 'X\(//\)[^/]' \| \
|
||||||
|
X"$dst" : 'X\(//\)$' \| \
|
||||||
|
X"$dst" : 'X\(/\)' \| \
|
||||||
|
. : '\(.\)' 2>/dev/null ||
|
||||||
|
echo X"$dst" |
|
||||||
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
||||||
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
||||||
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
||||||
|
/^X\(\/\).*/{ s//\1/; q; }
|
||||||
|
s/.*/./; q'
|
||||||
|
`
|
||||||
|
|
||||||
|
test -d "$dstdir"
|
||||||
|
dstdir_status=$?
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
obsolete_mkdir_used=false
|
||||||
|
|
||||||
|
if test $dstdir_status != 0; then
|
||||||
|
case $posix_mkdir in
|
||||||
|
'')
|
||||||
|
posix_mkdir=false
|
||||||
|
if $mkdirprog -m $test_mode -p -- / >/dev/null 2>&1; then
|
||||||
|
posix_mkdir=true
|
||||||
|
else
|
||||||
|
# Remove any dirs left behind by ancient mkdir implementations.
|
||||||
|
rmdir ./-m "$test_mode" ./-p ./-- 2>/dev/null
|
||||||
|
fi ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if
|
||||||
|
$posix_mkdir && {
|
||||||
|
|
||||||
|
# With -d, create the new directory with the user-specified mode.
|
||||||
|
# Otherwise, create it using the same intermediate mode that
|
||||||
|
# mkdir -p would use when creating intermediate directories.
|
||||||
|
# POSIX says that this mode is "$(umask -S),u+wx", so use that
|
||||||
|
# if umask -S works.
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
mkdir_mode=$mode
|
||||||
|
else
|
||||||
|
case $intermediate_mode in
|
||||||
|
'')
|
||||||
|
if umask_S=`(umask -S) 2>/dev/null`; then
|
||||||
|
intermediate_mode=$umask_S,u+wx
|
||||||
|
else
|
||||||
|
intermediate_mode=$test_mode
|
||||||
|
fi ;;
|
||||||
|
esac
|
||||||
|
mkdir_mode=$intermediate_mode
|
||||||
|
fi
|
||||||
|
|
||||||
|
$mkdirprog -m "$mkdir_mode" -p -- "$dstdir"
|
||||||
|
}
|
||||||
|
then :
|
||||||
|
else
|
||||||
|
|
||||||
|
# mkdir does not conform to POSIX, or it failed possibly due to
|
||||||
|
# a race condition. Create the directory the slow way, step by
|
||||||
|
# step, checking for races as we go.
|
||||||
|
|
||||||
|
case $dstdir in
|
||||||
|
/*) pathcomp=/ ;;
|
||||||
|
-*) pathcomp=./ ;;
|
||||||
|
*) pathcomp= ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $posix_glob in
|
||||||
|
'')
|
||||||
|
if (set -f) 2>/dev/null; then
|
||||||
|
posix_glob=true
|
||||||
|
else
|
||||||
|
posix_glob=false
|
||||||
|
fi ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
IFS=/
|
||||||
|
$posix_glob && set -f
|
||||||
|
set fnord $dstdir
|
||||||
|
shift
|
||||||
|
$posix_glob && set +f
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
test "x$d" = x && continue
|
||||||
|
|
||||||
|
pathcomp=$pathcomp$d
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# Don't fail if two instances are running concurrently.
|
||||||
|
test -d "$pathcomp" || exit 1
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
obsolete_mkdir_used=true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||||
|
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||||
|
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||||
|
test -z "$chmodcmd" || $doit $chmodcmd "$mode" "$dst"; } || exit 1
|
||||||
|
else
|
||||||
|
|
||||||
|
# Make a couple of temp file names in the proper directory.
|
||||||
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
|
# Trap to clean up those temp files at exit.
|
||||||
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
|
|
||||||
|
# Copy the file name to the temp name.
|
||||||
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
|
|
||||||
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
|
#
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$mode" "$dsttmp"; } &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dst"; then
|
||||||
|
$doit $rmcmd -f "$dst" 2>/dev/null \
|
||||||
|
|| { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
|
||||||
|
&& { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dst" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dst"
|
||||||
|
}
|
||||||
|
} || exit 1
|
||||||
|
|
||||||
|
trap '' 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,353 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Common stub for a few missing GNU programs while installing.
|
||||||
|
|
||||||
|
scriptversion=2004-09-07.08
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
|
|
||||||
|
# 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
# 02110-1301, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
run=:
|
||||||
|
|
||||||
|
# In the cases where this matters, `missing' is being run in the
|
||||||
|
# srcdir already.
|
||||||
|
if test -f configure.ac; then
|
||||||
|
configure_ac=configure.ac
|
||||||
|
else
|
||||||
|
configure_ac=configure.in
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg="missing on your system"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--run)
|
||||||
|
# Try to run requested program, and just exit if it succeeds.
|
||||||
|
run=
|
||||||
|
shift
|
||||||
|
"$@" && exit 0
|
||||||
|
# Exit code 63 means version mismatch. This often happens
|
||||||
|
# when the user try to use an ancient version of a tool on
|
||||||
|
# a file that requires a minimum version. In this case we
|
||||||
|
# we should proceed has if the program had been absent, or
|
||||||
|
# if --run hadn't been passed.
|
||||||
|
if test $? = 63; then
|
||||||
|
run=:
|
||||||
|
msg="probably too old"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
-h|--h|--he|--hel|--help)
|
||||||
|
echo "\
|
||||||
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
|
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||||
|
error status if there is no known handling for PROGRAM.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version output version information and exit
|
||||||
|
--run try to run the given command, and emulate it if it fails
|
||||||
|
|
||||||
|
Supported PROGRAM values:
|
||||||
|
aclocal touch file \`aclocal.m4'
|
||||||
|
autoconf touch file \`configure'
|
||||||
|
autoheader touch file \`config.h.in'
|
||||||
|
automake touch all \`Makefile.in' files
|
||||||
|
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
flex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
help2man touch the output file
|
||||||
|
lex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
makeinfo touch the output file
|
||||||
|
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||||
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
|
||||||
|
Send bug reports to <bug-automake@gnu.org>."
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
|
echo "missing $scriptversion (GNU Automake)"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
echo 1>&2 "$0: Unknown \`$1' option"
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Now exit if we have it, but it failed. Also exit now if we
|
||||||
|
# don't have it and --version was passed (most likely to detect
|
||||||
|
# the program).
|
||||||
|
case "$1" in
|
||||||
|
lex|yacc)
|
||||||
|
# Not GNU programs, they don't have --version.
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
if test -n "$run"; then
|
||||||
|
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||||
|
exit 1
|
||||||
|
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||||
|
# Could not run --version or --help. This is probably someone
|
||||||
|
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||||
|
# $TOOL exists and not knowing $TOOL uses missing.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If it does not exist, or fails to run (possibly an outdated version),
|
||||||
|
# try to emulate it.
|
||||||
|
case "$1" in
|
||||||
|
aclocal*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||||
|
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||||
|
any GNU archive site."
|
||||||
|
touch aclocal.m4
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoconf)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`${configure_ac}'. You might want to install the
|
||||||
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||||
|
archive site."
|
||||||
|
touch configure
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoheader)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||||
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||||
|
from any GNU archive site."
|
||||||
|
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||||
|
test -z "$files" && files="config.h"
|
||||||
|
touch_files=
|
||||||
|
for f in $files; do
|
||||||
|
case "$f" in
|
||||||
|
*:*) touch_files="$touch_files "`echo "$f" |
|
||||||
|
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||||
|
*) touch_files="$touch_files $f.in";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
touch $touch_files
|
||||||
|
;;
|
||||||
|
|
||||||
|
automake*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||||
|
You might want to install the \`Automake' and \`Perl' packages.
|
||||||
|
Grab them from any GNU archive site."
|
||||||
|
find . -type f -name Makefile.am -print |
|
||||||
|
sed 's/\.am$/.in/' |
|
||||||
|
while read f; do touch "$f"; done
|
||||||
|
;;
|
||||||
|
|
||||||
|
autom4te)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, but is $msg.
|
||||||
|
You might have modified some files without having the
|
||||||
|
proper tools for further handling them.
|
||||||
|
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||||
|
archive site."
|
||||||
|
|
||||||
|
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||||
|
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||||
|
if test -f "$file"; then
|
||||||
|
touch $file
|
||||||
|
else
|
||||||
|
test -z "$file" || exec >$file
|
||||||
|
echo "#! /bin/sh"
|
||||||
|
echo "# Created by GNU Automake missing as a replacement of"
|
||||||
|
echo "# $ $@"
|
||||||
|
echo "exit 0"
|
||||||
|
chmod +x $file
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
bison|yacc)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' $msg. You should only need it if
|
||||||
|
you modified a \`.y' file. You may need the \`Bison' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Bison' from any GNU archive site."
|
||||||
|
rm -f y.tab.c y.tab.h
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.y)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.c
|
||||||
|
fi
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.h
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.h ]; then
|
||||||
|
echo >y.tab.h
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.c ]; then
|
||||||
|
echo 'main() { return 0; }' >y.tab.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
lex|flex)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a \`.l' file. You may need the \`Flex' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Flex' from any GNU archive site."
|
||||||
|
rm -f lex.yy.c
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.l)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f lex.yy.c ]; then
|
||||||
|
echo 'main() { return 0; }' >lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
help2man)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a dependency of a manual page. You may need the
|
||||||
|
\`Help2man' package in order for those modifications to take
|
||||||
|
effect. You can get \`Help2man' from any GNU archive site."
|
||||||
|
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||||
|
fi
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
touch $file
|
||||||
|
else
|
||||||
|
test -z "$file" || exec >$file
|
||||||
|
echo ".ab help2man is required to generate this page"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
makeinfo)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||||
|
indirectly affecting the aspect of the manual. The spurious
|
||||||
|
call might also be the consequence of using a buggy \`make' (AIX,
|
||||||
|
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||||
|
the \`GNU make' package. Grab either from any GNU archive site."
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||||
|
fi
|
||||||
|
touch $file
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
shift
|
||||||
|
|
||||||
|
# We have already tried tar in the generic part.
|
||||||
|
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||||
|
# messages.
|
||||||
|
if (gnutar --version > /dev/null 2>&1); then
|
||||||
|
gnutar "$@" && exit 0
|
||||||
|
fi
|
||||||
|
if (gtar --version > /dev/null 2>&1); then
|
||||||
|
gtar "$@" && exit 0
|
||||||
|
fi
|
||||||
|
firstarg="$1"
|
||||||
|
if shift; then
|
||||||
|
case "$firstarg" in
|
||||||
|
*o*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/o//`
|
||||||
|
tar "$firstarg" "$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$firstarg" in
|
||||||
|
*h*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/h//`
|
||||||
|
tar "$firstarg" "$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||||
|
You may want to install GNU tar or Free paxutils, or check the
|
||||||
|
command line arguments."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, and is $msg.
|
||||||
|
You might have modified some files without having the
|
||||||
|
proper tools for further handling them. Check the \`README' file,
|
||||||
|
it often tells you about the needed prerequisites for installing
|
||||||
|
this package. You may also peek at any GNU archive site, in case
|
||||||
|
some other package would contain this missing \`$1' program."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
@ -0,0 +1,158 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# mkinstalldirs --- make directory hierarchy
|
||||||
|
|
||||||
|
scriptversion=2005-06-29.22
|
||||||
|
|
||||||
|
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||||
|
# Created: 1993-05-16
|
||||||
|
# Public domain.
|
||||||
|
#
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
errstatus=0
|
||||||
|
dirmode=
|
||||||
|
|
||||||
|
usage="\
|
||||||
|
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
|
||||||
|
|
||||||
|
Create each directory DIR (with mode MODE, if specified), including all
|
||||||
|
leading file name components.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>."
|
||||||
|
|
||||||
|
# process command line arguments
|
||||||
|
while test $# -gt 0 ; do
|
||||||
|
case $1 in
|
||||||
|
-h | --help | --h*) # -h for help
|
||||||
|
echo "$usage"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-m) # -m PERM arg
|
||||||
|
shift
|
||||||
|
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
|
||||||
|
dirmode=$1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
echo "$0 $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
--) # stop option processing
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
-*) # unknown option
|
||||||
|
echo "$usage" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*) # first non-opt arg
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
if test -d "$file"; then
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
case $# in
|
||||||
|
0) exit 0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
|
||||||
|
# mkdir -p a/c at the same time, both will detect that a is missing,
|
||||||
|
# one will create a, then the other will try to create a and die with
|
||||||
|
# a "File exists" error. This is a problem when calling mkinstalldirs
|
||||||
|
# from a parallel make. We use --version in the probe to restrict
|
||||||
|
# ourselves to GNU mkdir, which is thread-safe.
|
||||||
|
case $dirmode in
|
||||||
|
'')
|
||||||
|
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||||
|
echo "mkdir -p -- $*"
|
||||||
|
exec mkdir -p -- "$@"
|
||||||
|
else
|
||||||
|
# On NextStep and OpenStep, the `mkdir' command does not
|
||||||
|
# recognize any option. It will interpret all options as
|
||||||
|
# directories to create, and then abort because `.' already
|
||||||
|
# exists.
|
||||||
|
test -d ./-p && rmdir ./-p
|
||||||
|
test -d ./--version && rmdir ./--version
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
|
||||||
|
test ! -d ./--version; then
|
||||||
|
echo "mkdir -m $dirmode -p -- $*"
|
||||||
|
exec mkdir -m "$dirmode" -p -- "$@"
|
||||||
|
else
|
||||||
|
# Clean up after NextStep and OpenStep mkdir.
|
||||||
|
for d in ./-m ./-p ./--version "./$dirmode";
|
||||||
|
do
|
||||||
|
test -d $d && rmdir $d
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
case $file in
|
||||||
|
/*) pathcomp=/ ;;
|
||||||
|
*) pathcomp= ;;
|
||||||
|
esac
|
||||||
|
oIFS=$IFS
|
||||||
|
IFS=/
|
||||||
|
set fnord $file
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
test "x$d" = x && continue
|
||||||
|
|
||||||
|
pathcomp=$pathcomp$d
|
||||||
|
case $pathcomp in
|
||||||
|
-*) pathcomp=./$pathcomp ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
echo "mkdir $pathcomp"
|
||||||
|
|
||||||
|
mkdir "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
else
|
||||||
|
if test ! -z "$dirmode"; then
|
||||||
|
echo "chmod $dirmode $pathcomp"
|
||||||
|
lasterr=
|
||||||
|
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -z "$lasterr"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $errstatus
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
@ -0,0 +1,371 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
# Check namespace cleanness of a library.
|
||||||
|
# Allowed symbols are passed as arguments.
|
||||||
|
# They may have trailing * = wildcard.
|
||||||
|
# Wildcards may be also specified as *::* (e.g. K*::* for all KDE classes)
|
||||||
|
# Symbols are listed as full function unmangled names without arguments,
|
||||||
|
# e.g. 'foo bar* nspace::*' allows foo(), foo(int), bar(), barbar()
|
||||||
|
# and all symbols in namespace/class nspace.
|
||||||
|
# If an argument has comma in it, it's a filename of a file containing
|
||||||
|
# allowed symbols, one per line.
|
||||||
|
|
||||||
|
|
||||||
|
$thisProg = "$0"; # This programs name
|
||||||
|
|
||||||
|
$library = "";
|
||||||
|
$allowed_symbols = "";
|
||||||
|
$debug = 0;
|
||||||
|
$allowed_weak = "";
|
||||||
|
$weak_specified = 0;
|
||||||
|
|
||||||
|
while( defined( $ARGV[ 0 ] ))
|
||||||
|
{
|
||||||
|
$_ = shift;
|
||||||
|
if( /^--verbose$|^-v$/ )
|
||||||
|
{
|
||||||
|
$debug = 1;
|
||||||
|
}
|
||||||
|
elsif( /^--help$|^-h$/ )
|
||||||
|
{
|
||||||
|
print STDOUT "Usage $thisProg [OPTION] ... library [allowed symbols] ...\n",
|
||||||
|
"\n",
|
||||||
|
"Check if the given library has only allowed public symbols.\n",
|
||||||
|
"\n",
|
||||||
|
" --allowweak=[symbol] allow only these weak symbols\n",
|
||||||
|
" -v, --verbose verbosely list files processed\n",
|
||||||
|
" -h, --help print this help, then exit\n";
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
elsif( /^--allowweak=(.*)$/ )
|
||||||
|
{
|
||||||
|
$allowed_weak .= " " . $1;
|
||||||
|
$weak_specified = 1;
|
||||||
|
}
|
||||||
|
elsif( /^--allowweak$/ ) # simply list all weak
|
||||||
|
{
|
||||||
|
$allowed_weak .= " ";
|
||||||
|
$weak_specified = 1;
|
||||||
|
}
|
||||||
|
elsif( /^--*/ )
|
||||||
|
{
|
||||||
|
die "Invalid argument!\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( ! $library )
|
||||||
|
{
|
||||||
|
$library = $_;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$allowed_symbols .= " " . $_;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( ! $weak_specified )
|
||||||
|
{
|
||||||
|
$allowed_weak = "*";
|
||||||
|
# allow all weak symbols by default
|
||||||
|
# instances of templates and similar stuff - unfortunately includes also things from other libraries,
|
||||||
|
# so it cannot be on by default
|
||||||
|
}
|
||||||
|
|
||||||
|
print STDERR "library:" . $library . "\n" if $debug;
|
||||||
|
print STDERR "allowed_symbols:" . $allowed_symbols . "\n" if $debug;
|
||||||
|
print STDERR "allowed_weak:" . $allowed_weak . "\n" if $debug;
|
||||||
|
|
||||||
|
$default_symbols = "_fini _init"; # system symbols
|
||||||
|
# on my system, every .so has :
|
||||||
|
# A _DYNAMIC
|
||||||
|
# A _GLOBAL_OFFSET_TABLE_
|
||||||
|
# A __bss_start
|
||||||
|
# A _edata
|
||||||
|
# A _end
|
||||||
|
# T _fini
|
||||||
|
# T _init
|
||||||
|
# no need to list A symbols in $default_symbols
|
||||||
|
|
||||||
|
print STDERR "default_symbols: " . $default_symbols . "\n" if $debug;
|
||||||
|
|
||||||
|
print STDOUT "Namespace cleanness check for " . $library . " :\n";
|
||||||
|
|
||||||
|
$lib_file = "";
|
||||||
|
if( $library =~ /\.la$/ )
|
||||||
|
{
|
||||||
|
# get the real library file from .la
|
||||||
|
open( FILEIN, $library ) || die "Couldn't open $! !\n";
|
||||||
|
while( $line = <FILEIN> )
|
||||||
|
{
|
||||||
|
if( $line =~ /library_names=\'([^ ]*).*/o )
|
||||||
|
{
|
||||||
|
$lib_file = $1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
close( FILEIN );
|
||||||
|
if( ! $lib_file )
|
||||||
|
{
|
||||||
|
print STDERR "Library file not found in .la file!\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
my $libpath = $library;
|
||||||
|
$libpath =~ s%[^/]*$%%;
|
||||||
|
if( -e $libpath . ".libs/" . $lib_file )
|
||||||
|
{
|
||||||
|
$lib_file = $libpath . ".libs/" . $lib_file;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$lib_file = $libpath . $lib_file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$lib_file = $library;
|
||||||
|
}
|
||||||
|
|
||||||
|
print STDERR "libfile: ". $lib_file . "\n" if $debug;
|
||||||
|
|
||||||
|
$allowed_symbols .= " " . $default_symbols;
|
||||||
|
|
||||||
|
sub process_symbols($\@\%\@);
|
||||||
|
|
||||||
|
@wildcards = ();
|
||||||
|
%exacts = ();
|
||||||
|
@regwildcards = ();
|
||||||
|
process_symbols( $allowed_symbols, @wildcards, %exacts, @regwildcards );
|
||||||
|
@weak_wildcards = ();
|
||||||
|
%weak_exacts = ();
|
||||||
|
@weak_regwildcards = ();
|
||||||
|
process_symbols( $allowed_weak, @weak_wildcards, %weak_exacts, @weak_regwildcards );
|
||||||
|
|
||||||
|
# grep is for stripping not exported symbols, which don't have address (=first column)
|
||||||
|
$nm_command = "nm -BDCg " . $lib_file . " | grep -v '^ ' |";
|
||||||
|
|
||||||
|
# TODO how portable is this nmcheck stuff?
|
||||||
|
|
||||||
|
print STDERR "nm command:" . $nm_command . "\n" if $debug;
|
||||||
|
|
||||||
|
open( FILEIN, $nm_command ) || die "nm command failed\n";
|
||||||
|
|
||||||
|
my $exit_code = 0;
|
||||||
|
|
||||||
|
while( $line = <FILEIN> )
|
||||||
|
{
|
||||||
|
my $type;
|
||||||
|
my $symbol;
|
||||||
|
if( $line =~ /^[^ ]* (.) (.*)$/o )
|
||||||
|
{
|
||||||
|
$type = $1;
|
||||||
|
$symbol = $2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
die "Invalid line: " . $line . "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
print STDERR "Type: " . $type . " , symbol: " . $symbol . "\n" if $debug;
|
||||||
|
if( $type eq "A" )
|
||||||
|
{ # these should be system symbols, so ignore them
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
|
my $orig_symbol = $symbol;
|
||||||
|
|
||||||
|
if( $symbol =~ /\(anonymous namespace\)/o )
|
||||||
|
{ # TODO tell to prefer named namespaces? (shorter symbols)
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
|
# strip prefixes
|
||||||
|
# the :: appending is to make "CLASS::*" work also for "vtable for CLASS"
|
||||||
|
$symbol =~ s/^typeinfo for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^typeinfo fn for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^typeinfo name for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^vtable for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^guard variable for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^reference temporary for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^VTT for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^virtual thunk \[[^\]]*\] to (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^non-virtual thunk \[[^\]]*\] to (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^covariant return thunk \[[^\]]*\] to (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^construction vtable thunk for (.*)$/$1::/o;
|
||||||
|
$symbol =~ s/^construction vtable for .*-in-(.*) [0-9]*$/$1::/o;
|
||||||
|
|
||||||
|
# templates seem to have also return types mangled in their name, and nm prints it too
|
||||||
|
# they have also template arguments in the symbol
|
||||||
|
# get rid of both of those
|
||||||
|
while( $symbol =~ /<.*>/o )
|
||||||
|
{
|
||||||
|
$symbol =~ s/<[^<>]*>//o; # strip innermost <>
|
||||||
|
}
|
||||||
|
if( $symbol !~ /operator\(\)/o )
|
||||||
|
{
|
||||||
|
$symbol =~ s/ ?\(.*\).*$//o; # strip () and all after it
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$symbol =~ s/(^|:| )operator\(\) ?\(.*\).*$//o; # strip () and all after it
|
||||||
|
}
|
||||||
|
$symbol =~ s/\[.*\] *$//o; # strip [in-charge] etc.
|
||||||
|
if( $symbol =~ /(^|:| )operator /o )
|
||||||
|
{
|
||||||
|
$symbol =~ s/.* ([^\s]*)operator /$1/o; # strip everything before 'X::operator blah'
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$symbol =~ s/.* ([^\s]+) *$/$1/o; # get last word (strip return type)
|
||||||
|
}
|
||||||
|
|
||||||
|
# print STDERR "Processed symbol: " . $symbol . "\n" if $debug;
|
||||||
|
|
||||||
|
my $found = 0;
|
||||||
|
if( $exacts{ $symbol } )
|
||||||
|
{
|
||||||
|
$found = 1;
|
||||||
|
}
|
||||||
|
if( ! $found )
|
||||||
|
{
|
||||||
|
for my $wild ( @wildcards )
|
||||||
|
{
|
||||||
|
if( index( $symbol, $wild ) == 0 )
|
||||||
|
{
|
||||||
|
$found = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( ! $found )
|
||||||
|
{
|
||||||
|
for my $wild ( @regwildcards )
|
||||||
|
{
|
||||||
|
if( $symbol =~ /^$wild$/ )
|
||||||
|
{
|
||||||
|
$found = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( ( ! $found ) && ( $type eq "W" || $type eq "V" ))
|
||||||
|
{
|
||||||
|
if( $weak_exacts{ $symbol } )
|
||||||
|
{
|
||||||
|
$found = 1;
|
||||||
|
}
|
||||||
|
if( ! $found )
|
||||||
|
{
|
||||||
|
for my $wild ( @weak_wildcards )
|
||||||
|
{
|
||||||
|
if( index( $symbol, $wild ) == 0 )
|
||||||
|
{
|
||||||
|
$found = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( ! $found )
|
||||||
|
{
|
||||||
|
for my $wild ( @weak_regwildcards )
|
||||||
|
{
|
||||||
|
if( $symbol =~ /^$wild$/ )
|
||||||
|
{
|
||||||
|
$found = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( ! $found )
|
||||||
|
{
|
||||||
|
print STDERR "Public symbol " . $orig_symbol . " is not allowed!\n";
|
||||||
|
$exit_code = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
close( FILEIN );
|
||||||
|
|
||||||
|
print STDOUT $exit_code == 0 ? "OK\n" : "FAILED\n";
|
||||||
|
|
||||||
|
exit $exit_code;
|
||||||
|
|
||||||
|
sub process_symbols($\@\%\@)
|
||||||
|
{
|
||||||
|
my $allowed_symbols = $_[ 0 ];
|
||||||
|
my $wildcards_ref = $_[ 1 ];
|
||||||
|
my $exacts_ref = $_[ 2 ];
|
||||||
|
my $regwildcards_ref = $_[ 3 ];
|
||||||
|
|
||||||
|
$allowed_symbols =~ s/^ *//o; # strip whitespace
|
||||||
|
$allowed_symbols =~ s/ *$//o;
|
||||||
|
|
||||||
|
if( $allowed_symbols eq "NONE" )
|
||||||
|
{
|
||||||
|
$allowed_symbols = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
my @symbols1 = split( ' ', $allowed_symbols );
|
||||||
|
my $i = 0;
|
||||||
|
my @symbols2 = ();
|
||||||
|
while( defined( $symbols1[ $i ] ))
|
||||||
|
{
|
||||||
|
my $symbol = $symbols1[ $i ];
|
||||||
|
if( $symbol =~ /\./ ) # dot in name -> file
|
||||||
|
{
|
||||||
|
open( SYMIN, $symbol ) || die ( "Cannot open file " . $symbol . "!" );
|
||||||
|
while( $line = <SYMIN> )
|
||||||
|
{
|
||||||
|
$line =~ s/^\s*//o; # strip whitespace
|
||||||
|
$line =~ s/\s*$//o;
|
||||||
|
if( $line !~ /^$/o # empty line
|
||||||
|
&& $line !~ /^\s*#/ ) # comment line starting with #
|
||||||
|
{
|
||||||
|
$symbols2[ $#symbols2 + 1 ] = $line;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
close( SYMIN );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$symbols2[ $#symbols2 + 1 ] = $symbol;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
$i = 0;
|
||||||
|
while( defined( $symbols2[ $i ] ))
|
||||||
|
{
|
||||||
|
my $symbol = $symbols2[ $i ];
|
||||||
|
if( $symbol =~ /__/
|
||||||
|
|| $symbol =~ /^_[A-Z]/ )
|
||||||
|
{ # ISO C++ 2.10.2
|
||||||
|
die "Symbols containing a double underscore or beginning with an underscore and an upper-case letter are reserved!\n";
|
||||||
|
}
|
||||||
|
elsif( $symbol eq "main"
|
||||||
|
|| $symbol eq "main*" )
|
||||||
|
{
|
||||||
|
die "Symbol main is not allowed!\n";
|
||||||
|
}
|
||||||
|
if( $symbol =~ /^([^\*]*)\*$/o # trailing * without any * before it
|
||||||
|
&& $symbol !~ /operator\*$/o )
|
||||||
|
{
|
||||||
|
print STDERR "wildcard:" . $symbol . "\n" if $debug;
|
||||||
|
$wildcards_ref->[ $#{$wildcards_ref} + 1 ] = $1;
|
||||||
|
}
|
||||||
|
elsif( $symbol =~ /\*$/o
|
||||||
|
&& ( $symbol =~ /\*::/o || $symbol =~ /::\*/o )
|
||||||
|
&& $symbol !~ /^\*/o
|
||||||
|
&& $symbol !~ /operator\*$/o )
|
||||||
|
{
|
||||||
|
print STDERR "regwildcard:" . $symbol . "\n" if $debug;
|
||||||
|
$symbol =~ s/\*/\.\*/go; # change * to .* (regexp)
|
||||||
|
$regwildcards_ref->[ $#{$regwildcards_ref} + 1 ] = $symbol;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print STDERR "exact:" . $symbol . "\n" if $debug;
|
||||||
|
$exacts_ref->{ $symbol } = 1;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,192 @@
|
|||||||
|
### -*- autoconf -*-
|
||||||
|
|
||||||
|
dnl This file is part of the KDE libraries/packages
|
||||||
|
dnl Copyright (C) 1997 Janos Farkas (chexum@shadow.banki.hu)
|
||||||
|
dnl (C) 1997,98,99 Stephan Kulow (coolo@kde.org)
|
||||||
|
|
||||||
|
dnl This file is free software; you can redistribute it and/or
|
||||||
|
dnl modify it under the terms of the GNU Library General Public
|
||||||
|
dnl License as published by the Free Software Foundation; either
|
||||||
|
dnl version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
dnl This library is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
dnl Library General Public License for more details.
|
||||||
|
|
||||||
|
dnl You should have received a copy of the GNU Library General Public License
|
||||||
|
dnl along with this library; see the file COPYING.LIB. If not, write to
|
||||||
|
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
dnl Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
AC_DEFUN([KDE_CHECK_MICO],
|
||||||
|
[
|
||||||
|
AC_REQUIRE([KDE_CHECK_LIBDL])
|
||||||
|
AC_REQUIRE([KDE_MISC_TESTS])
|
||||||
|
AC_MSG_CHECKING(for MICO)
|
||||||
|
|
||||||
|
if test -z "$MICODIR"; then
|
||||||
|
kde_micodir=/usr/local
|
||||||
|
else
|
||||||
|
kde_micodir="$MICODIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_ARG_WITH(micodir,
|
||||||
|
[ --with-micodir=micodir where mico is installed ],
|
||||||
|
kde_micodir=$withval,
|
||||||
|
kde_micodir=$kde_micodir
|
||||||
|
)
|
||||||
|
|
||||||
|
AC_CACHE_VAL(kde_cv_mico_incdir,
|
||||||
|
[
|
||||||
|
mico_incdirs="$kde_micodir/include /usr/include /usr/local/include /usr/local/include /opt/local/include $kde_extra_includes"
|
||||||
|
AC_FIND_FILE(CORBA.h, $mico_incdirs, kde_cv_mico_incdir)
|
||||||
|
|
||||||
|
])
|
||||||
|
kde_micodir=`echo $kde_cv_mico_incdir | sed -e 's#/include##'`
|
||||||
|
|
||||||
|
if test ! -r $kde_micodir/include/CORBA.h; then
|
||||||
|
AC_MSG_ERROR([No CORBA.h found, specify another micodir])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_MSG_RESULT($kde_micodir)
|
||||||
|
|
||||||
|
MICO_INCLUDES=-I$kde_micodir/include
|
||||||
|
AC_SUBST(MICO_INCLUDES)
|
||||||
|
MICO_LDFLAGS=-L$kde_micodir/lib
|
||||||
|
AC_SUBST(MICO_LDFLAGS)
|
||||||
|
micodir=$kde_micodir
|
||||||
|
AC_SUBST(micodir)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for MICO version])
|
||||||
|
AC_CACHE_VAL(kde_cv_mico_version,
|
||||||
|
[
|
||||||
|
AC_LANG_C
|
||||||
|
cat >conftest.$ac_ext <<EOF
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <mico/version.h>
|
||||||
|
int main() {
|
||||||
|
|
||||||
|
printf("MICO_VERSION=%s\n",MICO_VERSION);
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
ac_compile='${CC-gcc} $CFLAGS $MICO_INCLUDES conftest.$ac_ext -o conftest'
|
||||||
|
if AC_TRY_EVAL(ac_compile); then
|
||||||
|
if eval `./conftest 2>&5`; then
|
||||||
|
kde_cv_mico_version=$MICO_VERSION
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([your system is not able to execute a small application to
|
||||||
|
find MICO version! Check $kde_micodir/include/mico/version.h])
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([your system is not able to compile a small application to
|
||||||
|
find MICO version! Check $kde_micodir/include/mico/version.h])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl installed MICO version
|
||||||
|
mico_v_maj=`echo $kde_cv_mico_version | sed -e 's/^\(.*\)\..*\..*$/\1/'`
|
||||||
|
mico_v_mid=`echo $kde_cv_mico_version | sed -e 's/^.*\.\(.*\)\..*$/\1/'`
|
||||||
|
mico_v_min=`echo $kde_cv_mico_version | sed -e 's/^.*\..*\.\(.*\)$/\1/'`
|
||||||
|
|
||||||
|
if test "x$1" = "x"; then
|
||||||
|
req_version="2.3.0"
|
||||||
|
else
|
||||||
|
req_version=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl required MICO version
|
||||||
|
req_v_maj=`echo $req_version | sed -e 's/^\(.*\)\..*\..*$/\1/'`
|
||||||
|
req_v_mid=`echo $req_version | sed -e 's/^.*\.\(.*\)\..*$/\1/'`
|
||||||
|
req_v_min=`echo $req_version | sed -e 's/^.*\..*\.\(.*\)$/\1/'`
|
||||||
|
|
||||||
|
if test "$mico_v_maj" -lt "$req_v_maj" || \
|
||||||
|
( test "$mico_v_maj" -eq "$req_v_maj" && \
|
||||||
|
test "$mico_v_mid" -lt "$req_v_mid" ) || \
|
||||||
|
( test "$mico_v_mid" -eq "$req_v_mid" && \
|
||||||
|
test "$mico_v_min" -lt "$req_v_min" )
|
||||||
|
|
||||||
|
then
|
||||||
|
AC_MSG_ERROR([found MICO version $kde_cv_mico_version but version $req_version \
|
||||||
|
at least is required. You should upgrade MICO.])
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([$kde_cv_mico_version (minimum version $req_version, ok)])
|
||||||
|
fi
|
||||||
|
|
||||||
|
LIBMICO="-lmico$kde_cv_mico_version $LIBCRYPT $LIBSOCKET $LIBDL"
|
||||||
|
AC_SUBST(LIBMICO)
|
||||||
|
if test -z "$IDL"; then
|
||||||
|
IDL='$(kde_bindir)/cuteidl'
|
||||||
|
fi
|
||||||
|
AC_SUBST(IDL)
|
||||||
|
IDL_DEPENDENCIES='$(kde_includes)/CUTE.h'
|
||||||
|
AC_SUBST(IDL_DEPENDENCIES)
|
||||||
|
|
||||||
|
idldir="\$(includedir)/idl"
|
||||||
|
AC_SUBST(idldir)
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([KDE_CHECK_MINI_STL],
|
||||||
|
[
|
||||||
|
AC_REQUIRE([KDE_CHECK_MICO])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if we use mico's mini-STL)
|
||||||
|
AC_CACHE_VAL(kde_cv_have_mini_stl,
|
||||||
|
[
|
||||||
|
AC_LANG_SAVE
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
kde_save_cxxflags="$CXXFLAGS"
|
||||||
|
CXXFLAGS="$CXXFLAGS $MICO_INCLUDES"
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[
|
||||||
|
#include <mico/config.h>
|
||||||
|
],
|
||||||
|
[
|
||||||
|
#ifdef HAVE_MINI_STL
|
||||||
|
#error "nothing"
|
||||||
|
#endif
|
||||||
|
],
|
||||||
|
kde_cv_have_mini_stl=no,
|
||||||
|
kde_cv_have_mini_stl=yes)
|
||||||
|
CXXFLAGS="$kde_save_cxxflags"
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
])
|
||||||
|
|
||||||
|
if test "x$kde_cv_have_mini_stl" = "xyes"; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
$1
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
$2
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([KDE_CHECK_ANSI],
|
||||||
|
[
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([KDE_CHECK_INSURE],
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(insure, [ --enable-insure use insure++ for debugging [default=no]],
|
||||||
|
[
|
||||||
|
if test $enableval = "no"; dnl
|
||||||
|
then ac_use_insure="no"
|
||||||
|
else ac_use_insure="yes"
|
||||||
|
fi
|
||||||
|
], [ac_use_insure="no"])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if we will use Insure++ to debug)
|
||||||
|
AC_MSG_RESULT($ac_use_insure)
|
||||||
|
if test "$ac_use_insure" = "yes"; dnl
|
||||||
|
then CC="insure"; CXX="insure"; dnl CFLAGS="$CLAGS -fno-rtti -fno-exceptions "????
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([KDE_CHECK_NEWLIBS],
|
||||||
|
[
|
||||||
|
|
||||||
|
])
|
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
||||||
|
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
||||||
|
dnl also defines GSTUFF_PKG_ERRORS on error
|
||||||
|
AC_DEFUN([PKG_CHECK_MODULES], [
|
||||||
|
succeeded=no
|
||||||
|
|
||||||
|
if test -z "$PKG_CONFIG"; then
|
||||||
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$PKG_CONFIG" = "no" ; then
|
||||||
|
echo "*** The pkg-config script could not be found. Make sure it is"
|
||||||
|
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
||||||
|
echo "*** to the full path to pkg-config."
|
||||||
|
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
||||||
|
else
|
||||||
|
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||||
|
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||||
|
AC_MSG_CHECKING(for $2)
|
||||||
|
|
||||||
|
if $PKG_CONFIG --exists "$2" ; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
succeeded=yes
|
||||||
|
|
||||||
|
AC_MSG_CHECKING($1_CFLAGS)
|
||||||
|
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
||||||
|
AC_MSG_RESULT($$1_CFLAGS)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING($1_LIBS)
|
||||||
|
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
||||||
|
AC_MSG_RESULT($$1_LIBS)
|
||||||
|
else
|
||||||
|
$1_CFLAGS=""
|
||||||
|
$1_LIBS=""
|
||||||
|
## If we have a custom action on failure, don't print errors, but
|
||||||
|
## do set a variable so people can do so.
|
||||||
|
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
||||||
|
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST($1_CFLAGS)
|
||||||
|
AC_SUBST($1_LIBS)
|
||||||
|
else
|
||||||
|
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
||||||
|
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $succeeded = yes; then
|
||||||
|
ifelse([$3], , :, [$3])
|
||||||
|
else
|
||||||
|
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
@ -0,0 +1,223 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# ylwrap - wrapper for lex/yacc invocations.
|
||||||
|
|
||||||
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
|
#
|
||||||
|
# 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
# 02110-1301, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
'')
|
||||||
|
echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
--basedir)
|
||||||
|
basedir=$2
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-h|--h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
|
||||||
|
|
||||||
|
Wrapper for lex/yacc invocations, renaming files as desired.
|
||||||
|
|
||||||
|
INPUT is the input file
|
||||||
|
OUTPUT is one file PROG generates
|
||||||
|
DESIRED is the file we actually want instead of OUTPUT
|
||||||
|
PROGRAM is program to run
|
||||||
|
ARGS are passed to PROG
|
||||||
|
|
||||||
|
Any number of OUTPUT,DESIRED pairs may be used.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v|--v*)
|
||||||
|
echo "ylwrap $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# The input.
|
||||||
|
input="$1"
|
||||||
|
shift
|
||||||
|
case "$input" in
|
||||||
|
[\\/]* | ?:[\\/]*)
|
||||||
|
# Absolute path; do nothing.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Relative path. Make it absolute.
|
||||||
|
input="`pwd`/$input"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
pairlist=
|
||||||
|
while test "$#" -ne 0; do
|
||||||
|
if test "$1" = "--"; then
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
pairlist="$pairlist $1"
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
# The program to run.
|
||||||
|
prog="$1"
|
||||||
|
shift
|
||||||
|
# Make any relative path in $prog absolute.
|
||||||
|
case "$prog" in
|
||||||
|
[\\/]* | ?:[\\/]*) ;;
|
||||||
|
*[\\/]*) prog="`pwd`/$prog" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# FIXME: add hostname here for parallel makes that run commands on
|
||||||
|
# other machines. But that might take us over the 14-char limit.
|
||||||
|
dirname=ylwrap$$
|
||||||
|
trap "cd `pwd`; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
|
||||||
|
mkdir $dirname || exit 1
|
||||||
|
|
||||||
|
cd $dirname
|
||||||
|
|
||||||
|
case $# in
|
||||||
|
0) $prog "$input" ;;
|
||||||
|
*) $prog "$@" "$input" ;;
|
||||||
|
esac
|
||||||
|
ret=$?
|
||||||
|
|
||||||
|
if test $ret -eq 0; then
|
||||||
|
set X $pairlist
|
||||||
|
shift
|
||||||
|
first=yes
|
||||||
|
# Since DOS filename conventions don't allow two dots,
|
||||||
|
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
|
||||||
|
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
|
||||||
|
y_tab_nodot="no"
|
||||||
|
if test -f y_tab.c || test -f y_tab.h; then
|
||||||
|
y_tab_nodot="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The directory holding the input.
|
||||||
|
input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'`
|
||||||
|
# Quote $INPUT_DIR so we can use it in a regexp.
|
||||||
|
# FIXME: really we should care about more than `.' and `\'.
|
||||||
|
input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'`
|
||||||
|
|
||||||
|
while test "$#" -ne 0; do
|
||||||
|
from="$1"
|
||||||
|
# Handle y_tab.c and y_tab.h output by DOS
|
||||||
|
if test $y_tab_nodot = "yes"; then
|
||||||
|
if test $from = "y.tab.c"; then
|
||||||
|
from="y_tab.c"
|
||||||
|
else
|
||||||
|
if test $from = "y.tab.h"; then
|
||||||
|
from="y_tab.h"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test -f "$from"; then
|
||||||
|
# If $2 is an absolute path name, then just use that,
|
||||||
|
# otherwise prepend `../'.
|
||||||
|
case "$2" in
|
||||||
|
[\\/]* | ?:[\\/]*) target="$2";;
|
||||||
|
*) target="../$2";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# We do not want to overwrite a header file if it hasn't
|
||||||
|
# changed. This avoid useless recompilations. However the
|
||||||
|
# parser itself (the first file) should always be updated,
|
||||||
|
# because it is the destination of the .y.c rule in the
|
||||||
|
# Makefile. Divert the output of all other files to a temporary
|
||||||
|
# file so we can compare them to existing versions.
|
||||||
|
if test $first = no; then
|
||||||
|
realtarget="$target"
|
||||||
|
target="tmp-`echo $target | sed s/.*[\\/]//g`"
|
||||||
|
fi
|
||||||
|
# Edit out `#line' or `#' directives.
|
||||||
|
#
|
||||||
|
# We don't want the resulting debug information to point at
|
||||||
|
# an absolute srcdir; it is better for it to just mention the
|
||||||
|
# .y file with no path.
|
||||||
|
#
|
||||||
|
# We want to use the real output file name, not yy.lex.c for
|
||||||
|
# instance.
|
||||||
|
#
|
||||||
|
# We want the include guards to be adjusted too.
|
||||||
|
FROM=`echo "$from" | sed \
|
||||||
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
|
||||||
|
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
|
||||||
|
TARGET=`echo "$2" | sed \
|
||||||
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
|
||||||
|
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
|
||||||
|
|
||||||
|
sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
|
||||||
|
-e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
|
||||||
|
|
||||||
|
# Check whether header files must be updated.
|
||||||
|
if test $first = no; then
|
||||||
|
if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
|
||||||
|
echo "$2" is unchanged
|
||||||
|
rm -f "$target"
|
||||||
|
else
|
||||||
|
echo updating "$2"
|
||||||
|
mv -f "$target" "$realtarget"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# A missing file is only an error for the first file. This
|
||||||
|
# is a blatant hack to let us support using "yacc -d". If -d
|
||||||
|
# is not specified, we don't want an error when the header
|
||||||
|
# file is "missing".
|
||||||
|
if test $first = yes; then
|
||||||
|
ret=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
first=no
|
||||||
|
done
|
||||||
|
else
|
||||||
|
ret=$?
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove the directory.
|
||||||
|
cd ..
|
||||||
|
rm -rf $dirname
|
||||||
|
|
||||||
|
exit $ret
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,241 @@
|
|||||||
|
/* config.h.in. Generated from configure.in by autoheader. */
|
||||||
|
|
||||||
|
/* Define if you have the CoreAudio API */
|
||||||
|
#undef HAVE_COREAUDIO
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <crt_externs.h> header file. */
|
||||||
|
#undef HAVE_CRT_EXTERNS_H
|
||||||
|
|
||||||
|
/* Defines if your system has the crypt function */
|
||||||
|
#undef HAVE_CRYPT
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define if you have libjpeg */
|
||||||
|
#undef HAVE_LIBJPEG
|
||||||
|
|
||||||
|
/* Define if you have libpng */
|
||||||
|
#undef HAVE_LIBPNG
|
||||||
|
|
||||||
|
/* Define if you have a working libpthread (will enable threaded code) */
|
||||||
|
#undef HAVE_LIBPTHREAD
|
||||||
|
|
||||||
|
/* Define if you have libz */
|
||||||
|
#undef HAVE_LIBZ
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define if your system needs _NSGetEnviron to set up the environment */
|
||||||
|
#undef HAVE_NSGETENVIRON
|
||||||
|
|
||||||
|
/* Define if you have res_init */
|
||||||
|
#undef HAVE_RES_INIT
|
||||||
|
|
||||||
|
/* Define if you have the res_init prototype */
|
||||||
|
#undef HAVE_RES_INIT_PROTO
|
||||||
|
|
||||||
|
/* Define if you have a STL implementation by SGI */
|
||||||
|
#undef HAVE_SGI_STL
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `snprintf' function. */
|
||||||
|
#undef HAVE_SNPRINTF
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define if you have strlcat */
|
||||||
|
#undef HAVE_STRLCAT
|
||||||
|
|
||||||
|
/* Define if you have the strlcat prototype */
|
||||||
|
#undef HAVE_STRLCAT_PROTO
|
||||||
|
|
||||||
|
/* Define if you have strlcpy */
|
||||||
|
#undef HAVE_STRLCPY
|
||||||
|
|
||||||
|
/* Define if you have the strlcpy prototype */
|
||||||
|
#undef HAVE_STRLCPY_PROTO
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/bitypes.h> header file. */
|
||||||
|
#undef HAVE_SYS_BITYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `vsnprintf' function. */
|
||||||
|
#undef HAVE_VSNPRINTF
|
||||||
|
|
||||||
|
/* Suffix for lib directories */
|
||||||
|
#undef KDELIBSUFF
|
||||||
|
|
||||||
|
/* Define a safe value for MAXPATHLEN */
|
||||||
|
#undef KDEMAXPATHLEN
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#undef PACKAGE_BUGREPORT
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
#undef PACKAGE_NAME
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
#undef PACKAGE_STRING
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* The size of a `char *', as computed by sizeof. */
|
||||||
|
#undef SIZEOF_CHAR_P
|
||||||
|
|
||||||
|
/* The size of a `int', as computed by sizeof. */
|
||||||
|
#undef SIZEOF_INT
|
||||||
|
|
||||||
|
/* The size of a `long', as computed by sizeof. */
|
||||||
|
#undef SIZEOF_LONG
|
||||||
|
|
||||||
|
/* The size of a `short', as computed by sizeof. */
|
||||||
|
#undef SIZEOF_SHORT
|
||||||
|
|
||||||
|
/* The size of a `size_t', as computed by sizeof. */
|
||||||
|
#undef SIZEOF_SIZE_T
|
||||||
|
|
||||||
|
/* The size of a `unsigned long', as computed by sizeof. */
|
||||||
|
#undef SIZEOF_UNSIGNED_LONG
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Defined if compiling without arts */
|
||||||
|
#undef WITHOUT_ARTS
|
||||||
|
|
||||||
|
/* Define to 1 if your processor stores words with the most significant byte
|
||||||
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||||
|
#undef WORDS_BIGENDIAN
|
||||||
|
|
||||||
|
/*
|
||||||
|
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
|
||||||
|
* headers and I'm too lazy to write a configure test as long as only
|
||||||
|
* unixware is related
|
||||||
|
*/
|
||||||
|
#ifdef _UNIXWARE
|
||||||
|
#define HAVE_BOOLEAN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
|
||||||
|
* that defines bzero.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(_AIX)
|
||||||
|
#include <strings.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
|
||||||
|
# include <sys/time.h>
|
||||||
|
# include <crt_externs.h>
|
||||||
|
# define environ (*_NSGetEnviron())
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(HAVE_RES_INIT_PROTO)
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
int res_init(void);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(HAVE_STRLCAT_PROTO)
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
unsigned long strlcat(char*, const char*, unsigned long);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(HAVE_STRLCPY_PROTO)
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
unsigned long strlcpy(char*, const char*, unsigned long);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* On HP-UX, the declaration of vsnprintf() is needed every time !
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if !defined(HAVE_VSNPRINTF) || defined(hpux)
|
||||||
|
#if __STDC__
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#else
|
||||||
|
#include <varargs.h>
|
||||||
|
#endif
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
int snprintf(char *str, size_t n, char const *fmt, ...);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__SVR4) && !defined(__svr4__)
|
||||||
|
#define __svr4__ 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* type to use in place of socklen_t if not defined */
|
||||||
|
#undef kde_socklen_t
|
||||||
|
|
||||||
|
/* type to use in place of socklen_t if not defined (deprecated, use
|
||||||
|
kde_socklen_t) */
|
||||||
|
#undef ksize_t
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,2 @@
|
|||||||
|
./admin/configure.in.min
|
||||||
|
configure.in.in
|
@ -0,0 +1,108 @@
|
|||||||
|
dnl =======================================================
|
||||||
|
dnl FILE: ./admin/configure.in.min
|
||||||
|
dnl =======================================================
|
||||||
|
|
||||||
|
dnl This file is part of the KDE libraries/packages
|
||||||
|
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
|
||||||
|
|
||||||
|
dnl This file is free software; you can redistribute it and/or
|
||||||
|
dnl modify it under the terms of the GNU Library General Public
|
||||||
|
dnl License as published by the Free Software Foundation; either
|
||||||
|
dnl version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
dnl This library is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
dnl Library General Public License for more details.
|
||||||
|
|
||||||
|
dnl You should have received a copy of the GNU Library General Public License
|
||||||
|
dnl along with this library; see the file COPYING.LIB. If not, write to
|
||||||
|
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
dnl Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
# Original Author was Kalle@kde.org
|
||||||
|
# I lifted it in some mater. (Stephan Kulow)
|
||||||
|
# I used much code from Janos Farkas
|
||||||
|
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
|
AC_INIT(acinclude.m4) dnl a source file from your sub dir
|
||||||
|
|
||||||
|
dnl This is so we can use kde-common
|
||||||
|
AC_CONFIG_AUX_DIR(admin)
|
||||||
|
|
||||||
|
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
|
||||||
|
unset CDPATH
|
||||||
|
|
||||||
|
dnl Checking host/target/build systems, for make, install etc.
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
dnl Perform program name transformation
|
||||||
|
AC_ARG_PROGRAM
|
||||||
|
|
||||||
|
dnl Automake doc recommends to do this only here. (Janos)
|
||||||
|
AM_INIT_AUTOMAKE(potracegui, 1.3) dnl searches for some needed programs
|
||||||
|
|
||||||
|
KDE_SET_PREFIX
|
||||||
|
|
||||||
|
dnl generate the config header
|
||||||
|
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_CHECK_COMPILERS
|
||||||
|
AC_ENABLE_SHARED(yes)
|
||||||
|
AC_ENABLE_STATIC(no)
|
||||||
|
KDE_PROG_LIBTOOL
|
||||||
|
|
||||||
|
dnl for NLS support. Call them in this order!
|
||||||
|
dnl WITH_NLS is for the po files
|
||||||
|
AM_KDE_WITH_NLS
|
||||||
|
|
||||||
|
KDE_USE_QT(3.0.0)
|
||||||
|
AC_PATH_KDE
|
||||||
|
dnl =======================================================
|
||||||
|
dnl FILE: configure.in.in
|
||||||
|
dnl =======================================================
|
||||||
|
|
||||||
|
#MIN_CONFIG(3.0.0)
|
||||||
|
|
||||||
|
dnl PACKAGE set before
|
||||||
|
AC_C_BIGENDIAN
|
||||||
|
AC_CHECK_KDEMAXPATHLEN
|
||||||
|
|
||||||
|
KDE_CREATE_SUBDIRSLIST
|
||||||
|
AC_CONFIG_FILES([ Makefile ])
|
||||||
|
AC_CONFIG_FILES([ doc/Makefile ])
|
||||||
|
AC_CONFIG_FILES([ doc/en/Makefile ])
|
||||||
|
AC_CONFIG_FILES([ po/Makefile ])
|
||||||
|
AC_CONFIG_FILES([ src/Makefile ])
|
||||||
|
AC_OUTPUT
|
||||||
|
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
|
||||||
|
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
|
||||||
|
# And if so, warn when they don't match
|
||||||
|
if test "$kde_libs_prefix" != "$given_prefix"; then
|
||||||
|
# And if kde doesn't know about the prefix yet
|
||||||
|
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
|
||||||
|
if test $? -ne 0; then
|
||||||
|
echo ""
|
||||||
|
echo "Warning: you chose to install this package in $given_prefix,"
|
||||||
|
echo "but KDE was found in $kde_libs_prefix."
|
||||||
|
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
|
||||||
|
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
|
||||||
|
echo "Then restart KDE."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$all_tests" = "bad"; then
|
||||||
|
if test ! "$cache_file" = "/dev/null"; then
|
||||||
|
echo ""
|
||||||
|
echo "Please remove the file $cache_file after changing your setup"
|
||||||
|
echo "so that configure will find the changes next time."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "Good - your configure finished. Start make now"
|
||||||
|
echo ""
|
||||||
|
fi
|
@ -0,0 +1,6 @@
|
|||||||
|
#MIN_CONFIG(3.0.0)
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(potracegui, 1.3)
|
||||||
|
AC_C_BIGENDIAN
|
||||||
|
AC_CHECK_KDEMAXPATHLEN
|
||||||
|
|
@ -0,0 +1,129 @@
|
|||||||
|
potracegui-kde3 (1.3-2.0ubuntu1) karmic; urgency=low
|
||||||
|
|
||||||
|
* Karmic rebuild for KDE3
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sat, 06 Mar 2010 06:02:00 -0600
|
||||||
|
|
||||||
|
potracegui (1.3-2.3ubuntu2) jaunty; urgency=low
|
||||||
|
|
||||||
|
* debian/rules: added --without-arts parameter to configure script call to
|
||||||
|
rebuild without arts support (LP: #320915)
|
||||||
|
|
||||||
|
-- Fabrice Coutadeur <fabricesp@ubuntu.com> Fri, 17 Apr 2009 05:08:31 +0000
|
||||||
|
|
||||||
|
potracegui (1.3-2.3ubuntu1) intrepid; urgency=low
|
||||||
|
|
||||||
|
* Merge from Debian unstable (LP: #229066). Remaining Ubuntu changes:
|
||||||
|
- debian/control: modify Maintainer to Ubuntu MOTU Developers
|
||||||
|
- debian/rules: add dh_icon
|
||||||
|
* Update Standards-Version to 3.7.3.
|
||||||
|
* Fix debian-rules-ignores-make-clean-error lintian warning.
|
||||||
|
* Fix debhelper-script-needs-versioned-build-depends lintian warning.
|
||||||
|
|
||||||
|
-- Devid Filoni <d.filoni@techemail.com> Sat, 22 Mar 2008 15:31:50 +0100
|
||||||
|
|
||||||
|
potracegui (1.3-2.3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Non-maintainer upload.
|
||||||
|
* Fix FTBFS with GCC 4.3 (Closes: #417484).
|
||||||
|
|
||||||
|
-- Luk Claes <luk@debian.org> Fri, 14 Mar 2008 19:01:38 +0000
|
||||||
|
|
||||||
|
potracegui (1.3-2.2ubuntu3) hardy; urgency=low
|
||||||
|
|
||||||
|
* debian/rules: change dh_iconcache to dh_icons to fix FTFBS. (LP: #204263)
|
||||||
|
|
||||||
|
-- Andrea Colangelo <warp10@ubuntu.com> Thu, 20 Mar 2008 14:41:57 +0100
|
||||||
|
|
||||||
|
potracegui (1.3-2.2ubuntu2) gutsy; urgency=low
|
||||||
|
|
||||||
|
* debian/control: Update maintainer fields according to debian-
|
||||||
|
maintainer-field spec.
|
||||||
|
|
||||||
|
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 15 Aug 2007 08:09:41 +0000
|
||||||
|
|
||||||
|
potracegui (1.3-2.2ubuntu1) dapper; urgency=low
|
||||||
|
|
||||||
|
* debian/rules: added dh_iconcache
|
||||||
|
|
||||||
|
-- Szilveszter Farkas (Phanatic) <Szilveszter.Farkas@gmail.com> Mon, 8 May 2006 10:26:45 +0200
|
||||||
|
|
||||||
|
potracegui (1.3-2.2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Non-maintainer upload.
|
||||||
|
* Fix FTBFS due to more restrictive coreutils. (Closes: #340010)
|
||||||
|
Patch by Roland Stigge.
|
||||||
|
|
||||||
|
-- Adeodato Simó <dato@net.com.org.es> Tue, 13 Dec 2005 03:40:56 +0100
|
||||||
|
|
||||||
|
potracegui (1.3-2.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Non-maintainer upload.
|
||||||
|
* Rebuild for the Qt/KDE transition (Closes: #327984)
|
||||||
|
* German PO file corrections (Closes: #313817)
|
||||||
|
|
||||||
|
-- Luk Claes <luk@debian.org> Fri, 30 Sep 2005 17:24:45 +0200
|
||||||
|
|
||||||
|
potracegui (1.3-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Urgency medium, cause without this fix package is almost unusable
|
||||||
|
for people using German locale.
|
||||||
|
* Closes: #303718: translated text is passed as option to potrace
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Sat, 30 Apr 2005 23:04:34 +0200
|
||||||
|
|
||||||
|
potracegui (1.3-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
- german translation
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Sat, 5 Mar 2005 12:46:14 +0100
|
||||||
|
|
||||||
|
potracegui (1.2-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
- added support for autotrace
|
||||||
|
* added upstream author to manpage
|
||||||
|
* Suggests autotrace now
|
||||||
|
* mention autotrace in description
|
||||||
|
* using dh_installman now
|
||||||
|
* added watch file
|
||||||
|
* various other minor fixes to make sponsor happy
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Tue, 4 Jan 2005 09:30:40 +0100
|
||||||
|
|
||||||
|
potracegui (1.1-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Wed, 17 Nov 2004 07:04:33 +0100
|
||||||
|
|
||||||
|
potracegui (1.0-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* new upstream release.
|
||||||
|
* removed recommondation for libmagick, as it is no longer needed.
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Tue, 22 Jun 2004 14:56:45 +0200
|
||||||
|
|
||||||
|
potracegui (0.5.1-3) unstable; urgency=low
|
||||||
|
|
||||||
|
* added autotool-dev to Build-Depends.
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Thu, 10 Jun 2004 16:00:58 +0200
|
||||||
|
|
||||||
|
potracegui (0.5.1-2) unstable; urgency=low
|
||||||
|
|
||||||
|
* adjusting the copyright file and the package description.
|
||||||
|
* fixed Build-Depends.
|
||||||
|
* Closes: #253205: ITP: potracegui -- a KDE frontend for potrace.
|
||||||
|
* Recommends now imagemagick, needed for displaying tracing results.
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Tue, 8 Jun 2004 09:40:05 +0200
|
||||||
|
|
||||||
|
potracegui (0.5.1-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Initial Release.
|
||||||
|
* My first debian package.
|
||||||
|
|
||||||
|
-- Christoph Wegscheider <christoph.wegscheider@wegi.net> Sat, 5 Jun 2004 14:59:34 +0200
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
4
|
@ -0,0 +1,20 @@
|
|||||||
|
Source: potracegui-kde3
|
||||||
|
Section: graphics
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||||
|
XSBC-Original-Maintainer: Christoph Wegscheider <christoph.wegscheider@wegi.net>
|
||||||
|
Uploaders: Bartosz Fenski <fenio@debian.org>
|
||||||
|
Build-Depends: debhelper (>= 5.0.51), autotools-dev, kdelibs4-kde3-dev
|
||||||
|
Standards-Version: 3.8.3
|
||||||
|
|
||||||
|
Package: potracegui-kde3
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, potrace
|
||||||
|
Suggests: autotrace
|
||||||
|
Description: KDE frontend for potrace [KDE3]
|
||||||
|
A KDE interface for the commandline tracing tools potrace and/or autotrace. It
|
||||||
|
supports drag and drop as well as all image types recognized by KDE, which are
|
||||||
|
a lot more than the 4 recognized by the potrace commandline tool. Loading of
|
||||||
|
remote files (web, ftp, ...) is also supported.
|
||||||
|
.
|
||||||
|
Homepage: http://potracegui.sourceforge.net
|
@ -0,0 +1,21 @@
|
|||||||
|
This package was debianized by Christoph Wegscheider <christoph.wegscheider@wegi.net> on
|
||||||
|
Thu, 5 Jun 2004 15:05:07 +0200.
|
||||||
|
|
||||||
|
It was downloaded from http://potracegui.sourceforge.net/
|
||||||
|
|
||||||
|
Upstream Author: Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
|
||||||
|
Copyright:
|
||||||
|
|
||||||
|
Copyright 2004 Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
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, or (at your option) any
|
||||||
|
later version.
|
||||||
|
|
||||||
|
On Debian systems, the complete text of the GNU General Public License
|
||||||
|
can be found in the file `/usr/share/common-licenses/GPL'.
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
usr/bin
|
||||||
|
usr/share/applnk/Graphics
|
||||||
|
usr/share/doc/kde
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
README
|
||||||
|
|
@ -0,0 +1,67 @@
|
|||||||
|
.\" Hey, EMACS: -*- nroff -*-
|
||||||
|
.\" First parameter, NAME, should be all caps
|
||||||
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||||
|
.\" other parameters are allowed: see man(7), man(1)
|
||||||
|
.TH POTRACEGUI 1 "January 4, 2005"
|
||||||
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
|
.\"
|
||||||
|
.\" Some roff macros, for reference:
|
||||||
|
.\" .nh disable hyphenation
|
||||||
|
.\" .hy enable hyphenation
|
||||||
|
.\" .ad l left justify
|
||||||
|
.\" .ad b justify to both left and right margins
|
||||||
|
.\" .nf disable filling
|
||||||
|
.\" .fi enable filling
|
||||||
|
.\" .br insert line break
|
||||||
|
.\" .sp <n> insert n+1 empty lines
|
||||||
|
.\" for manpage-specific macros, see man(7)
|
||||||
|
.SH NAME
|
||||||
|
potracegui \- a KDE frontend for potrace
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B potracegui
|
||||||
|
[Qt-options] [KDE-options] [URL]
|
||||||
|
.br
|
||||||
|
.SH DESCRIPTION
|
||||||
|
This manual page documents briefly the
|
||||||
|
.B potracegui
|
||||||
|
commands.
|
||||||
|
This manual page was written for the Debian distribution
|
||||||
|
because the original program does not have a manual page.
|
||||||
|
.PP
|
||||||
|
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||||
|
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||||
|
.\" respectively.
|
||||||
|
\fBpotracegui\fP is a KDE frontend for potrace.
|
||||||
|
.SH OPTIONS
|
||||||
|
A summary of options is included below.
|
||||||
|
.TP
|
||||||
|
.B \-\-help
|
||||||
|
Show help about options.
|
||||||
|
.TP
|
||||||
|
.B \-\-help-qt
|
||||||
|
Show QT specific options.
|
||||||
|
.TP
|
||||||
|
.B \-\-help-kde
|
||||||
|
Show KDE specific options.
|
||||||
|
.TP
|
||||||
|
.B \-\-help-all
|
||||||
|
Show all options.
|
||||||
|
.TP
|
||||||
|
.B \-\-author
|
||||||
|
Show author information.
|
||||||
|
.TP
|
||||||
|
.B \-v, \-\-version
|
||||||
|
Show version information.
|
||||||
|
.TP
|
||||||
|
.B \-\-license
|
||||||
|
Show license information.
|
||||||
|
.TP
|
||||||
|
.B \-\-
|
||||||
|
End of options.
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR potrace (1).
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was written by Christoph Wegscheider
|
||||||
|
<christoph.wegscheider@wegi.net>, for the Debian project (but may be used by
|
||||||
|
others). The original author of potracegui is Antonio Fasolato
|
||||||
|
<Antonio.Fasolato@poste.it>.
|
@ -0,0 +1,4 @@
|
|||||||
|
?package(potracegui):needs="X11" section="Apps/Graphics"\
|
||||||
|
title="potracegui" command="/opt/kde3/bin/potracegui"\
|
||||||
|
hints="KDE frontend for tracing programs"
|
||||||
|
|
@ -0,0 +1,107 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
|
||||||
|
# These are used for cross-compiling and for saving the configure script
|
||||||
|
# from having to guess our platform (since we know it already)
|
||||||
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||||
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||||
|
|
||||||
|
DEB_CONFIGURE_INCLUDEDIR := /opt/kde3/include/kde
|
||||||
|
DEB_CONFIGURE_MANDIR := /opt/kde3/share/man
|
||||||
|
DEB_CONFIGURE_PREFIX := /opt/kde3
|
||||||
|
DEB_CONFIGURE_INFODIR := /opt/kde3/share/info
|
||||||
|
|
||||||
|
cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)
|
||||||
|
|
||||||
|
DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/kde3 --with-extra-libs=/opt/kde3/lib
|
||||||
|
|
||||||
|
CFLAGS = -Wall -g
|
||||||
|
|
||||||
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CFLAGS += -O0
|
||||||
|
else
|
||||||
|
CFLAGS += -O2
|
||||||
|
endif
|
||||||
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||||
|
INSTALL_PROGRAM += -s
|
||||||
|
endif
|
||||||
|
|
||||||
|
config.status:
|
||||||
|
! [ -f /usr/share/libtool/ltmain.sh ] || \
|
||||||
|
cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
|
||||||
|
! [ -f /usr/share/libtool/config/ltmain.sh ] || \
|
||||||
|
cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
|
||||||
|
cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
|
||||||
|
|
||||||
|
make -f admin/Makefile.common cvs
|
||||||
|
|
||||||
|
dh_testdir
|
||||||
|
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/opt/kde3 --mandir=/opt/kde3/share/man --infodir=/opt/kde3/share/info --disable-rpath
|
||||||
|
|
||||||
|
|
||||||
|
build: build-stamp
|
||||||
|
|
||||||
|
build-stamp: config.status
|
||||||
|
dh_testdir
|
||||||
|
$(MAKE)
|
||||||
|
|
||||||
|
touch build-stamp
|
||||||
|
|
||||||
|
clean:
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
rm -f build-stamp
|
||||||
|
|
||||||
|
[ ! -f Makefile ] || $(MAKE) distclean
|
||||||
|
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
|
||||||
|
cp -f /usr/share/misc/config.sub config.sub
|
||||||
|
endif
|
||||||
|
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
|
||||||
|
cp -f /usr/share/misc/config.guess config.guess
|
||||||
|
endif
|
||||||
|
|
||||||
|
rm -f po/*.gmo
|
||||||
|
|
||||||
|
|
||||||
|
dh_clean --exclude ./src/potracegui.cpp.orig
|
||||||
|
|
||||||
|
install: build
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_clean -k --exclude ./src/potracegui.cpp.orig
|
||||||
|
dh_installdirs
|
||||||
|
|
||||||
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/potracegui-kde3
|
||||||
|
mkdir -p $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/doc/kde
|
||||||
|
mv $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/doc/HTML $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/doc/kde/HTML
|
||||||
|
mkdir -p $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/applnk/Graphics
|
||||||
|
mv $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/applnk/Utilities/potracegui.desktop $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/applnk/Graphics/
|
||||||
|
rmdir $(CURDIR)/debian/potracegui-kde3/opt/kde3/share/applnk/Utilities
|
||||||
|
|
||||||
|
binary-indep: build install
|
||||||
|
|
||||||
|
binary-arch: build install
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_installchangelogs ChangeLog
|
||||||
|
dh_installdocs
|
||||||
|
dh_installmenu
|
||||||
|
dh_installman debian/potracegui-kde3.1
|
||||||
|
dh_icons
|
||||||
|
dh_link
|
||||||
|
dh_strip
|
||||||
|
dh_compress -X.docbook
|
||||||
|
dh_fixperms
|
||||||
|
dh_installdeb
|
||||||
|
dh_shlibdeps
|
||||||
|
dh_gencontrol
|
||||||
|
dh_md5sums
|
||||||
|
dh_builddeb
|
||||||
|
|
||||||
|
binary: binary-indep binary-arch
|
||||||
|
.PHONY: build clean binary-indep binary-arch binary install
|
@ -0,0 +1,2 @@
|
|||||||
|
version=2
|
||||||
|
ftp://ftp2.sf.net/pub/sourceforge/p/po/potracegui/ potracegui-([\d\.]*)\.tar\.gz debian uupdate
|
@ -0,0 +1,6 @@
|
|||||||
|
# the SUBDIRS is filled automatically by am_edit. If files are
|
||||||
|
# in this directory they are installed into the english dir
|
||||||
|
|
||||||
|
KDE_LANG = en
|
||||||
|
KDE_DOCS = potracegui
|
||||||
|
SUBDIRS = $(AUTODIRS)
|
@ -0,0 +1,2 @@
|
|||||||
|
KDE_DOCS = potracegui
|
||||||
|
KDE_LANG = en
|
@ -0,0 +1,555 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||||
|
<!ENTITY potracegui "<application>potracegui 2.0</application>">
|
||||||
|
<!ENTITY kappname "&potracegui;"><!-- Do *not* replace kappname-->
|
||||||
|
<!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->
|
||||||
|
<!ENTITY % addindex "IGNORE">
|
||||||
|
<!ENTITY % English "INCLUDE"><!-- change language only here -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Do not define any other entities; instead, use the entities
|
||||||
|
from kde-genent.entities and $LANG/user.entities. -->
|
||||||
|
]>
|
||||||
|
<!-- kdoctemplate v0.8 October 1 1999
|
||||||
|
Minor update to "Credits and Licenses" section on August 24, 2000
|
||||||
|
Removed "Revision history" section on 22 January 2001
|
||||||
|
Changed to Installation/Help menu entities 18 October 2001
|
||||||
|
Other minor cleanup and changes 18 October 2001 -->
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This template was designed by: David Rugge davidrugge@mindspring.com
|
||||||
|
with lots of help from: Eric Bischoff ebisch@cybercable.tm.fr
|
||||||
|
and Frederik Fouvry fouvry@sfs.nphil.uni-tuebingen.de
|
||||||
|
of the KDE DocBook team.
|
||||||
|
|
||||||
|
You may freely use this template for writing any sort of KDE documentation.
|
||||||
|
If you have any changes or improvements, please let us know.
|
||||||
|
|
||||||
|
Remember:
|
||||||
|
- in XML, the case of the <tags> and attributes is relevant ;
|
||||||
|
- also, quote all attributes.
|
||||||
|
|
||||||
|
Please don't forget to remove all these comments in your final documentation,
|
||||||
|
thanks ;-).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- ................................................................ -->
|
||||||
|
|
||||||
|
<!-- The language must NOT be changed here. -->
|
||||||
|
|
||||||
|
<book lang="&language;">
|
||||||
|
|
||||||
|
<!-- This header contains all of the meta-information for the document such
|
||||||
|
as Authors, publish date, the abstract, and Keywords -->
|
||||||
|
|
||||||
|
<bookinfo>
|
||||||
|
<title>The &potracegui; Handbook</title>
|
||||||
|
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<firstname></firstname>
|
||||||
|
<othername></othername>
|
||||||
|
<surname>Antonio Fasolato</surname>
|
||||||
|
<affiliation>
|
||||||
|
<address><email>Antonio.Fasolato@poste.it</email></address>
|
||||||
|
</affiliation>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
|
||||||
|
<!-- TRANS:ROLES_OF_TRANSLATORS -->
|
||||||
|
|
||||||
|
<copyright>
|
||||||
|
<year>1999</year>
|
||||||
|
<year>%{YEAR}</year>
|
||||||
|
<holder>Antonio Fasolato</holder>
|
||||||
|
</copyright>
|
||||||
|
<!-- Translators: put here the copyright notice of the translation -->
|
||||||
|
<!-- Put here the FDL notice. Read the explanation in fdl-notice.docbook
|
||||||
|
and in the FDL itself on how to use it. -->
|
||||||
|
<legalnotice>&FDLNotice;</legalnotice>
|
||||||
|
|
||||||
|
<!-- Date and version information of the documentation
|
||||||
|
Don't forget to include this last date and this last revision number, we
|
||||||
|
need them for translation coordination !
|
||||||
|
Please respect the format of the date (YYYY-MM-DD) and of the version
|
||||||
|
(V.MM.LL), it could be used by automation scripts.
|
||||||
|
Do NOT change these in the translation. -->
|
||||||
|
|
||||||
|
<date>2001-10-18</date>
|
||||||
|
<releaseinfo>2.0</releaseinfo>
|
||||||
|
|
||||||
|
<!-- Abstract about this handbook -->
|
||||||
|
|
||||||
|
<abstract>
|
||||||
|
<para>
|
||||||
|
&potracegui; is an application specially designed to do nothing you would
|
||||||
|
ever want.
|
||||||
|
</para>
|
||||||
|
</abstract>
|
||||||
|
|
||||||
|
<!-- This is a set of Keywords for indexing by search engines.
|
||||||
|
Please at least include KDE, the KDE package it is in, the name
|
||||||
|
of your application, and a few relevant keywords. -->
|
||||||
|
|
||||||
|
<keywordset>
|
||||||
|
<keyword>KDE</keyword>
|
||||||
|
<keyword>potracegui</keyword>
|
||||||
|
<keyword>nothing</keyword>
|
||||||
|
<keyword>nothing else</keyword>
|
||||||
|
</keywordset>
|
||||||
|
|
||||||
|
</bookinfo>
|
||||||
|
|
||||||
|
<!-- The contents of the documentation begin here. Label
|
||||||
|
each chapter so with the id attribute. This is necessary for two reasons: it
|
||||||
|
allows you to easily reference the chapter from other chapters of your
|
||||||
|
document, and if there is no ID, the name of the generated HTML files will vary
|
||||||
|
from time to time making it hard to manage for maintainers and for the CVS
|
||||||
|
system. Any chapter labelled (OPTIONAL) may be left out at the author's
|
||||||
|
discretion. Other chapters should not be left out in order to maintain a
|
||||||
|
consistent documentation style across all KDE apps. -->
|
||||||
|
|
||||||
|
<chapter id="introduction">
|
||||||
|
<title>Introduction</title>
|
||||||
|
|
||||||
|
<!-- The introduction chapter contains a brief introduction for the
|
||||||
|
application that explains what it does and where to report
|
||||||
|
problems. Basically a long version of the abstract. Don't include a
|
||||||
|
revision history. (see installation appendix comment) -->
|
||||||
|
|
||||||
|
<para>
|
||||||
|
&potracegui; is a program that lets you do absolutely nothing. Please report
|
||||||
|
any problems or feature requests to the &kde; mailing lists.
|
||||||
|
</para>
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="using-potracegui">
|
||||||
|
<title>Using &potracegui;</title>
|
||||||
|
|
||||||
|
<!-- This chapter should tell the user how to use your app. You should use as
|
||||||
|
many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document
|
||||||
|
your application. -->
|
||||||
|
|
||||||
|
<para>
|
||||||
|
|
||||||
|
<!-- Note that all graphics should be in .png format. Use no gifs because of
|
||||||
|
patent issues. -->
|
||||||
|
|
||||||
|
<screenshot>
|
||||||
|
<screeninfo>Here's a screenshot of &potracegui;</screeninfo>
|
||||||
|
<mediaobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="screenshot.png" format="PNG"/>
|
||||||
|
</imageobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="screenshot.eps" format="EPS"/>
|
||||||
|
</imageobject>
|
||||||
|
<textobject>
|
||||||
|
<phrase>Screenshot</phrase>
|
||||||
|
</textobject>
|
||||||
|
</mediaobject>
|
||||||
|
</screenshot>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1 id="potracegui-features">
|
||||||
|
<title>More &potracegui; features</title>
|
||||||
|
|
||||||
|
<para>It slices! It dices! and it comes with a free toaster!</para>
|
||||||
|
<para>
|
||||||
|
The Squiggle Tool <guiicon><inlinemediaobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="squiggle.png" format="PNG"/>
|
||||||
|
</imageobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="squiggle.eps" format="EPS"/>
|
||||||
|
</imageobject>
|
||||||
|
<textobject>
|
||||||
|
<phrase>Squiggle</phrase>
|
||||||
|
</textobject>
|
||||||
|
</inlinemediaobject></guiicon> is used to draw squiggly lines all over
|
||||||
|
the &potracegui; main window. It's not a bug, it's a feature!
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="commands">
|
||||||
|
<title>Command Reference</title>
|
||||||
|
|
||||||
|
<!-- (OPTIONAL, BUT RECOMMENDED) This chapter should list all of the
|
||||||
|
application windows and their menubar and toolbar commands for easy reference.
|
||||||
|
Also include any keys that have a special function but have no equivalent in the
|
||||||
|
menus or toolbars. This may not be necessary for small apps or apps with no tool
|
||||||
|
or menu bars. -->
|
||||||
|
|
||||||
|
<sect1 id="potracegui-mainwindow">
|
||||||
|
<title>The main &potracegui; window</title>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>The File Menu</title>
|
||||||
|
<para>
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><menuchoice>
|
||||||
|
<shortcut>
|
||||||
|
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
|
||||||
|
</shortcut>
|
||||||
|
<guimenu>File</guimenu>
|
||||||
|
<guimenuitem>New</guimenuitem>
|
||||||
|
</menuchoice></term>
|
||||||
|
<listitem><para><action>Creates a new document</action></para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><menuchoice>
|
||||||
|
<shortcut>
|
||||||
|
<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
|
||||||
|
</shortcut>
|
||||||
|
<guimenu>File</guimenu>
|
||||||
|
<guimenuitem>Save</guimenuitem>
|
||||||
|
</menuchoice></term>
|
||||||
|
<listitem><para><action>Saves the document</action></para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><menuchoice>
|
||||||
|
<shortcut>
|
||||||
|
<keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
|
||||||
|
</shortcut>
|
||||||
|
<guimenu>File</guimenu>
|
||||||
|
<guimenuitem>Quit</guimenuitem>
|
||||||
|
</menuchoice></term>
|
||||||
|
<listitem><para><action>Quits</action> &potracegui;</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>The <guimenu>Help</guimenu> Menu</title>
|
||||||
|
|
||||||
|
<!-- Assuming you have a standard help menu (help, what's this, about -->
|
||||||
|
<!-- &potracegui;, about KDE) then the documentation is already written. -->
|
||||||
|
<!-- The following entity is valid anywhere that a variablelist is -->
|
||||||
|
<!-- valid. -->
|
||||||
|
|
||||||
|
&help.menu.documentation;
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="developers">
|
||||||
|
<title>Developer's Guide to &potracegui;</title>
|
||||||
|
|
||||||
|
<!-- (OPTIONAL) A Programming/Scripting reference chapter should be
|
||||||
|
used for apps that use plugins or that provide their own scripting hooks
|
||||||
|
and/or development libraries. -->
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Programming &potracegui; plugins is a joy to behold. Just read through the next
|
||||||
|
66 pages of API's to learn how!
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<!-- Use refentries to describe APIs. Refentries are fairly complicated and you
|
||||||
|
should consult the docbook reference for further details. The example below was
|
||||||
|
taken from that reference and shortened a bit for readability. -->
|
||||||
|
|
||||||
|
<refentry id="re-1007-unmanagechildren-1">
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>XtUnmanageChildren</refentrytitle>
|
||||||
|
<refmiscinfo>Xt - Geometry Management</refmiscinfo>
|
||||||
|
</refmeta>
|
||||||
|
<refnamediv>
|
||||||
|
<refname>XtUnmanageChildren
|
||||||
|
</refname>
|
||||||
|
<refpurpose>remove a list of children from a parent widget's managed
|
||||||
|
list.
|
||||||
|
<indexterm id="ix-1007-unmanagechildren-1"><primary>widgets</primary><secondary>removing</secondary></indexterm>
|
||||||
|
<indexterm id="ix-1007-unmanagechildren-2"><primary>XtUnmanageChildren</primary></indexterm>
|
||||||
|
</refpurpose>
|
||||||
|
|
||||||
|
</refnamediv>
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<refsynopsisdivinfo>
|
||||||
|
<date>4 March 1996</date>
|
||||||
|
</refsynopsisdivinfo>
|
||||||
|
<synopsis>
|
||||||
|
void XtUnmanageChildren(<replaceable class="parameter">children</replaceable>, <replaceable class="parameter">num_children</replaceable>)
|
||||||
|
WidgetList <replaceable class="parameter">children</replaceable>;
|
||||||
|
Cardinal <replaceable class="parameter">num_children</replaceable>;
|
||||||
|
</synopsis>
|
||||||
|
|
||||||
|
<refsect2 id="r2-1007-unmanagechildren-1">
|
||||||
|
<title>Inputs</title>
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><replaceable class="parameter">children</replaceable>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Specifies an array of child widgets. Each child must be of
|
||||||
|
class RectObj or any subclass thereof.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><replaceable class="parameter">num_children</replaceable>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Specifies the number of elements in <replaceable class="parameter">children</replaceable>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</refsect2></refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1 id="r1-1007-unmanagechildren-1">
|
||||||
|
<title>Description
|
||||||
|
</title>
|
||||||
|
<para><function>XtUnmanageChildren()</function> unmaps the specified widgets
|
||||||
|
and removes them from their parent's geometry management.
|
||||||
|
The widgets will disappear from the screen, and (depending
|
||||||
|
on its parent) may no longer have screen space allocated for
|
||||||
|
them.
|
||||||
|
</para>
|
||||||
|
<para>Each of the widgets in the <replaceable class="parameter">children</replaceable> array must have
|
||||||
|
the same parent.
|
||||||
|
</para>
|
||||||
|
<para>See the “Algorithm” section below for full details of the
|
||||||
|
widget unmanagement procedure.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 id="r1-1007-unmanagechildren-2">
|
||||||
|
<title>Usage</title>
|
||||||
|
<para>Unmanaging widgets is the usual method for temporarily
|
||||||
|
making them invisible. They can be re-managed with
|
||||||
|
<function>XtManageChildren()</function>.
|
||||||
|
</para>
|
||||||
|
<para>You can unmap a widget, but leave it under geometry
|
||||||
|
management by calling <function>XtUnmapWidget()</function>. You can
|
||||||
|
destroy a widget's window without destroying the widget by
|
||||||
|
calling <function>XtUnrealizeWidget()</function>. You can destroy a
|
||||||
|
widget completely with <function>XtDestroyWidget()</function>.
|
||||||
|
</para>
|
||||||
|
<para>If you are only going to unmanage a single widget, it is
|
||||||
|
more convenient to call <function>XtUnmanageChild()</function>. It is
|
||||||
|
often more convenient to call <function>XtUnmanageChild()</function>
|
||||||
|
several times than it is to declare and initialize an array
|
||||||
|
of widgets to pass to <function>XtUnmanageChildren()</function>. Calling
|
||||||
|
<function>XtUnmanageChildren()</function> is more efficient, however,
|
||||||
|
because it only calls the parent's <function>change_managed()</function>
|
||||||
|
method once.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 id="r1-1007-unmanagechildren-3">
|
||||||
|
<title>Algorithm
|
||||||
|
</title>
|
||||||
|
<para><function>XtUnmanageChildren()</function> performs the following:
|
||||||
|
</para>
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>-
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Ignores the child if it already is unmanaged or is being
|
||||||
|
destroyed.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>-
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Otherwise, if the child is realized, it makes it nonvisible
|
||||||
|
by unmapping it.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 id="r1-1007-unmanagechildren-4">
|
||||||
|
<title>Structures</title>
|
||||||
|
<para>The <type>WidgetList</type> type is simply an array of widgets:
|
||||||
|
</para>
|
||||||
|
<screen id="sc-1007-unmanagechildren-1">typedef Widget *WidgetList;
|
||||||
|
</screen>
|
||||||
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
|
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="faq">
|
||||||
|
<title>Questions and Answers</title>
|
||||||
|
|
||||||
|
<!-- (OPTIONAL but recommended) This chapter should include all of the silly
|
||||||
|
(and not-so-silly) newbie questions that fill up your mailbox. This chapter
|
||||||
|
should be reserved for BRIEF questions and answers! If one question uses more
|
||||||
|
than a page or so then it should probably be part of the
|
||||||
|
"Using this Application" chapter instead. You should use links to
|
||||||
|
cross-reference questions to the parts of your documentation that answer them.
|
||||||
|
This is also a great place to provide pointers to other FAQ's if your users
|
||||||
|
must do some complicated configuration on other programs in order for your
|
||||||
|
application work. -->
|
||||||
|
|
||||||
|
&reporting.bugs;
|
||||||
|
&updating.documentation;
|
||||||
|
|
||||||
|
<qandaset id="faqlist">
|
||||||
|
<qandaentry>
|
||||||
|
<question>
|
||||||
|
<para>My Mouse doesn't work. How do I quit &potracegui;?</para>
|
||||||
|
</question>
|
||||||
|
<answer>
|
||||||
|
<para>You silly goose! Check out the <link linkend="commands">Commands
|
||||||
|
Section</link> for the answer.</para>
|
||||||
|
</answer>
|
||||||
|
</qandaentry>
|
||||||
|
<qandaentry>
|
||||||
|
<question>
|
||||||
|
<para>Why can't I twiddle my documents?</para>
|
||||||
|
</question>
|
||||||
|
<answer>
|
||||||
|
<para>You can only twiddle your documents if you have the foobar.lib
|
||||||
|
installed.</para>
|
||||||
|
</answer>
|
||||||
|
</qandaentry>
|
||||||
|
</qandaset>
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="credits">
|
||||||
|
|
||||||
|
<!-- Include credits for the programmers, documentation writers, and
|
||||||
|
contributors here. The license for your software should then be included below
|
||||||
|
the credits with a reference to the appropriate license file included in the KDE
|
||||||
|
distribution. -->
|
||||||
|
|
||||||
|
<title>Credits and License</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
&potracegui;
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Program copyright %{YEAR} Antonio Fasolato <email>Antonio.Fasolato@poste.it</email>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Contributors:
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>Konqui the KDE Dragon <email>konqui@kde.org</email></para>
|
||||||
|
</listitem>
|
||||||
|
<listitem><para>Tux the Linux Penguin <email>tux@linux.org</email></para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Documentation copyright %{YEAR} Antonio Fasolato <email>Antonio.Fasolato@poste.it</email>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
|
||||||
|
|
||||||
|
&underFDL; <!-- FDL: do not remove -->
|
||||||
|
|
||||||
|
<!-- Determine which license your application is licensed under,
|
||||||
|
and delete all the remaining licenses below:
|
||||||
|
|
||||||
|
(NOTE: All documentation are licensed under the FDL,
|
||||||
|
regardless of what license the application uses) -->
|
||||||
|
|
||||||
|
&underGPL; <!-- GPL License -->
|
||||||
|
&underBSDLicense; <!-- BSD License -->
|
||||||
|
&underArtisticLicense; <!-- BSD Artistic License -->
|
||||||
|
&underX11License; <!-- X11 License -->
|
||||||
|
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<appendix id="installation">
|
||||||
|
<title>Installation</title>
|
||||||
|
|
||||||
|
<sect1 id="getting-potracegui">
|
||||||
|
<title>How to obtain &potracegui;</title>
|
||||||
|
|
||||||
|
<!-- This first entity contains boiler plate for applications that are
|
||||||
|
part of KDE CVS. You should remove it if you are releasing your
|
||||||
|
application -->
|
||||||
|
|
||||||
|
&install.intro.documentation;
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="requirements">
|
||||||
|
<title>Requirements</title>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
List any special requirements for your application here. This should include:
|
||||||
|
.Libraries or other software that is not included in kdesupport,
|
||||||
|
kdelibs, or kdebase.
|
||||||
|
.Hardware requirements like amount of RAM, disk space, graphics card
|
||||||
|
capabilities, screen resolution, special expansion cards, etc.
|
||||||
|
.Operating systems the app will run on. If your app is designed only for a
|
||||||
|
specific OS, (you wrote a graphical LILO configurator for example) put this
|
||||||
|
information here.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<para>
|
||||||
|
In order to successfully use &potracegui;, you need &kde; 1.1. Foobar.lib is
|
||||||
|
required in order to support the advanced &potracegui; features. &potracegui; uses
|
||||||
|
about 5 megs of memory to run, but this may vary depending on your
|
||||||
|
platform and configuration.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
All required libraries as well as &potracegui; itself can be found
|
||||||
|
on <ulink url="ftp://ftp.potracegui.org">The &potracegui; home page</ulink>.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<!-- For a list of updates, you may refer to the application web site
|
||||||
|
or the ChangeLog file, or ... -->
|
||||||
|
<para>
|
||||||
|
You can find a list of changes at <ulink
|
||||||
|
url="http://apps.kde.org/potracegui">http://apps.kde.org/potracegui</ulink>.
|
||||||
|
</para>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="compilation">
|
||||||
|
<title>Compilation and Installation</title>
|
||||||
|
|
||||||
|
<!-- This entity contains the boilerplate text for standard -->
|
||||||
|
<!-- compilation instructions. If your application requires any -->
|
||||||
|
<!-- special handling, remove it, and replace with your own text. -->
|
||||||
|
|
||||||
|
&install.compile.documentation;
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="configuration">
|
||||||
|
<title>Configuration</title>
|
||||||
|
|
||||||
|
<para>Don't forget to tell your system to start the <filename>dtd</filename>
|
||||||
|
dicer-toaster daemon first, or &potracegui; won't work !</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</appendix>
|
||||||
|
|
||||||
|
&documentation.index;
|
||||||
|
</book>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Local Variables:
|
||||||
|
mode: sgml
|
||||||
|
sgml-minimize-attributes:nil
|
||||||
|
sgml-general-insert-case:lower
|
||||||
|
sgml-indent-step:0
|
||||||
|
sgml-indent-data:nil
|
||||||
|
End:
|
||||||
|
|
||||||
|
vim:tabstop=2:shiftwidth=2:expandtab
|
||||||
|
-->
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
POFILES = AUTO
|
@ -0,0 +1,584 @@
|
|||||||
|
# Makefile.in generated by automake 1.9.1 from Makefile.am.
|
||||||
|
# KDE tags expanded automatically by am_edit - $Revision: 1.1.1.1 $
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
top_builddir = ..
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_triplet = @target@
|
||||||
|
subdir = po
|
||||||
|
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||||
|
$(top_srcdir)/configure.in
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
|
||||||
|
CONFIG_HEADER = $(top_builddir)/config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
SOURCES =
|
||||||
|
DIST_SOURCES =
|
||||||
|
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
#>+ 1
|
||||||
|
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||||
|
#>+ 1
|
||||||
|
DISTFILES = $(GMOFILES) $(POFILES) $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AMDEP_FALSE = @AMDEP_FALSE@
|
||||||
|
AMDEP_TRUE = @AMDEP_TRUE@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AR = @AR@
|
||||||
|
ARTSCCONFIG = @ARTSCCONFIG@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTODIRS = @AUTODIRS@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CONF_FILES = @CONF_FILES@
|
||||||
|
CPP = @CPP@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DCOPIDL = @DCOPIDL@
|
||||||
|
DCOPIDL2CPP = @DCOPIDL2CPP@
|
||||||
|
DCOPIDLNG = @DCOPIDLNG@
|
||||||
|
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
ECHO = @ECHO@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
F77 = @F77@
|
||||||
|
FFLAGS = @FFLAGS@
|
||||||
|
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
|
||||||
|
GMSGFMT = @GMSGFMT@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
|
||||||
|
KCONFIG_COMPILER = @KCONFIG_COMPILER@
|
||||||
|
KDECONFIG = @KDECONFIG@
|
||||||
|
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
|
||||||
|
KDE_INCLUDES = @KDE_INCLUDES@
|
||||||
|
KDE_LDFLAGS = @KDE_LDFLAGS@
|
||||||
|
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
|
||||||
|
KDE_MT_LIBS = @KDE_MT_LIBS@
|
||||||
|
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
|
||||||
|
KDE_PLUGIN = @KDE_PLUGIN@
|
||||||
|
KDE_RPATH = @KDE_RPATH@
|
||||||
|
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
|
||||||
|
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
|
||||||
|
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
|
||||||
|
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
|
||||||
|
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||||
|
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||||
|
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBCOMPAT = @LIBCOMPAT@
|
||||||
|
LIBCRYPT = @LIBCRYPT@
|
||||||
|
LIBDL = @LIBDL@
|
||||||
|
LIBJPEG = @LIBJPEG@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBPNG = @LIBPNG@
|
||||||
|
LIBPTHREAD = @LIBPTHREAD@
|
||||||
|
LIBRESOLV = @LIBRESOLV@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LIBSM = @LIBSM@
|
||||||
|
LIBSOCKET = @LIBSOCKET@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIBUCB = @LIBUCB@
|
||||||
|
LIBUTIL = @LIBUTIL@
|
||||||
|
LIBZ = @LIBZ@
|
||||||
|
LIB_KAB = @LIB_KAB@
|
||||||
|
LIB_KABC = @LIB_KABC@
|
||||||
|
LIB_KDECORE = @LIB_KDECORE@
|
||||||
|
LIB_KDEPIM = @LIB_KDEPIM@
|
||||||
|
LIB_KDEPRINT = @LIB_KDEPRINT@
|
||||||
|
LIB_KDEUI = @LIB_KDEUI@
|
||||||
|
LIB_KFILE = @LIB_KFILE@
|
||||||
|
LIB_KFM = @LIB_KFM@
|
||||||
|
LIB_KHTML = @LIB_KHTML@
|
||||||
|
LIB_KIO = @LIB_KIO@
|
||||||
|
LIB_KPARTS = @LIB_KPARTS@
|
||||||
|
LIB_KSPELL = @LIB_KSPELL@
|
||||||
|
LIB_KSYCOCA = @LIB_KSYCOCA@
|
||||||
|
LIB_KUTILS = @LIB_KUTILS@
|
||||||
|
LIB_POLL = @LIB_POLL@
|
||||||
|
LIB_QPE = @LIB_QPE@
|
||||||
|
LIB_QT = @LIB_QT@
|
||||||
|
LIB_SMB = @LIB_SMB@
|
||||||
|
LIB_X11 = @LIB_X11@
|
||||||
|
LIB_XEXT = @LIB_XEXT@
|
||||||
|
LIB_XRENDER = @LIB_XRENDER@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MCOPIDL = @MCOPIDL@
|
||||||
|
MEINPROC = @MEINPROC@
|
||||||
|
MOC = @MOC@
|
||||||
|
MSGFMT = @MSGFMT@
|
||||||
|
NOOPT_CFLAGS = @NOOPT_CFLAGS@
|
||||||
|
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PERL = @PERL@
|
||||||
|
QTE_NORTTI = @QTE_NORTTI@
|
||||||
|
QT_INCLUDES = @QT_INCLUDES@
|
||||||
|
QT_LDFLAGS = @QT_LDFLAGS@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
TOPSUBDIRS = @TOPSUBDIRS@
|
||||||
|
UIC = @UIC@
|
||||||
|
UIC_TR = @UIC_TR@
|
||||||
|
USER_INCLUDES = @USER_INCLUDES@
|
||||||
|
USER_LDFLAGS = @USER_LDFLAGS@
|
||||||
|
USE_EXCEPTIONS = @USE_EXCEPTIONS@
|
||||||
|
USE_RTTI = @USE_RTTI@
|
||||||
|
USE_THREADS = @USE_THREADS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
|
||||||
|
XGETTEXT = @XGETTEXT@
|
||||||
|
XMLLINT = @XMLLINT@
|
||||||
|
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||||
|
X_INCLUDES = @X_INCLUDES@
|
||||||
|
X_LDFLAGS = @X_LDFLAGS@
|
||||||
|
X_PRE_LIBS = @X_PRE_LIBS@
|
||||||
|
X_RPATH = @X_RPATH@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_CXX = @ac_ct_CXX@
|
||||||
|
ac_ct_F77 = @ac_ct_F77@
|
||||||
|
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||||
|
ac_ct_STRIP = @ac_ct_STRIP@
|
||||||
|
all_includes = @all_includes@
|
||||||
|
all_libraries = @all_libraries@
|
||||||
|
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||||
|
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||||
|
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||||
|
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
datadir = @datadir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
|
include_ARTS_FALSE = @include_ARTS_FALSE@
|
||||||
|
include_ARTS_TRUE = @include_ARTS_TRUE@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
kde_appsdir = @kde_appsdir@
|
||||||
|
kde_bindir = @kde_bindir@
|
||||||
|
kde_confdir = @kde_confdir@
|
||||||
|
kde_datadir = @kde_datadir@
|
||||||
|
kde_htmldir = @kde_htmldir@
|
||||||
|
kde_icondir = @kde_icondir@
|
||||||
|
kde_includes = @kde_includes@
|
||||||
|
kde_kcfgdir = @kde_kcfgdir@
|
||||||
|
kde_libraries = @kde_libraries@
|
||||||
|
kde_libs_htmldir = @kde_libs_htmldir@
|
||||||
|
kde_libs_prefix = @kde_libs_prefix@
|
||||||
|
kde_locale = @kde_locale@
|
||||||
|
kde_mimedir = @kde_mimedir@
|
||||||
|
kde_moduledir = @kde_moduledir@
|
||||||
|
kde_qtver = @kde_qtver@
|
||||||
|
kde_servicesdir = @kde_servicesdir@
|
||||||
|
kde_servicetypesdir = @kde_servicetypesdir@
|
||||||
|
kde_sounddir = @kde_sounddir@
|
||||||
|
kde_styledir = @kde_styledir@
|
||||||
|
kde_templatesdir = @kde_templatesdir@
|
||||||
|
kde_wallpaperdir = @kde_wallpaperdir@
|
||||||
|
kde_widgetdir = @kde_widgetdir@
|
||||||
|
kdeinitdir = @kdeinitdir@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
qt_includes = @qt_includes@
|
||||||
|
qt_libraries = @qt_libraries@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target = @target@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_cpu = @target_cpu@
|
||||||
|
target_os = @target_os@
|
||||||
|
target_vendor = @target_vendor@
|
||||||
|
x_includes = @x_includes@
|
||||||
|
x_libraries = @x_libraries@
|
||||||
|
xdg_appsdir = @xdg_appsdir@
|
||||||
|
xdg_directorydir = @xdg_directorydir@
|
||||||
|
xdg_menudir = @xdg_menudir@
|
||||||
|
#>- POFILES = AUTO
|
||||||
|
#>+ 2
|
||||||
|
POFILES = de.po
|
||||||
|
GMOFILES = de.gmo
|
||||||
|
#>- all: all-am
|
||||||
|
#>+ 1
|
||||||
|
all: all-nls docs-am all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
#>- @for dep in $?; do \
|
||||||
|
#>- case '$(am__configure_deps)' in \
|
||||||
|
#>- *$$dep*) \
|
||||||
|
#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||||
|
#>- && exit 0; \
|
||||||
|
#>- exit 1;; \
|
||||||
|
#>- esac; \
|
||||||
|
#>- done; \
|
||||||
|
#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu po/Makefile'; \
|
||||||
|
#>- cd $(top_srcdir) && \
|
||||||
|
#>- $(AUTOMAKE) --gnu po/Makefile
|
||||||
|
#>+ 12
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu po/Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --gnu po/Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit po/Makefile.in
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
-rm -f libtool
|
||||||
|
uninstall-info-am:
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS:
|
||||||
|
|
||||||
|
|
||||||
|
#>- distdir: $(DISTFILES)
|
||||||
|
#>+ 1
|
||||||
|
distdir: distdir-nls $(DISTFILES)
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||||
|
list='$(DISTFILES)'; for file in $$list; do \
|
||||||
|
case $$file in \
|
||||||
|
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||||
|
esac; \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||||
|
dir="/$$dir"; \
|
||||||
|
$(mkdir_p) "$(distdir)$$dir"; \
|
||||||
|
else \
|
||||||
|
dir=''; \
|
||||||
|
fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||||
|
fi; \
|
||||||
|
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile
|
||||||
|
installdirs:
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
#>- uninstall: uninstall-am
|
||||||
|
#>+ 1
|
||||||
|
uninstall: uninstall-nls uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
`test -z '$(STRIP)' || \
|
||||||
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
#>- clean: clean-am
|
||||||
|
#>+ 1
|
||||||
|
clean: kde-rpo-clean clean-am
|
||||||
|
|
||||||
|
#>- clean-am: clean-generic clean-libtool mostlyclean-am
|
||||||
|
#>+ 1
|
||||||
|
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-generic distclean-libtool
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
#>- install-data-am:
|
||||||
|
#>+ 1
|
||||||
|
install-data-am: install-nls
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
#>- maintainer-clean: maintainer-clean-am
|
||||||
|
#>+ 1
|
||||||
|
maintainer-clean: clean-nls maintainer-clean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-info-am
|
||||||
|
|
||||||
|
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||||
|
distclean distclean-generic distclean-libtool distdir dvi \
|
||||||
|
dvi-am html html-am info info-am install install-am \
|
||||||
|
install-data install-data-am install-exec install-exec-am \
|
||||||
|
install-info install-info-am install-man install-strip \
|
||||||
|
installcheck installcheck-am installdirs maintainer-clean \
|
||||||
|
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||||
|
mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
|
||||||
|
uninstall-info-am
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
KDE_DIST=Makefile.in potracegui.pot de.po Makefile.am
|
||||||
|
|
||||||
|
#>+ 4
|
||||||
|
de.gmo: de.po
|
||||||
|
rm -f de.gmo; $(GMSGFMT) -o de.gmo $(srcdir)/de.po
|
||||||
|
test ! -f de.gmo || touch de.gmo
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
clean-nls:
|
||||||
|
-rm -f de.gmo
|
||||||
|
|
||||||
|
#>+ 10
|
||||||
|
install-nls:
|
||||||
|
@for base in de ; do \
|
||||||
|
echo $(INSTALL_DATA) $$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES ; \
|
||||||
|
if test -f $$base.gmo; then $(INSTALL_DATA) $$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
|
||||||
|
elif test -f $(srcdir)/$$base.gmo; then $(INSTALL_DATA) $(srcdir)/$$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
|
||||||
|
fi ;\
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
uninstall-nls:
|
||||||
|
rm -f $(DESTDIR)$(kde_locale)/de/LC_MESSAGES/$(PACKAGE).mo
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
all-nls: $(GMOFILES)
|
||||||
|
|
||||||
|
#>+ 8
|
||||||
|
distdir-nls:$(GMOFILES)
|
||||||
|
for file in $(POFILES); do \
|
||||||
|
cp $(srcdir)/$$file $(distdir); \
|
||||||
|
done
|
||||||
|
for file in $(GMOFILES); do \
|
||||||
|
cp $(srcdir)/$$file $(distdir); \
|
||||||
|
done
|
||||||
|
|
||||||
|
#>+ 4
|
||||||
|
merge:
|
||||||
|
$(MAKE) -f $(top_srcdir)/admin/Makefile.common package-merge POFILES="${POFILES}" PACKAGE=${PACKAGE}
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
docs-am:
|
||||||
|
|
||||||
|
#>+ 15
|
||||||
|
force-reedit:
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu po/Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --gnu po/Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit po/Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 21
|
||||||
|
clean-bcheck:
|
||||||
|
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||||
|
|
||||||
|
bcheck: bcheck-am
|
||||||
|
|
||||||
|
bcheck-am:
|
||||||
|
@for i in ; do \
|
||||||
|
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
|
||||||
|
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
|
||||||
|
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
|
||||||
|
echo "$$i"; \
|
||||||
|
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
|
||||||
|
rm -f $$i.bchecktest.cc; exit 1; \
|
||||||
|
fi ; \
|
||||||
|
echo "" >> $$i.bchecktest.cc.class; \
|
||||||
|
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
|
||||||
|
rm -f a.out; \
|
||||||
|
fi ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
final:
|
||||||
|
$(MAKE) all-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
final-install:
|
||||||
|
$(MAKE) install-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
no-final:
|
||||||
|
$(MAKE) all-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
no-final-install:
|
||||||
|
$(MAKE) install-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
cvs-clean:
|
||||||
|
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
kde-rpo-clean:
|
||||||
|
-rm -f *.rpo
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
nmcheck:
|
||||||
|
nmcheck-am: nmcheck
|
@ -0,0 +1,961 @@
|
|||||||
|
# translation of de.po to german
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
|
||||||
|
# Tim Fechtner <Tim.Fechtner@gmx.de>, 2005.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: de\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2005-01-18 19:45+0100\n"
|
||||||
|
"PO-Revision-Date: 2005-01-18 19:50+0100\n"
|
||||||
|
"Last-Translator: Tim Fechtner <Tim.Fechtner@gmx.de>\n"
|
||||||
|
"Language-Team: german <de@li.org>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: KBabel 1.3.1\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: main.cpp:29
|
||||||
|
msgid "An interface for potrace"
|
||||||
|
msgstr "Eine Oberfläche für potrace"
|
||||||
|
|
||||||
|
#: main.cpp:33
|
||||||
|
msgid "Document to open"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.cpp:39
|
||||||
|
msgid "potracegui"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:59
|
||||||
|
msgid "Original image"
|
||||||
|
msgstr "Orginalbild"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:60
|
||||||
|
msgid "Preview"
|
||||||
|
msgstr "Vorschau"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:84
|
||||||
|
msgid "Checking autotrace formats."
|
||||||
|
msgstr "Lese Autotrace-Formate ein."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:89
|
||||||
|
msgid "Done."
|
||||||
|
msgstr "Fertig."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:92
|
||||||
|
msgid "Autotrace not found."
|
||||||
|
msgstr "Autotrace nicht gefunden."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:107
|
||||||
|
msgid "Select an image"
|
||||||
|
msgstr "Bild auswählen"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:119 mainwidget.cpp:205 mainwidget.cpp:402 mainwidget.cpp:492
|
||||||
|
#: mainwidget.cpp:626 mainwidget.cpp:1005 rc.cpp:23
|
||||||
|
msgid "eps"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:120 mainwidget.cpp:206
|
||||||
|
msgid "*.eps|Encapsulated postscript"
|
||||||
|
msgstr "*.eps|Encapsulated Postscript"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:121 mainwidget.cpp:207 mainwidget.cpp:402 mainwidget.cpp:492
|
||||||
|
#: mainwidget.cpp:645 mainwidget.cpp:1005 rc.cpp:24
|
||||||
|
msgid "postscript"
|
||||||
|
msgstr "Postscript"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:122 mainwidget.cpp:208
|
||||||
|
msgid "*.ps|Postscript"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:123 mainwidget.cpp:209 mainwidget.cpp:410 mainwidget.cpp:504
|
||||||
|
#: mainwidget.cpp:664 mainwidget.cpp:1001 rc.cpp:25 rc.cpp:55
|
||||||
|
msgid "SVG"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:124 mainwidget.cpp:210
|
||||||
|
msgid "*.svg|SVG images"
|
||||||
|
msgstr "*.svg|Skalierbare Vektorgrafik"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:125 mainwidget.cpp:211 mainwidget.cpp:412 mainwidget.cpp:508
|
||||||
|
#: mainwidget.cpp:676 rc.cpp:27
|
||||||
|
msgid "Gimp path"
|
||||||
|
msgstr "Gimp-Pfad"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:126 mainwidget.cpp:212
|
||||||
|
msgid "*.*|Gimp path"
|
||||||
|
msgstr "*.*|Gimp-Pfad"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:127 mainwidget.cpp:213 mainwidget.cpp:511 mainwidget.cpp:680
|
||||||
|
#: rc.cpp:28
|
||||||
|
msgid "Xfig"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:128 mainwidget.cpp:214
|
||||||
|
msgid "*.fig|XFig drawing"
|
||||||
|
msgstr "*.fig|XFig-Zeichnung"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:130 mainwidget.cpp:216
|
||||||
|
msgid "*.pgm|PGM image"
|
||||||
|
msgstr "*.pgm|Portable Greymap"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:135 mainwidget.cpp:154 mainwidget.cpp:221 mainwidget.cpp:240
|
||||||
|
msgid "Select the file to save to"
|
||||||
|
msgstr "Wählen Sie die zu speichernde Datei"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:142 mainwidget.cpp:228
|
||||||
|
msgid "Overwrite %1 ?"
|
||||||
|
msgstr "Überschreibe %1 ?"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:164 mainwidget.cpp:185 mainwidget.cpp:250
|
||||||
|
msgid "Error while saving file"
|
||||||
|
msgstr "Fehler beim Speichern der Datei"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:167 mainwidget.cpp:188 mainwidget.cpp:253
|
||||||
|
msgid "Saving %1..."
|
||||||
|
msgstr "Speichere %1..."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:174 mainwidget.cpp:195 mainwidget.cpp:260
|
||||||
|
msgid "File %1 saved."
|
||||||
|
msgstr "Datei %1 gespeichert."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:177 mainwidget.cpp:263
|
||||||
|
msgid "File not saved"
|
||||||
|
msgstr "Datei nicht gespeichert"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:273
|
||||||
|
msgid "Warning: could not remove temporary file."
|
||||||
|
msgstr "Warnung: Temporäre Datei konnte nicht gelöscht werden."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:306
|
||||||
|
msgid "Could not create temporary filename"
|
||||||
|
msgstr "Konnte temporäre Datei nicht erstellen"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:318
|
||||||
|
msgid "Image pasted."
|
||||||
|
msgstr "Bild in die Zwischenablage kopiert."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:348
|
||||||
|
msgid "Selected URL is not a valid image."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:356
|
||||||
|
msgid "Could not create temporary filename."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:368
|
||||||
|
msgid "File %1 loaded."
|
||||||
|
msgstr "Datei %1 geladen."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:413
|
||||||
|
msgid "Xfig path"
|
||||||
|
msgstr "Xfig"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:812
|
||||||
|
msgid "You must open an image first."
|
||||||
|
msgstr "Sie müssen zuerst ein Bild öffnen."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:831
|
||||||
|
msgid ""
|
||||||
|
"The process couldn't be started\n"
|
||||||
|
"The process executed was:\n"
|
||||||
|
msgstr "Folgender Prozess konnte nicht gestartet werden:\n"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:838
|
||||||
|
msgid "Tracing..."
|
||||||
|
msgstr "Vektorisierung..."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:839
|
||||||
|
msgid "Abort"
|
||||||
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:849 rc.cpp:224
|
||||||
|
msgid "&Trace"
|
||||||
|
msgstr "&Vektorisieren"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:852
|
||||||
|
msgid "Aborted"
|
||||||
|
msgstr "Abgebrochen"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:858
|
||||||
|
msgid "Finished with errors"
|
||||||
|
msgstr "Mit Fehlern beendet"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:859
|
||||||
|
msgid "Error during the process:"
|
||||||
|
msgstr "Fehler während des Prozesses:"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:860
|
||||||
|
msgid "Standard output:\n"
|
||||||
|
msgstr "Standardausgabe:\n"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:867
|
||||||
|
msgid "Standard error:\n"
|
||||||
|
msgstr "Standardfehler:\n"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:875
|
||||||
|
msgid "Executed:\n"
|
||||||
|
msgstr "Ausgeführt:\n"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:884
|
||||||
|
msgid "Loading preview image..."
|
||||||
|
msgstr "Lade Vorschaubild..."
|
||||||
|
|
||||||
|
#: mainwidget.cpp:895
|
||||||
|
msgid "Output format not recognized"
|
||||||
|
msgstr "Ausgabeformat nicht erkannt"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:896
|
||||||
|
msgid ""
|
||||||
|
"Sorry, but the image format which you are working with\n"
|
||||||
|
"is not recognized by KDE.\n"
|
||||||
|
"The image will be correctly saved if you want to,\n"
|
||||||
|
"but to see a preview try working with another image format (EPS and PGM "
|
||||||
|
"showld work well)\n"
|
||||||
|
"and only when you are satisfied with the result revert to the format\n"
|
||||||
|
"of your choiche and save the result."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:913
|
||||||
|
msgid "Image traced"
|
||||||
|
msgstr "Bild vektorisiert"
|
||||||
|
|
||||||
|
#: mainwidget.cpp:1003 rc.cpp:26
|
||||||
|
msgid "pgm"
|
||||||
|
msgstr "PGM"
|
||||||
|
|
||||||
|
#: potracegui.cpp:54
|
||||||
|
msgid "Welcome to PotraceGui 1.3"
|
||||||
|
msgstr "Willkommen zu PotraceGui 1.2"
|
||||||
|
|
||||||
|
#: potracegui.cpp:143
|
||||||
|
msgid "Save changes?"
|
||||||
|
msgstr "Änderungen speichern?"
|
||||||
|
|
||||||
|
#: rc.cpp:1
|
||||||
|
msgid "C&ustom"
|
||||||
|
msgstr "&Benutzerdefiniert"
|
||||||
|
|
||||||
|
#: rc.cpp:3
|
||||||
|
msgid "&Original image"
|
||||||
|
msgstr "&Pixelbild"
|
||||||
|
|
||||||
|
#: rc.cpp:4
|
||||||
|
msgid "&Input-Output"
|
||||||
|
msgstr "&Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:5
|
||||||
|
msgid "Input"
|
||||||
|
msgstr "Eingabe"
|
||||||
|
|
||||||
|
#: rc.cpp:6
|
||||||
|
msgid "Black level:"
|
||||||
|
msgstr "Schwellenwert:"
|
||||||
|
|
||||||
|
#: rc.cpp:7 rc.cpp:8
|
||||||
|
msgid "Pixel threshold for B&W conversion of the image"
|
||||||
|
msgstr "Schwellenwert für die Umwandlung in ein &Schwarz-Weiß-Bild"
|
||||||
|
|
||||||
|
#: rc.cpp:9
|
||||||
|
msgid "&Invert"
|
||||||
|
msgstr "&Invertieren"
|
||||||
|
|
||||||
|
#: rc.cpp:10
|
||||||
|
msgid "Alt+I"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:11
|
||||||
|
msgid "Inverts the image before processing"
|
||||||
|
msgstr "Invertiert das Bild vor der Vektorisierung"
|
||||||
|
|
||||||
|
#: rc.cpp:12
|
||||||
|
msgid "Color"
|
||||||
|
msgstr "Farbe"
|
||||||
|
|
||||||
|
#: rc.cpp:14 rc.cpp:16
|
||||||
|
msgid "Output foreground color"
|
||||||
|
msgstr "Vordergrundfarbe der Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:15
|
||||||
|
msgid "Foreground color:"
|
||||||
|
msgstr "Vordergrundfarbe:"
|
||||||
|
|
||||||
|
#: rc.cpp:17
|
||||||
|
msgid "Opaque:"
|
||||||
|
msgstr "Hintergrundfarbe:"
|
||||||
|
|
||||||
|
#: rc.cpp:18
|
||||||
|
msgid "Fill in the white parts of the image opaquely"
|
||||||
|
msgstr "Füllung in weiß von Bild"
|
||||||
|
|
||||||
|
#: rc.cpp:20
|
||||||
|
msgid "Fill color"
|
||||||
|
msgstr "Füllfarbe"
|
||||||
|
|
||||||
|
#: rc.cpp:21
|
||||||
|
msgid "Output"
|
||||||
|
msgstr "Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:22
|
||||||
|
msgid "Format:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:29
|
||||||
|
msgid "Output format"
|
||||||
|
msgstr "Ausgabeformat"
|
||||||
|
|
||||||
|
#: rc.cpp:30
|
||||||
|
msgid "PS-EPS output"
|
||||||
|
msgstr "PS-EPS-Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:31
|
||||||
|
msgid "Page size:"
|
||||||
|
msgstr "Seitengröße:"
|
||||||
|
|
||||||
|
#: rc.cpp:32 rc.cpp:45
|
||||||
|
msgid "Output page size"
|
||||||
|
msgstr "Ausgabe-Seitengröße"
|
||||||
|
|
||||||
|
#: rc.cpp:33
|
||||||
|
msgid "a4"
|
||||||
|
msgstr "A4"
|
||||||
|
|
||||||
|
#: rc.cpp:34
|
||||||
|
msgid "a3"
|
||||||
|
msgstr "A3"
|
||||||
|
|
||||||
|
#: rc.cpp:35
|
||||||
|
msgid "a5"
|
||||||
|
msgstr "A5"
|
||||||
|
|
||||||
|
#: rc.cpp:36
|
||||||
|
msgid "b5"
|
||||||
|
msgstr "B5"
|
||||||
|
|
||||||
|
#: rc.cpp:37
|
||||||
|
msgid "letter"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:38
|
||||||
|
msgid "legal"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:39
|
||||||
|
msgid "tabloid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:40
|
||||||
|
msgid "statement"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:41
|
||||||
|
msgid "executive"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:42
|
||||||
|
msgid "folio"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:43
|
||||||
|
msgid "quarto"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:44
|
||||||
|
msgid "10x14"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:46
|
||||||
|
msgid "Optimized numerical code"
|
||||||
|
msgstr "kompakte Vektordarstellung"
|
||||||
|
|
||||||
|
#: rc.cpp:47
|
||||||
|
msgid ""
|
||||||
|
"Use a compact numerical format to represent Bezier curves in\n"
|
||||||
|
"PostScript"
|
||||||
|
msgstr ""
|
||||||
|
"Benutze ein kompaktes Format\n"
|
||||||
|
"für die Bezierkurven in PostScript"
|
||||||
|
|
||||||
|
#: rc.cpp:48
|
||||||
|
msgid "Compression level"
|
||||||
|
msgstr "Komprimierungsgrad"
|
||||||
|
|
||||||
|
#: rc.cpp:49
|
||||||
|
msgid "None"
|
||||||
|
msgstr "Keine"
|
||||||
|
|
||||||
|
#: rc.cpp:50
|
||||||
|
msgid "No compression"
|
||||||
|
msgstr "Keine Komprimierung"
|
||||||
|
|
||||||
|
#: rc.cpp:51
|
||||||
|
msgid "Level 2"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:52
|
||||||
|
msgid "Standard compression (needs LZW-enabled compress)"
|
||||||
|
msgstr "Standardkomprimierung (benötigt compress mit LZW-Unterstützung)"
|
||||||
|
|
||||||
|
#: rc.cpp:53
|
||||||
|
msgid "Level 3"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:54
|
||||||
|
msgid "Maximum compression"
|
||||||
|
msgstr "Maximale Komprimierung"
|
||||||
|
|
||||||
|
#: rc.cpp:56
|
||||||
|
msgid "Group"
|
||||||
|
msgstr "Pfade gruppieren"
|
||||||
|
|
||||||
|
#: rc.cpp:57
|
||||||
|
msgid "Try to group related paths together in the SVG output"
|
||||||
|
msgstr ""
|
||||||
|
"Versuche, zusammengehörige Pfade\n"
|
||||||
|
"in der SVG-Ausgabe zu gruppieren"
|
||||||
|
|
||||||
|
#: rc.cpp:58
|
||||||
|
msgid "PGM"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:59
|
||||||
|
msgid "Antialias gamma:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:60 rc.cpp:61
|
||||||
|
msgid "Gamma value for anti-aliasing"
|
||||||
|
msgstr "für"
|
||||||
|
|
||||||
|
#: rc.cpp:62
|
||||||
|
msgid "Scale"
|
||||||
|
msgstr "Skalieren"
|
||||||
|
|
||||||
|
#: rc.cpp:63 rc.cpp:124
|
||||||
|
msgid "All"
|
||||||
|
msgstr "Alle"
|
||||||
|
|
||||||
|
#: rc.cpp:64
|
||||||
|
msgid "All dimesions at once"
|
||||||
|
msgstr "Beide Dimensionen gleichzeitig"
|
||||||
|
|
||||||
|
#: rc.cpp:65 rc.cpp:67 rc.cpp:68 rc.cpp:70 rc.cpp:73
|
||||||
|
msgid "Scale factor (>1 enlarges, <1 shrinks)"
|
||||||
|
msgstr "Vergrößerungsfaktor (>1 vergrößert, <1 verkleinert)"
|
||||||
|
|
||||||
|
#: rc.cpp:66 rc.cpp:127
|
||||||
|
msgid "Y"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:69 rc.cpp:126
|
||||||
|
msgid "X"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:71 rc.cpp:128
|
||||||
|
msgid "Each"
|
||||||
|
msgstr "einzeln"
|
||||||
|
|
||||||
|
#: rc.cpp:72 rc.cpp:129
|
||||||
|
msgid "Each dimension separately"
|
||||||
|
msgstr "Jede Dimension einzeln"
|
||||||
|
|
||||||
|
#: rc.cpp:74
|
||||||
|
msgid "Sorry, no options for this format."
|
||||||
|
msgstr "Keine Einstellungen verfügbar."
|
||||||
|
|
||||||
|
#: rc.cpp:75
|
||||||
|
msgid "&Algorithm"
|
||||||
|
msgstr "&Algorithmus"
|
||||||
|
|
||||||
|
#: rc.cpp:76
|
||||||
|
msgid "Curve optimization"
|
||||||
|
msgstr "Kurvenoptimierung"
|
||||||
|
|
||||||
|
#: rc.cpp:77
|
||||||
|
msgid "Join adiacent bezier curves (off=larger file)"
|
||||||
|
msgstr "Fasse benachbarte Bezierkurven zusammen (aus=größere Datei)"
|
||||||
|
|
||||||
|
#: rc.cpp:78 rc.cpp:97
|
||||||
|
msgid "Curve optimization tolerance (default = 0.2)"
|
||||||
|
msgstr "Toleranz für Kurvenoptimierung (Standard = 0,2)"
|
||||||
|
|
||||||
|
#: rc.cpp:79 rc.cpp:98
|
||||||
|
msgid ""
|
||||||
|
"Set the curve optimization tolerance. The default value is 0.2. Larger "
|
||||||
|
"values allow more consecutive Bezier curve segments to be joined together in "
|
||||||
|
"a single segment, at the expense of accuracy."
|
||||||
|
msgstr "Toleranz für Kurvenoptimierung. Der Standardwert ist 0,2. Bei höhere Werte werden mehr benachbarte Bezierkurven zusammengefasst - auf Kosten der Genauigkeit."
|
||||||
|
|
||||||
|
#: rc.cpp:80 rc.cpp:100
|
||||||
|
msgid "Corner Threshold parameter (<1 hard corners, >1 soft corners)"
|
||||||
|
msgstr "Ecken-Schwellwert (<1 spitze Ecken, >1 runde Ecken)"
|
||||||
|
|
||||||
|
#: rc.cpp:81 rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"Set the corner threshold parameter. The default value is 1. The smaller this "
|
||||||
|
"value, the more sharp corners will be produced. If this parameter is "
|
||||||
|
"negative, then no smoothing will be performed and the output is a polygon. "
|
||||||
|
"The largest useful value is 4/3 or 1.334, which suppresses all corners and "
|
||||||
|
"leads to completely smooth output."
|
||||||
|
msgstr "Setze den Schwellenwert für Ecken. Der Standardwert ist 1. Je kleiner dieser Wert ist, desto schärfere Ecken werden erstellt. Falls der Wert negativ ist, gibt es keinerlei Rundungen und die Ausgabe ist ein Vieleck. Der Maximalwert ist 1,34: Dabei werden alle Ecken unterdrückt und die Ausgabe ist völlig abgerundet."
|
||||||
|
|
||||||
|
#: rc.cpp:82 rc.cpp:103
|
||||||
|
msgid "Suppress speckles of up to this many pixels"
|
||||||
|
msgstr "Unterdrücke Flecken bis zu dieser Anzahl Pixel"
|
||||||
|
|
||||||
|
#: rc.cpp:83
|
||||||
|
msgid "black"
|
||||||
|
msgstr "schwarz"
|
||||||
|
|
||||||
|
#: rc.cpp:84
|
||||||
|
msgid "white"
|
||||||
|
msgstr "weiß"
|
||||||
|
|
||||||
|
#: rc.cpp:85
|
||||||
|
msgid "right"
|
||||||
|
msgstr "rechts"
|
||||||
|
|
||||||
|
#: rc.cpp:86
|
||||||
|
msgid "left"
|
||||||
|
msgstr "links"
|
||||||
|
|
||||||
|
#: rc.cpp:87
|
||||||
|
msgid "minority"
|
||||||
|
msgstr "Minderheit"
|
||||||
|
|
||||||
|
#: rc.cpp:88
|
||||||
|
msgid "majority"
|
||||||
|
msgstr "Mehrheit"
|
||||||
|
|
||||||
|
#: rc.cpp:89
|
||||||
|
msgid "random"
|
||||||
|
msgstr "Zufall"
|
||||||
|
|
||||||
|
#: rc.cpp:90 rc.cpp:105
|
||||||
|
msgid ""
|
||||||
|
"How to resolve ambiguities in path\n"
|
||||||
|
"decomposition"
|
||||||
|
msgstr ""
|
||||||
|
"Wie Uneindeutigkeiten beim Erkennen\n"
|
||||||
|
"des Kurvenverlaufs gehandhabt werden"
|
||||||
|
|
||||||
|
#: rc.cpp:91
|
||||||
|
msgid "To how many points/pixel the output is rounded"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:92 rc.cpp:95
|
||||||
|
msgid ""
|
||||||
|
"Set output quantization. Coordinates in the output are rounded to 1/value "
|
||||||
|
"pixels. The default value of 10 usually gives good results. In the case of "
|
||||||
|
"the gimppath backend, this option is used to set the desired magnification. "
|
||||||
|
"This option has no effect for the XFig backend, which always rasterizes to "
|
||||||
|
"1/1200 inch."
|
||||||
|
msgstr ""
|
||||||
|
"Legt die Genauigkeit der Ausgabe fest. Koordinaten werden bei der Ausgabe auf 1/x Pixel gerundet. Der Standardwert 10 führt meist zu guten Ergebnissen.\n"
|
||||||
|
"Bei Verwendung des Gimp-Backends bestimmt dieser Wert die gewünschte Vergrößerung.\n"
|
||||||
|
"Der Wert hat keine Bedeutung für das XFig-Backend, welches immer mit der Genauigkeit von 1/1200 Zoll arbeitet."
|
||||||
|
|
||||||
|
#: rc.cpp:93
|
||||||
|
msgid "Output quantization:"
|
||||||
|
msgstr "Genauigkeit der Ausgabe:"
|
||||||
|
|
||||||
|
#: rc.cpp:94
|
||||||
|
msgid "How exactly the output is rounded"
|
||||||
|
msgstr "Wie genau wird bei der Ausgabe gerundet"
|
||||||
|
|
||||||
|
#: rc.cpp:96
|
||||||
|
msgid "Optimization tolerance:"
|
||||||
|
msgstr "Toleranz für Optimierung:"
|
||||||
|
|
||||||
|
#: rc.cpp:99
|
||||||
|
msgid "Corner Threshold:"
|
||||||
|
msgstr "Schwellenwert für Ecken:"
|
||||||
|
|
||||||
|
#: rc.cpp:102
|
||||||
|
msgid "Despeckle:"
|
||||||
|
msgstr "Flecken entfernen:"
|
||||||
|
|
||||||
|
#: rc.cpp:104
|
||||||
|
msgid "Policy:"
|
||||||
|
msgstr "Verhalten:"
|
||||||
|
|
||||||
|
#: rc.cpp:106
|
||||||
|
msgid "&Scaling and transformations"
|
||||||
|
msgstr "&Skalieren"
|
||||||
|
|
||||||
|
#: rc.cpp:107
|
||||||
|
msgid "Transformation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:108 rc.cpp:116
|
||||||
|
msgid "Rotate output by x degrees"
|
||||||
|
msgstr "Drehe Ausgabe um x Grad"
|
||||||
|
|
||||||
|
#: rc.cpp:109 rc.cpp:118
|
||||||
|
msgid ""
|
||||||
|
"Aspect ratio (<1 stretched in the x direction, >1 stretched in the y "
|
||||||
|
"direction)"
|
||||||
|
msgstr "Seitenverhältnis (<1 streckt in x-Richtung, >1 streckt in y-Richtung)"
|
||||||
|
|
||||||
|
#: rc.cpp:110 rc.cpp:120
|
||||||
|
msgid "Output image height"
|
||||||
|
msgstr "Höhe des Ausgabebildes"
|
||||||
|
|
||||||
|
#: rc.cpp:111 rc.cpp:122
|
||||||
|
msgid "Output image width"
|
||||||
|
msgstr "Breite der Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:112 rc.cpp:113 rc.cpp:135 rc.cpp:139 rc.cpp:140 rc.cpp:141
|
||||||
|
msgid "cm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:114
|
||||||
|
msgid "degree"
|
||||||
|
msgstr "°"
|
||||||
|
|
||||||
|
#: rc.cpp:115
|
||||||
|
msgid "Rotation:"
|
||||||
|
msgstr "Drehung:"
|
||||||
|
|
||||||
|
#: rc.cpp:117
|
||||||
|
msgid "Stretch:"
|
||||||
|
msgstr "Strecken:"
|
||||||
|
|
||||||
|
#: rc.cpp:119
|
||||||
|
msgid "Height:"
|
||||||
|
msgstr "Höhe:"
|
||||||
|
|
||||||
|
#: rc.cpp:121
|
||||||
|
msgid "Width:"
|
||||||
|
msgstr "Breite:"
|
||||||
|
|
||||||
|
#: rc.cpp:123
|
||||||
|
msgid "Resolution (dpi)"
|
||||||
|
msgstr "dpi"
|
||||||
|
|
||||||
|
#: rc.cpp:125
|
||||||
|
msgid "All dimensions"
|
||||||
|
msgstr "Beide Dimensionen"
|
||||||
|
|
||||||
|
#: rc.cpp:130 rc.cpp:131 rc.cpp:132
|
||||||
|
msgid ""
|
||||||
|
"set the resolution (in dpi). One inch in the output image corresponds to "
|
||||||
|
"this many\n"
|
||||||
|
"pixels in the input"
|
||||||
|
msgstr "<p>Legt die Auflösung in dpi fest. Ein Zoll (=2,54 cm) im Ausgabebild entspricht so vielen Pixeln des Eingabebilds.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:133
|
||||||
|
msgid "&Margins"
|
||||||
|
msgstr "&Ränder"
|
||||||
|
|
||||||
|
#: rc.cpp:134
|
||||||
|
msgid "Margins"
|
||||||
|
msgstr "Ränder"
|
||||||
|
|
||||||
|
#: rc.cpp:136 rc.cpp:137 rc.cpp:138 rc.cpp:142
|
||||||
|
msgid "Set output margins"
|
||||||
|
msgstr "Lege Ränder fest"
|
||||||
|
|
||||||
|
#: rc.cpp:143
|
||||||
|
msgid "Top:"
|
||||||
|
msgstr "oben:"
|
||||||
|
|
||||||
|
#: rc.cpp:144
|
||||||
|
msgid "Right:"
|
||||||
|
msgstr "rechts:"
|
||||||
|
|
||||||
|
#: rc.cpp:145
|
||||||
|
msgid "Left:"
|
||||||
|
msgstr "links:"
|
||||||
|
|
||||||
|
#: rc.cpp:146
|
||||||
|
msgid "Bottom:"
|
||||||
|
msgstr "unten:"
|
||||||
|
|
||||||
|
#: rc.cpp:147
|
||||||
|
msgid "syncronize"
|
||||||
|
msgstr "gleichzeitig ändern"
|
||||||
|
|
||||||
|
#: rc.cpp:149
|
||||||
|
msgid "&Input - output"
|
||||||
|
msgstr "&Eingabe und Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:150
|
||||||
|
msgid "&Output format"
|
||||||
|
msgstr "&Ausgabe"
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
|
msgid "Select wanted output format"
|
||||||
|
msgstr "Wähle Ausgabe-Format"
|
||||||
|
|
||||||
|
#: rc.cpp:152
|
||||||
|
msgid "Input image"
|
||||||
|
msgstr "Eingabe-Bild"
|
||||||
|
|
||||||
|
#: rc.cpp:153
|
||||||
|
msgid "&DPI:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:154 rc.cpp:227
|
||||||
|
msgid "Alt+D"
|
||||||
|
msgstr "Alt"
|
||||||
|
|
||||||
|
#: rc.cpp:155 rc.cpp:159
|
||||||
|
msgid "<p>Dot per inch of input image</p><p>(affects scaling in mif output)</p>"
|
||||||
|
msgstr "<p>Auflösung des Eingabe-Bildes</p><p>(steuert die Größe der mif-Ausgabe)</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:156
|
||||||
|
msgid "&reduce color count to:"
|
||||||
|
msgstr "&reduziere Farbanzahl auf:"
|
||||||
|
|
||||||
|
#: rc.cpp:157 rc.cpp:183
|
||||||
|
msgid "Alt+R"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:158 rc.cpp:160
|
||||||
|
msgid "<p>Reduce input image to this number of colors (range: 2 - 256)</p>"
|
||||||
|
msgstr "<p>Reduziere die Farbanzahl auf diesen Wert (gültig: 2 - 256)</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:161
|
||||||
|
msgid "Transparent color"
|
||||||
|
msgstr "Transparente Farbe"
|
||||||
|
|
||||||
|
#: rc.cpp:162
|
||||||
|
msgid "&Use:"
|
||||||
|
msgstr "&Verwenden:"
|
||||||
|
|
||||||
|
#: rc.cpp:163
|
||||||
|
msgid "Alt+U"
|
||||||
|
msgstr "Alt+V"
|
||||||
|
|
||||||
|
#: rc.cpp:164
|
||||||
|
msgid "<p>Toggle transparent color</p>"
|
||||||
|
msgstr "<p>Ändere transparente Farbe</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:166
|
||||||
|
msgid ""
|
||||||
|
"<p>Ignore this color in input file</p><p>(The color will be rendered as "
|
||||||
|
"transparent in the output image)</p>"
|
||||||
|
msgstr ""
|
||||||
|
"<p>Ignoriere diese Farbe im Pixelbild</p> "
|
||||||
|
"<p>(Diese Farbe wird im Vektorbild transparent erscheinen)</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:167
|
||||||
|
msgid "Log"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:168
|
||||||
|
msgid "Create &logfile"
|
||||||
|
msgstr "Erstelle &Log-Datei"
|
||||||
|
|
||||||
|
#: rc.cpp:169
|
||||||
|
msgid "Alt+L"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:170
|
||||||
|
msgid "Not working at the moment"
|
||||||
|
msgstr "noch nicht verfügbar"
|
||||||
|
|
||||||
|
#: rc.cpp:171
|
||||||
|
msgid "&Corners and curves"
|
||||||
|
msgstr "E&cken"
|
||||||
|
|
||||||
|
#: rc.cpp:172
|
||||||
|
msgid "Corners"
|
||||||
|
msgstr "Ecken"
|
||||||
|
|
||||||
|
#: rc.cpp:173
|
||||||
|
msgid "Thre&shold:"
|
||||||
|
msgstr "&Grenzwert:"
|
||||||
|
|
||||||
|
#: rc.cpp:174 rc.cpp:181
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider any pixel which forms an angle with its predecessor(s) and "
|
||||||
|
"successor(s) that is smaller than the specified angle (in degrees) as a "
|
||||||
|
"corner.</p>"
|
||||||
|
msgstr "<p>Interpretiere jeden Punkt, der mit seinen Vorgängern und Nachfolgern einen kleineren Winkel als diesen bildet, als Ecke.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:175
|
||||||
|
msgid "&Always threshold:"
|
||||||
|
msgstr "&Absoluter Grenzwert:"
|
||||||
|
|
||||||
|
#: rc.cpp:176 rc.cpp:180
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider any angle at a pixel which falls below the specified angle (in "
|
||||||
|
"degrees) as a corner, even if it is bordered by other corner pixels.</p>"
|
||||||
|
msgstr "<p>Interpretiere jeden Punkt, der mit seinen Vorgängern und Nachfolgern einen kleineren Winkel als diesen bildet, als Ecke - sogar dann, wenn die ihn umgebenden Punkte ebenfalls als Ecken interpretiert werden.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:177 rc.cpp:208
|
||||||
|
msgid "&Surround:"
|
||||||
|
msgstr "&Umgebung:"
|
||||||
|
|
||||||
|
#: rc.cpp:178 rc.cpp:179
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider the specified number of pixels on either side of a point when "
|
||||||
|
"determining if that point is a corner.</p>"
|
||||||
|
msgstr "<p>Verwende zur Bestimmung, ob ein Punkt eine Ecke ist oder nicht, die angegebene Anzahl Pixel auf beiden Seiten.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:182
|
||||||
|
msgid "&Remove adjacent corners"
|
||||||
|
msgstr "&Entferne benachbarte Ecken"
|
||||||
|
|
||||||
|
#: rc.cpp:185
|
||||||
|
msgid "Curves"
|
||||||
|
msgstr "Kurven"
|
||||||
|
|
||||||
|
#: rc.cpp:186 rc.cpp:190
|
||||||
|
msgid ""
|
||||||
|
"<p>When a spline is closer to a straight line than the specified real number "
|
||||||
|
"weighted by the square of the curve length, maintain it as a straight line, "
|
||||||
|
"even if it is a list with curves.</p>"
|
||||||
|
msgstr ""
|
||||||
|
"<p>Wenn eine Kurve sich überall näher an einer imaginären geraden Linie befindet als der angegebene Faktor mal dem Quadrat der Kurvenlänge, dann beschreibe sie als eine Gerade.</p> "
|
||||||
|
"<p>Dies gilt auch für mehrere aneinandergereihte Kurven.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:187 rc.cpp:192
|
||||||
|
msgid "<p>Smooth the curve the specified number of times prior to fitting</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:188 rc.cpp:197
|
||||||
|
msgid ""
|
||||||
|
"<p>If a spline does not deviate from the straight line defined by its "
|
||||||
|
"endpoints by more than the specified number of pixels, then treat it as a "
|
||||||
|
"straight line.</p>"
|
||||||
|
msgstr "<p>Falls eine Kurve um nicht mehr als die angegebene Anzahl von Pixeln von der gedachten Geraden abweicht, die durch die Endpunkte der Kurve definiert ist, dann betrachte sie als Gerade.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:189
|
||||||
|
msgid "Re&version threshold:"
|
||||||
|
msgstr "&Kurven-Grenzwert:"
|
||||||
|
|
||||||
|
#: rc.cpp:191
|
||||||
|
msgid "&Filter iterations:"
|
||||||
|
msgstr "&Filterdurchläufe:"
|
||||||
|
|
||||||
|
#: rc.cpp:193 rc.cpp:195
|
||||||
|
msgid ""
|
||||||
|
"<p>Subdivide fitted curves that are offset by a number of pixels exceeding "
|
||||||
|
"the specified real number</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:194
|
||||||
|
msgid "&Error threshold:"
|
||||||
|
msgstr "&Fehler-Grenzwert:"
|
||||||
|
|
||||||
|
#: rc.cpp:196
|
||||||
|
msgid "&Line threshold:"
|
||||||
|
msgstr "&Linien-Grenzwert:"
|
||||||
|
|
||||||
|
#: rc.cpp:198
|
||||||
|
msgid "&Preserve width"
|
||||||
|
msgstr "&Breite beibehalten"
|
||||||
|
|
||||||
|
#: rc.cpp:199 rc.cpp:219
|
||||||
|
msgid "Alt+P"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:200
|
||||||
|
msgid "<p>Preserve line width prior to thinning</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:201
|
||||||
|
msgid "&Various"
|
||||||
|
msgstr "&Verschiedenes"
|
||||||
|
|
||||||
|
#: rc.cpp:202
|
||||||
|
msgid "Object recognition"
|
||||||
|
msgstr "Objekterkennung"
|
||||||
|
|
||||||
|
#: rc.cpp:203
|
||||||
|
msgid "&Outline"
|
||||||
|
msgstr "als &Umriss"
|
||||||
|
|
||||||
|
#: rc.cpp:204
|
||||||
|
msgid "Alt+O"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:205
|
||||||
|
msgid "C&enterline"
|
||||||
|
msgstr "als &Linie"
|
||||||
|
|
||||||
|
#: rc.cpp:206
|
||||||
|
msgid "Alt+E"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:207
|
||||||
|
msgid "Tangent"
|
||||||
|
msgstr "Tangente"
|
||||||
|
|
||||||
|
#: rc.cpp:209 rc.cpp:210
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider the specified number of points to either side of a point when "
|
||||||
|
"computing the tangent at that point</p>"
|
||||||
|
msgstr "<p>Betrachte die angegebene Anzahl Pixel auf jeder Seite eines Punktes bei der Tangentenberechnung in diesem Punkt.</p>"
|
||||||
|
|
||||||
|
#: rc.cpp:211
|
||||||
|
msgid "Despeckle"
|
||||||
|
msgstr "Flecken entfernen"
|
||||||
|
|
||||||
|
#: rc.cpp:212 rc.cpp:217
|
||||||
|
msgid ""
|
||||||
|
"<p>Employ the specified real number as the value for despeckle tightness "
|
||||||
|
"(range: 0-8)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:213 rc.cpp:215
|
||||||
|
msgid "<p>Employ the specified integer as the value for despeckling(range: 1-20)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:214
|
||||||
|
msgid "&Level:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:216
|
||||||
|
msgid "T&ightness:"
|
||||||
|
msgstr "D&ichte:"
|
||||||
|
|
||||||
|
#: rc.cpp:218
|
||||||
|
msgid "des&peckle"
|
||||||
|
msgstr "&Flecken entfernen"
|
||||||
|
|
||||||
|
#: rc.cpp:221
|
||||||
|
msgid "Backend:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:222
|
||||||
|
msgid "potrace"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:223
|
||||||
|
msgid "autotrace"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:225
|
||||||
|
msgid "Alt+T"
|
||||||
|
msgstr "Alt T"
|
||||||
|
|
||||||
|
#: rc.cpp:226
|
||||||
|
msgid "&Default options"
|
||||||
|
msgstr "&Standardeinstellungen"
|
||||||
|
|
||||||
|
#: rc.cpp:228
|
||||||
|
msgid "Automatic Preview"
|
||||||
|
msgstr "Automatische Vorschau"
|
||||||
|
|
||||||
|
#: rc.cpp:230
|
||||||
|
msgid "Preserve options"
|
||||||
|
msgstr "Einstellungen speichern"
|
||||||
|
|
||||||
|
#: _translatorinfo.cpp:1
|
||||||
|
msgid ""
|
||||||
|
"_: NAME OF TRANSLATORS\n"
|
||||||
|
"Your names"
|
||||||
|
msgstr "Tim Fechtner"
|
||||||
|
|
||||||
|
#: _translatorinfo.cpp:3
|
||||||
|
msgid ""
|
||||||
|
"_: EMAIL OF TRANSLATORS\n"
|
||||||
|
"Your emails"
|
||||||
|
msgstr "Tim.Fechtner@gmx.de"
|
||||||
|
|
@ -0,0 +1,948 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2005-01-18 19:45+0100\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: main.cpp:29
|
||||||
|
msgid "An interface for potrace"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.cpp:33
|
||||||
|
msgid "Document to open"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.cpp:39
|
||||||
|
msgid "potracegui"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:59
|
||||||
|
msgid "Original image"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:60
|
||||||
|
msgid "Preview"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:84
|
||||||
|
msgid "Checking autotrace formats."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:89
|
||||||
|
msgid "Done."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:92
|
||||||
|
msgid "Autotrace not found."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:107
|
||||||
|
msgid "Select an image"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:119 mainwidget.cpp:205 mainwidget.cpp:402 mainwidget.cpp:492
|
||||||
|
#: mainwidget.cpp:626 mainwidget.cpp:1005 rc.cpp:23
|
||||||
|
msgid "eps"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:120 mainwidget.cpp:206
|
||||||
|
msgid "*.eps|Encapsulated postscript"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:121 mainwidget.cpp:207 mainwidget.cpp:402 mainwidget.cpp:492
|
||||||
|
#: mainwidget.cpp:645 mainwidget.cpp:1005 rc.cpp:24
|
||||||
|
msgid "postscript"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:122 mainwidget.cpp:208
|
||||||
|
msgid "*.ps|Postscript"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:123 mainwidget.cpp:209 mainwidget.cpp:410 mainwidget.cpp:504
|
||||||
|
#: mainwidget.cpp:664 mainwidget.cpp:1001 rc.cpp:25 rc.cpp:55
|
||||||
|
msgid "SVG"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:124 mainwidget.cpp:210
|
||||||
|
msgid "*.svg|SVG images"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:125 mainwidget.cpp:211 mainwidget.cpp:412 mainwidget.cpp:508
|
||||||
|
#: mainwidget.cpp:676 rc.cpp:27
|
||||||
|
msgid "Gimp path"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:126 mainwidget.cpp:212
|
||||||
|
msgid "*.*|Gimp path"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:127 mainwidget.cpp:213 mainwidget.cpp:511 mainwidget.cpp:680
|
||||||
|
#: rc.cpp:28
|
||||||
|
msgid "Xfig"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:128 mainwidget.cpp:214
|
||||||
|
msgid "*.fig|XFig drawing"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:130 mainwidget.cpp:216
|
||||||
|
msgid "*.pgm|PGM image"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:135 mainwidget.cpp:154 mainwidget.cpp:221 mainwidget.cpp:240
|
||||||
|
msgid "Select the file to save to"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:142 mainwidget.cpp:228
|
||||||
|
msgid "Overwrite %1 ?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:164 mainwidget.cpp:185 mainwidget.cpp:250
|
||||||
|
msgid "Error while saving file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:167 mainwidget.cpp:188 mainwidget.cpp:253
|
||||||
|
msgid "Saving %1..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:174 mainwidget.cpp:195 mainwidget.cpp:260
|
||||||
|
msgid "File %1 saved."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:177 mainwidget.cpp:263
|
||||||
|
msgid "File not saved"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:273
|
||||||
|
msgid "Warning: could not remove temporary file."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:306
|
||||||
|
msgid "Could not create temporary filename"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:318
|
||||||
|
msgid "Image pasted."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:348
|
||||||
|
msgid "Selected URL is not a valid image."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:356
|
||||||
|
msgid "Could not create temporary filename."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:368
|
||||||
|
msgid "File %1 loaded."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:413
|
||||||
|
msgid "Xfig path"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:812
|
||||||
|
msgid "You must open an image first."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:831
|
||||||
|
msgid ""
|
||||||
|
"The process couldn't be started\n"
|
||||||
|
"The process executed was:\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:838
|
||||||
|
msgid "Tracing..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:839
|
||||||
|
msgid "Abort"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:849 rc.cpp:224
|
||||||
|
msgid "&Trace"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:852
|
||||||
|
msgid "Aborted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:858
|
||||||
|
msgid "Finished with errors"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:859
|
||||||
|
msgid "Error during the process:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:860
|
||||||
|
msgid "Standard output:\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:867
|
||||||
|
msgid "Standard error:\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:875
|
||||||
|
msgid "Executed:\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:884
|
||||||
|
msgid "Loading preview image..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:895
|
||||||
|
msgid "Output format not recognized"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:896
|
||||||
|
msgid ""
|
||||||
|
"Sorry, but the image format which you are working with\n"
|
||||||
|
"is not recognized by KDE.\n"
|
||||||
|
"The image will be correctly saved if you want to,\n"
|
||||||
|
"but to see a preview try working with another image format (EPS and PGM "
|
||||||
|
"showld work well)\n"
|
||||||
|
"and only when you are satisfied with the result revert to the format\n"
|
||||||
|
"of your choiche and save the result."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:913
|
||||||
|
msgid "Image traced"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: mainwidget.cpp:1003 rc.cpp:26
|
||||||
|
msgid "pgm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: potracegui.cpp:54
|
||||||
|
msgid "Welcome to PotraceGui 1.3"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: potracegui.cpp:143
|
||||||
|
msgid "Save changes?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:1
|
||||||
|
msgid "C&ustom"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:3
|
||||||
|
msgid "&Original image"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:4
|
||||||
|
msgid "&Input-Output"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:5
|
||||||
|
msgid "Input"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:6
|
||||||
|
msgid "Black level:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:7 rc.cpp:8
|
||||||
|
msgid "Pixel threshold for B&W conversion of the image"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:9
|
||||||
|
msgid "&Invert"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:10
|
||||||
|
msgid "Alt+I"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:11
|
||||||
|
msgid "Inverts the image before processing"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:12
|
||||||
|
msgid "Color"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:14 rc.cpp:16
|
||||||
|
msgid "Output foreground color"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:15
|
||||||
|
msgid "Foreground color:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:17
|
||||||
|
msgid "Opaque:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:18
|
||||||
|
msgid "Fill in the white parts of the image opaquely"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:20
|
||||||
|
msgid "Fill color"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:21
|
||||||
|
msgid "Output"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:22
|
||||||
|
msgid "Format:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:29
|
||||||
|
msgid "Output format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:30
|
||||||
|
msgid "PS-EPS output"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:31
|
||||||
|
msgid "Page size:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:32 rc.cpp:45
|
||||||
|
msgid "Output page size"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:33
|
||||||
|
msgid "a4"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:34
|
||||||
|
msgid "a3"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:35
|
||||||
|
msgid "a5"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:36
|
||||||
|
msgid "b5"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:37
|
||||||
|
msgid "letter"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:38
|
||||||
|
msgid "legal"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:39
|
||||||
|
msgid "tabloid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:40
|
||||||
|
msgid "statement"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:41
|
||||||
|
msgid "executive"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:42
|
||||||
|
msgid "folio"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:43
|
||||||
|
msgid "quarto"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:44
|
||||||
|
msgid "10x14"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:46
|
||||||
|
msgid "Optimized numerical code"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:47
|
||||||
|
msgid ""
|
||||||
|
"Use a compact numerical format to represent Bezier curves in\n"
|
||||||
|
"PostScript"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:48
|
||||||
|
msgid "Compression level"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:49
|
||||||
|
msgid "None"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:50
|
||||||
|
msgid "No compression"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:51
|
||||||
|
msgid "Level 2"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:52
|
||||||
|
msgid "Standard compression (needs LZW-enabled compress)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:53
|
||||||
|
msgid "Level 3"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:54
|
||||||
|
msgid "Maximum compression"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:56
|
||||||
|
msgid "Group"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:57
|
||||||
|
msgid "Try to group related paths together in the SVG output"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:58
|
||||||
|
msgid "PGM"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:59
|
||||||
|
msgid "Antialias gamma:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:60 rc.cpp:61
|
||||||
|
msgid "Gamma value for anti-aliasing"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:62
|
||||||
|
msgid "Scale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:63 rc.cpp:124
|
||||||
|
msgid "All"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:64
|
||||||
|
msgid "All dimesions at once"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:65 rc.cpp:67 rc.cpp:68 rc.cpp:70 rc.cpp:73
|
||||||
|
msgid "Scale factor (>1 enlarges, <1 shrinks)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:66 rc.cpp:127
|
||||||
|
msgid "Y"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:69 rc.cpp:126
|
||||||
|
msgid "X"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:71 rc.cpp:128
|
||||||
|
msgid "Each"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:72 rc.cpp:129
|
||||||
|
msgid "Each dimension separately"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:74
|
||||||
|
msgid "Sorry, no options for this format."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:75
|
||||||
|
msgid "&Algorithm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:76
|
||||||
|
msgid "Curve optimization"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:77
|
||||||
|
msgid "Join adiacent bezier curves (off=larger file)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:78 rc.cpp:97
|
||||||
|
msgid "Curve optimization tolerance (default = 0.2)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:79 rc.cpp:98
|
||||||
|
msgid ""
|
||||||
|
"Set the curve optimization tolerance. The default value is 0.2. Larger "
|
||||||
|
"values allow more consecutive Bezier curve segments to be joined together in "
|
||||||
|
"a single segment, at the expense of accuracy."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:80 rc.cpp:100
|
||||||
|
msgid "Corner Threshold parameter (<1 hard corners, >1 soft corners)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:81 rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"Set the corner threshold parameter. The default value is 1. The smaller this "
|
||||||
|
"value, the more sharp corners will be produced. If this parameter is "
|
||||||
|
"negative, then no smoothing will be performed and the output is a polygon. "
|
||||||
|
"The largest useful value is 4/3 or 1.334, which suppresses all corners and "
|
||||||
|
"leads to completely smooth output."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:82 rc.cpp:103
|
||||||
|
msgid "Suppress speckles of up to this many pixels"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:83
|
||||||
|
msgid "black"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:84
|
||||||
|
msgid "white"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:85
|
||||||
|
msgid "right"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:86
|
||||||
|
msgid "left"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:87
|
||||||
|
msgid "minority"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:88
|
||||||
|
msgid "majority"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:89
|
||||||
|
msgid "random"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:90 rc.cpp:105
|
||||||
|
msgid ""
|
||||||
|
"How to resolve ambiguities in path\n"
|
||||||
|
"decomposition"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:91
|
||||||
|
msgid "To how many points/pixel the output is rounded"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:92 rc.cpp:95
|
||||||
|
msgid ""
|
||||||
|
"Set output quantization. Coordinates in the output are rounded to 1/value "
|
||||||
|
"pixels. The default value of 10 usually gives good results. In the case of "
|
||||||
|
"the gimppath backend, this option is used to set the desired magnification. "
|
||||||
|
"This option has no effect for the XFig backend, which always rasterizes to "
|
||||||
|
"1/1200 inch."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:93
|
||||||
|
msgid "Output quantization:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:94
|
||||||
|
msgid "How exactly the output is rounded"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:96
|
||||||
|
msgid "Optimization tolerance:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:99
|
||||||
|
msgid "Corner Threshold:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:102
|
||||||
|
msgid "Despeckle:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:104
|
||||||
|
msgid "Policy:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:106
|
||||||
|
msgid "&Scaling and transformations"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:107
|
||||||
|
msgid "Transformation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:108 rc.cpp:116
|
||||||
|
msgid "Rotate output by x degrees"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:109 rc.cpp:118
|
||||||
|
msgid ""
|
||||||
|
"Aspect ratio (<1 stretched in the x direction, >1 stretched in the y "
|
||||||
|
"direction)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:110 rc.cpp:120
|
||||||
|
msgid "Output image height"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:111 rc.cpp:122
|
||||||
|
msgid "Output image width"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:112 rc.cpp:113 rc.cpp:135 rc.cpp:139 rc.cpp:140 rc.cpp:141
|
||||||
|
msgid "cm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:114
|
||||||
|
msgid "degree"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:115
|
||||||
|
msgid "Rotation:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:117
|
||||||
|
msgid "Stretch:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:119
|
||||||
|
msgid "Height:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:121
|
||||||
|
msgid "Width:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:123
|
||||||
|
msgid "Resolution (dpi)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:125
|
||||||
|
msgid "All dimensions"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:130 rc.cpp:131 rc.cpp:132
|
||||||
|
msgid ""
|
||||||
|
"set the resolution (in dpi). One inch in the output image corresponds to "
|
||||||
|
"this many\n"
|
||||||
|
"pixels in the input"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:133
|
||||||
|
msgid "&Margins"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:134
|
||||||
|
msgid "Margins"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:136 rc.cpp:137 rc.cpp:138 rc.cpp:142
|
||||||
|
msgid "Set output margins"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:143
|
||||||
|
msgid "Top:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:144
|
||||||
|
msgid "Right:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:145
|
||||||
|
msgid "Left:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:146
|
||||||
|
msgid "Bottom:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:147
|
||||||
|
msgid "syncronize"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:149
|
||||||
|
msgid "&Input - output"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:150
|
||||||
|
msgid "&Output format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
|
msgid "Select wanted output format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:152
|
||||||
|
msgid "Input image"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:153
|
||||||
|
msgid "&DPI:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:154 rc.cpp:227
|
||||||
|
msgid "Alt+D"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:155 rc.cpp:159
|
||||||
|
msgid ""
|
||||||
|
"<p>Dot per inch of input image</p><p>(affects scaling in mif output)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:156
|
||||||
|
msgid "&reduce color count to:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:157 rc.cpp:183
|
||||||
|
msgid "Alt+R"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:158 rc.cpp:160
|
||||||
|
msgid "<p>Reduce input image to this number of colors (range: 2 - 256)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:161
|
||||||
|
msgid "Transparent color"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:162
|
||||||
|
msgid "&Use:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:163
|
||||||
|
msgid "Alt+U"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:164
|
||||||
|
msgid "<p>Toggle transparent color</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:166
|
||||||
|
msgid ""
|
||||||
|
"<p>Ignore this color in input file</p><p>(The color will be rendered as "
|
||||||
|
"transparent in the output image)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:167
|
||||||
|
msgid "Log"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:168
|
||||||
|
msgid "Create &logfile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:169
|
||||||
|
msgid "Alt+L"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:170
|
||||||
|
msgid "Not working at the moment"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:171
|
||||||
|
msgid "&Corners and curves"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:172
|
||||||
|
msgid "Corners"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:173
|
||||||
|
msgid "Thre&shold:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:174 rc.cpp:181
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider any pixel which forms an angle with its predecessor(s) and "
|
||||||
|
"successor(s) that is smaller than the specified angle (in degrees) as a "
|
||||||
|
"corner.</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:175
|
||||||
|
msgid "&Always threshold:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:176 rc.cpp:180
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider any angle at a pixel which falls below the specified angle (in "
|
||||||
|
"degrees) as a corner, even if it is bordered by other corner pixels.</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:177 rc.cpp:208
|
||||||
|
msgid "&Surround:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:178 rc.cpp:179
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider the specified number of pixels on either side of a point when "
|
||||||
|
"determining if that point is a corner.</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:182
|
||||||
|
msgid "&Remove adjacent corners"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:185
|
||||||
|
msgid "Curves"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:186 rc.cpp:190
|
||||||
|
msgid ""
|
||||||
|
"<p>When a spline is closer to a straight line than the specified real number "
|
||||||
|
"weighted by the square of the curve length, maintain it as a straight line, "
|
||||||
|
"even if it is a list with curves.</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:187 rc.cpp:192
|
||||||
|
msgid "<p>Smooth the curve the specified number of times prior to fitting</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:188 rc.cpp:197
|
||||||
|
msgid ""
|
||||||
|
"<p>If a spline does not deviate from the straight line defined by its "
|
||||||
|
"endpoints by more than the specified number of pixels, then treat it as a "
|
||||||
|
"straight line.</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:189
|
||||||
|
msgid "Re&version threshold:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:191
|
||||||
|
msgid "&Filter iterations:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:193 rc.cpp:195
|
||||||
|
msgid ""
|
||||||
|
"<p>Subdivide fitted curves that are offset by a number of pixels exceeding "
|
||||||
|
"the specified real number</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:194
|
||||||
|
msgid "&Error threshold:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:196
|
||||||
|
msgid "&Line threshold:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:198
|
||||||
|
msgid "&Preserve width"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:199 rc.cpp:219
|
||||||
|
msgid "Alt+P"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:200
|
||||||
|
msgid "<p>Preserve line width prior to thinning</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:201
|
||||||
|
msgid "&Various"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:202
|
||||||
|
msgid "Object recognition"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:203
|
||||||
|
msgid "&Outline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:204
|
||||||
|
msgid "Alt+O"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:205
|
||||||
|
msgid "C&enterline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:206
|
||||||
|
msgid "Alt+E"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:207
|
||||||
|
msgid "Tangent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:209 rc.cpp:210
|
||||||
|
msgid ""
|
||||||
|
"<p>Consider the specified number of points to either side of a point when "
|
||||||
|
"computing the tangent at that point</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:211
|
||||||
|
msgid "Despeckle"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:212 rc.cpp:217
|
||||||
|
msgid ""
|
||||||
|
"<p>Employ the specified real number as the value for despeckle tightness "
|
||||||
|
"(range: 0-8)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:213 rc.cpp:215
|
||||||
|
msgid ""
|
||||||
|
"<p>Employ the specified integer as the value for despeckling(range: 1-20)</p>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:214
|
||||||
|
msgid "&Level:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:216
|
||||||
|
msgid "T&ightness:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:218
|
||||||
|
msgid "des&peckle"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:221
|
||||||
|
msgid "Backend:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:222
|
||||||
|
msgid "potrace"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:223
|
||||||
|
msgid "autotrace"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:225
|
||||||
|
msgid "Alt+T"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:226
|
||||||
|
msgid "&Default options"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:228
|
||||||
|
msgid "Automatic Preview"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:230
|
||||||
|
msgid "Preserve options"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: _translatorinfo.cpp:1
|
||||||
|
msgid ""
|
||||||
|
"_: NAME OF TRANSLATORS\n"
|
||||||
|
"Your names"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: _translatorinfo.cpp:3
|
||||||
|
msgid ""
|
||||||
|
"_: EMAIL OF TRANSLATORS\n"
|
||||||
|
"Your emails"
|
||||||
|
msgstr ""
|
@ -0,0 +1,163 @@
|
|||||||
|
<?xml version = '1.0'?>
|
||||||
|
<kdevelop>
|
||||||
|
<general>
|
||||||
|
<author>Antonio Fasolato</author>
|
||||||
|
<email>Antonio.Fasolato@poste.it</email>
|
||||||
|
<version>1.3</version>
|
||||||
|
<projectmanagement>KDevKDEAutoProject</projectmanagement>
|
||||||
|
<primarylanguage>C++</primarylanguage>
|
||||||
|
<keywords>
|
||||||
|
<keyword>C++</keyword>
|
||||||
|
<keyword>Code</keyword>
|
||||||
|
<keyword>Qt</keyword>
|
||||||
|
<keyword>KDE</keyword>
|
||||||
|
</keywords>
|
||||||
|
<projectdirectory>.</projectdirectory>
|
||||||
|
<absoluteprojectpath>false</absoluteprojectpath>
|
||||||
|
<description></description>
|
||||||
|
<ignoreparts/>
|
||||||
|
<versioncontrol>kdevcvsservice</versioncontrol>
|
||||||
|
</general>
|
||||||
|
<kdevautoproject>
|
||||||
|
<general>
|
||||||
|
<activetarget>src/potracegui</activetarget>
|
||||||
|
<useconfiguration>debug</useconfiguration>
|
||||||
|
</general>
|
||||||
|
<run>
|
||||||
|
<mainprogram>src/potracegui</mainprogram>
|
||||||
|
<directoryradio>executable</directoryradio>
|
||||||
|
<runarguments>
|
||||||
|
<potracegui/>
|
||||||
|
</runarguments>
|
||||||
|
</run>
|
||||||
|
<configurations>
|
||||||
|
<optimized>
|
||||||
|
<builddir>optimized</builddir>
|
||||||
|
<ccompiler>kdevgccoptions</ccompiler>
|
||||||
|
<cxxcompiler>kdevgppoptions</cxxcompiler>
|
||||||
|
<f77compiler>kdevg77options</f77compiler>
|
||||||
|
<cxxflags>-O2 -g0</cxxflags>
|
||||||
|
</optimized>
|
||||||
|
<debug>
|
||||||
|
<configargs>--enable-debug=full</configargs>
|
||||||
|
<builddir>debug</builddir>
|
||||||
|
<ccompiler>kdevgccoptions</ccompiler>
|
||||||
|
<cxxcompiler>kdevgppoptions</cxxcompiler>
|
||||||
|
<f77compiler>kdevg77options</f77compiler>
|
||||||
|
<cxxflags>-O0 -g3</cxxflags>
|
||||||
|
</debug>
|
||||||
|
</configurations>
|
||||||
|
<make>
|
||||||
|
<envvars>
|
||||||
|
<envvar value="1" name="WANT_AUTOCONF_2_5" />
|
||||||
|
<envvar value="1" name="WANT_AUTOMAKE_1_6" />
|
||||||
|
</envvars>
|
||||||
|
</make>
|
||||||
|
</kdevautoproject>
|
||||||
|
<kdevfileview>
|
||||||
|
<groups>
|
||||||
|
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||||
|
<group pattern="*.ui" name="User Interface" />
|
||||||
|
<group pattern="*.png" name="Icons" />
|
||||||
|
<group pattern="*.po;*.ts" name="Translations" />
|
||||||
|
<group pattern="*" name="Others" />
|
||||||
|
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||||
|
<hidenonlocation>false</hidenonlocation>
|
||||||
|
</groups>
|
||||||
|
<tree>
|
||||||
|
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||||
|
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||||
|
</tree>
|
||||||
|
</kdevfileview>
|
||||||
|
<kdevdoctreeview>
|
||||||
|
<ignoretocs>
|
||||||
|
<toc>ada</toc>
|
||||||
|
<toc>ada_bugs_gcc</toc>
|
||||||
|
<toc>bash</toc>
|
||||||
|
<toc>bash_bugs</toc>
|
||||||
|
<toc>clanlib</toc>
|
||||||
|
<toc>w3c-dom-level2-html</toc>
|
||||||
|
<toc>fortran_bugs_gcc</toc>
|
||||||
|
<toc>gnome1</toc>
|
||||||
|
<toc>gnustep</toc>
|
||||||
|
<toc>gtk</toc>
|
||||||
|
<toc>gtk_bugs</toc>
|
||||||
|
<toc>haskell</toc>
|
||||||
|
<toc>haskell_bugs_ghc</toc>
|
||||||
|
<toc>java_bugs_gcc</toc>
|
||||||
|
<toc>java_bugs_sun</toc>
|
||||||
|
<toc>pascal_bugs_fp</toc>
|
||||||
|
<toc>php</toc>
|
||||||
|
<toc>php_bugs</toc>
|
||||||
|
<toc>perl</toc>
|
||||||
|
<toc>perl_bugs</toc>
|
||||||
|
<toc>python</toc>
|
||||||
|
<toc>python_bugs</toc>
|
||||||
|
<toc>ruby</toc>
|
||||||
|
<toc>ruby_bugs</toc>
|
||||||
|
<toc>sdl</toc>
|
||||||
|
<toc>w3c-svg</toc>
|
||||||
|
<toc>sw</toc>
|
||||||
|
<toc>w3c-uaag10</toc>
|
||||||
|
<toc>wxwindows_bugs</toc>
|
||||||
|
</ignoretocs>
|
||||||
|
<ignoreqt_xml>
|
||||||
|
<toc>qmake User Guide</toc>
|
||||||
|
</ignoreqt_xml>
|
||||||
|
</kdevdoctreeview>
|
||||||
|
<kdevdebugger>
|
||||||
|
<general>
|
||||||
|
<dbgshell>libtool</dbgshell>
|
||||||
|
<programargs></programargs>
|
||||||
|
<gdbpath></gdbpath>
|
||||||
|
<configGdbScript></configGdbScript>
|
||||||
|
<runShellScript></runShellScript>
|
||||||
|
<runGdbScript></runGdbScript>
|
||||||
|
<breakonloadinglibs>true</breakonloadinglibs>
|
||||||
|
<separatetty>false</separatetty>
|
||||||
|
<floatingtoolbar>false</floatingtoolbar>
|
||||||
|
</general>
|
||||||
|
<display>
|
||||||
|
<staticmembers>false</staticmembers>
|
||||||
|
<demanglenames>true</demanglenames>
|
||||||
|
<outputradix>10</outputradix>
|
||||||
|
</display>
|
||||||
|
</kdevdebugger>
|
||||||
|
<kdevfilecreate>
|
||||||
|
<filetypes/>
|
||||||
|
<useglobaltypes>
|
||||||
|
<type ext="ui" />
|
||||||
|
<type ext="cpp" />
|
||||||
|
<type ext="h" />
|
||||||
|
</useglobaltypes>
|
||||||
|
</kdevfilecreate>
|
||||||
|
<kdevcppsupport>
|
||||||
|
<references/>
|
||||||
|
<codecompletion>
|
||||||
|
<includeGlobalFunctions>true</includeGlobalFunctions>
|
||||||
|
<includeTypes>true</includeTypes>
|
||||||
|
<includeEnums>true</includeEnums>
|
||||||
|
<includeTypedefs>false</includeTypedefs>
|
||||||
|
<automaticCodeCompletion>true</automaticCodeCompletion>
|
||||||
|
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||||
|
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||||
|
<codeCompletionDelay>250</codeCompletionDelay>
|
||||||
|
<argumentsHintDelay>400</argumentsHintDelay>
|
||||||
|
<headerCompletionDelay>250</headerCompletionDelay>
|
||||||
|
</codecompletion>
|
||||||
|
<creategettersetter>
|
||||||
|
<prefixGet></prefixGet>
|
||||||
|
<prefixSet>set</prefixSet>
|
||||||
|
<prefixVariable>m_,_</prefixVariable>
|
||||||
|
<parameterName>theValue</parameterName>
|
||||||
|
<inlineGet>true</inlineGet>
|
||||||
|
<inlineSet>true</inlineSet>
|
||||||
|
</creategettersetter>
|
||||||
|
</kdevcppsupport>
|
||||||
|
<cppsupportpart>
|
||||||
|
<filetemplates>
|
||||||
|
<interfacesuffix>.h</interfacesuffix>
|
||||||
|
<implementationsuffix>.cpp</implementationsuffix>
|
||||||
|
</filetemplates>
|
||||||
|
</cppsupportpart>
|
||||||
|
</kdevelop>
|
Binary file not shown.
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||||
|
<!DOCTYPE KDevPrjSession>
|
||||||
|
<KDevPrjSession>
|
||||||
|
<DocsAndViews NumberOfDocuments="1" >
|
||||||
|
<Doc0 NumberOfViews="1" URL="file:/home/timi/Documents/Informatik/Programme/tracing/guis/potracegui/in-Arbeit/erfolg7/potracegui/src/potracegui.cpp" >
|
||||||
|
<View0 line="4" Type="???" >
|
||||||
|
<AdditionalSettings Top="1" Width="955" Attach="1" Height="365" Left="1" MinMaxMode="0" />
|
||||||
|
</View0>
|
||||||
|
</Doc0>
|
||||||
|
</DocsAndViews>
|
||||||
|
<pluginList>
|
||||||
|
<kdevvalgrind>
|
||||||
|
<executable path="" params="" />
|
||||||
|
<valgrind path="" params="" />
|
||||||
|
</kdevvalgrind>
|
||||||
|
<kdevsubversion>
|
||||||
|
<subversion recurseresolve="1" recurserelocate="1" recursemerge="1" recursecommit="1" base="" recursepropget="1" recurseswitch="1" recurseupdate="1" recursepropset="1" recursediff="1" recurserevert="1" forcemove="1" recursecheckout="1" forceremove="1" recurseadd="1" recurseproplist="1" forcemerge="1" />
|
||||||
|
</kdevsubversion>
|
||||||
|
<kdevdebugger>
|
||||||
|
<breakpointList/>
|
||||||
|
</kdevdebugger>
|
||||||
|
<kdevbookmarks>
|
||||||
|
<bookmarks/>
|
||||||
|
</kdevbookmarks>
|
||||||
|
</pluginList>
|
||||||
|
</KDevPrjSession>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
|||||||
|
# set the include path for X, qt and KDE
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
|
||||||
|
# these are the headers for your project
|
||||||
|
noinst_HEADERS = potracegui.h autotraceformats.h mainwidget.h options.h
|
||||||
|
|
||||||
|
# let automoc handle all of the meta source files (moc)
|
||||||
|
METASOURCES = AUTO
|
||||||
|
|
||||||
|
messages: rc.cpp
|
||||||
|
$(XGETTEXT) *.cpp -o $(podir)/potracegui.pot
|
||||||
|
|
||||||
|
KDE_ICON = potracegui
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# APPLICATION SECTION
|
||||||
|
#########################################################################
|
||||||
|
# this is the program that gets installed. it's name is used for all
|
||||||
|
# of the other Makefile.am variables
|
||||||
|
bin_PROGRAMS = potracegui
|
||||||
|
|
||||||
|
# the application source, library search path, and link libraries
|
||||||
|
potracegui_SOURCES = main.cpp potracegui.cpp autotraceformats.cpp MainWidgetBase.ui mainwidget.cpp options.cpp
|
||||||
|
potracegui_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
potracegui_LDADD = $(LIB_KIO) $(LIB_KDEUI)
|
||||||
|
|
||||||
|
# this is where the desktop file will go
|
||||||
|
shelldesktopdir = $(kde_appsdir)/Utilities
|
||||||
|
shelldesktop_DATA = potracegui.desktop
|
||||||
|
|
||||||
|
# this is where the shell's XML-GUI resource file goes
|
||||||
|
shellrcdir = $(kde_datadir)/potracegui
|
||||||
|
shellrc_DATA = potraceguiui.rc
|
||||||
|
|
@ -0,0 +1,71 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
#include "autotraceformats.h"
|
||||||
|
|
||||||
|
AutotraceFormats::AutotraceFormats(QObject *parent, const char *name): QObject(parent, name), allOK(true) {
|
||||||
|
inputProcess=new QProcess(this);
|
||||||
|
outputProcess=new QProcess(this);
|
||||||
|
|
||||||
|
inputProcess->addArgument("autotrace");
|
||||||
|
inputProcess->addArgument("--list-input-formats");
|
||||||
|
|
||||||
|
outputProcess->addArgument("autotrace");
|
||||||
|
outputProcess->addArgument("--list-output-formats");
|
||||||
|
|
||||||
|
connect(inputProcess,SIGNAL(readyReadStderr()),this,SLOT(inputRead()));
|
||||||
|
connect(outputProcess,SIGNAL(readyReadStderr()),this,SLOT(outputRead()));
|
||||||
|
|
||||||
|
if(!(inputProcess->start()) || !(outputProcess->start())) {
|
||||||
|
allOK=false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void AutotraceFormats::inputRead( ) {
|
||||||
|
while(inputProcess->canReadLineStderr()) {
|
||||||
|
input+=inputProcess->readLineStderr();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void AutotraceFormats::outputRead( ) {
|
||||||
|
while(outputProcess->canReadLineStderr()) {
|
||||||
|
QString tmp=outputProcess->readLineStderr();
|
||||||
|
if(!(tmp.startsWith("Supported")))
|
||||||
|
output+=tmp.stripWhiteSpace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AutotraceFormats::OK( ) {
|
||||||
|
return allOK;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AutotraceFormats::done( ) {
|
||||||
|
return (!(inputProcess->isRunning()) && !(outputProcess->isRunning()));
|
||||||
|
}
|
||||||
|
|
||||||
|
QStringList AutotraceFormats::inputFormats( ) {
|
||||||
|
return input;
|
||||||
|
}
|
||||||
|
|
||||||
|
QStringList AutotraceFormats::outputFormats( ) {
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#include "autotraceformats.moc"
|
@ -0,0 +1,86 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
#ifndef AUTOTRACEFORMATS_H
|
||||||
|
#define AUTOTRACEFORMATS_H
|
||||||
|
|
||||||
|
#include <qobject.h>
|
||||||
|
#include <qstringlist.h>
|
||||||
|
#include <qprocess.h>
|
||||||
|
|
||||||
|
//! Class to read autotrace input and output formats
|
||||||
|
/** This class executes autotrace to gain informations about the formats it can use
|
||||||
|
* \author Antonio Fasolato
|
||||||
|
*/
|
||||||
|
class AutotraceFormats : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
//! Standard QObject-like constructor
|
||||||
|
/** The constructor, nothing fancy
|
||||||
|
* \param parent The parent of the QObject
|
||||||
|
* \param name The name of the QObject
|
||||||
|
*/
|
||||||
|
AutotraceFormats(QObject *parent = 0, const char *name = 0);
|
||||||
|
//!Returns the list of supported input formats
|
||||||
|
/** This class returns the list of formats returned by <code>autotrace -list-input-formats</code>
|
||||||
|
* \return The supported formats
|
||||||
|
*/
|
||||||
|
QStringList inputFormats();
|
||||||
|
//!Returns the list of supported output formats
|
||||||
|
/** This class returns the list of formats returned by <code>autotrace -list-output-formats</code>
|
||||||
|
* \return The supported formats
|
||||||
|
*/
|
||||||
|
QStringList outputFormats();
|
||||||
|
//! Function to test the execution of autotrace
|
||||||
|
/** This functions returns <code>true</code> if the autotrace command could be run succesfully. If it returns
|
||||||
|
* <code>false</code> autotrace executable can not be found in the environment
|
||||||
|
* \return <code>true</code> if autotrace ran, <code>false</code> otherways
|
||||||
|
*/
|
||||||
|
bool OK();
|
||||||
|
//! Tests if the class has ended its work
|
||||||
|
/** This class tests if the autotrace processes ended, thus completing the formats listing
|
||||||
|
* \return <code>true</code> if the processes has ended, <code>false</code> otherways
|
||||||
|
*/
|
||||||
|
bool done();
|
||||||
|
|
||||||
|
private:
|
||||||
|
//! The process to get input formats
|
||||||
|
QProcess *inputProcess;
|
||||||
|
//! The process to get output formats
|
||||||
|
QProcess *outputProcess;
|
||||||
|
//! The list of input formats
|
||||||
|
QStringList input;
|
||||||
|
//! The list of output formats
|
||||||
|
QStringList output;
|
||||||
|
//! <code>true</code> if autotrace could be run
|
||||||
|
bool allOK;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
//! Reads from inputProcess stderr
|
||||||
|
/** Reads, when possible, the output of AutotraceFormats::inputProcess
|
||||||
|
*/
|
||||||
|
void inputRead();
|
||||||
|
//! Reads from outputProcess stderr
|
||||||
|
/** Reads, when possible, the output of AutotraceFormats::outputProcess
|
||||||
|
*/
|
||||||
|
void outputRead();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,57 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include "potracegui.h"
|
||||||
|
|
||||||
|
#include <kapplication.h>
|
||||||
|
#include <kaboutdata.h>
|
||||||
|
#include <kcmdlineargs.h>
|
||||||
|
#include <klocale.h>
|
||||||
|
|
||||||
|
static const char description[] =
|
||||||
|
I18N_NOOP("An interface for potrace and autotrace");
|
||||||
|
|
||||||
|
static KCmdLineOptions options[] =
|
||||||
|
{
|
||||||
|
{ "+[URL]", I18N_NOOP( "Document to open" ), 0 },
|
||||||
|
KCmdLineLastOption
|
||||||
|
};
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
KAboutData about("potracegui", I18N_NOOP("potracegui"), "1.3", description,
|
||||||
|
KAboutData::License_GPL, "(C) 2004 Antonio Fasolato", 0, 0, "Antonio.Fasolato@poste.it");
|
||||||
|
about.addAuthor( "Antonio Fasolato", 0, "Antonio.Fasolato@poste.it" );
|
||||||
|
about.addCredit( "Tim Fechtner", I18N_NOOP("German translation"), "Tim.Fechtner@gmx.de");
|
||||||
|
KCmdLineArgs::init(argc, argv, &about);
|
||||||
|
KCmdLineArgs::addCmdLineOptions( options );
|
||||||
|
KApplication app;
|
||||||
|
potracegui *firstWidget = 0;
|
||||||
|
|
||||||
|
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||||
|
|
||||||
|
firstWidget = new potracegui();
|
||||||
|
firstWidget->show();
|
||||||
|
|
||||||
|
args->clear();
|
||||||
|
|
||||||
|
return app.exec();
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,200 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef MAINWIDGET_H
|
||||||
|
#define MAINWIDGET_H
|
||||||
|
|
||||||
|
#include "MainWidgetBase.h"
|
||||||
|
|
||||||
|
#include <qstring.h>
|
||||||
|
#include <qprocess.h>
|
||||||
|
#include <qstringlist.h>
|
||||||
|
#include <qpixmap.h>
|
||||||
|
#include <qclipboard.h>
|
||||||
|
#include <qevent.h>
|
||||||
|
#include <qlabel.h>
|
||||||
|
|
||||||
|
#include <kurl.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
class Options;
|
||||||
|
|
||||||
|
//! The app's main widget
|
||||||
|
/*!
|
||||||
|
* \author Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
* \version 1.2
|
||||||
|
*
|
||||||
|
* This is the widget containing all the facilities to work with the image the user is tracing. It shows the current image and potrace output (if it exists), an interface to set the options and the buttons to control the execution of potrace.
|
||||||
|
*/
|
||||||
|
class MainWidget : public MainWidgetBase
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
//! For simplicity
|
||||||
|
friend class potracegui;
|
||||||
|
|
||||||
|
public:
|
||||||
|
//! Default constructor (all parameters are simply passed to MainWidgetBase)
|
||||||
|
MainWidget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
|
||||||
|
//! Default destructor
|
||||||
|
~MainWidget();
|
||||||
|
|
||||||
|
private:
|
||||||
|
//! Contains the temporary file name used while tracing
|
||||||
|
QString m_tmpFilename;
|
||||||
|
//! Contains the input file name for autotrace
|
||||||
|
QString m_tmpInputFilename;
|
||||||
|
//! Contains the real file name where to save the traced image
|
||||||
|
QString m_outputFilename;
|
||||||
|
//! The process of potrace (used to abort it and to control its exit status)
|
||||||
|
QProcess tracer;
|
||||||
|
//! To know if the tracing has exited normally, or it has been interrupted
|
||||||
|
bool aborted;
|
||||||
|
//! To know if the current document is different from the saved one
|
||||||
|
bool m_changed;
|
||||||
|
//! The history of the options (not used yet, it will permit undo/redo in the future)
|
||||||
|
vector<Options *> m_state;
|
||||||
|
//! The history of the previews (not used yet, it will permit undo/redo in the future)
|
||||||
|
vector<QPixmap> m_oldPreviews;
|
||||||
|
//! The current options
|
||||||
|
vector<Options *>::iterator m_currentState;
|
||||||
|
//! The current preview image
|
||||||
|
vector<QPixmap>::iterator m_currentPreview;
|
||||||
|
//! Label to display the original image
|
||||||
|
QLabel *originalLabel;
|
||||||
|
//! Label to display the traced image
|
||||||
|
QLabel *previewLabel;
|
||||||
|
|
||||||
|
//! Retrives an image from an URL
|
||||||
|
/*!
|
||||||
|
* \param url The url of the image
|
||||||
|
*
|
||||||
|
* Retrives an image from an URL and loads into the original image viewer: if it is a local file, it simply loads it, if it is a remote URL, first it downloads it, then it loads it.<BR>
|
||||||
|
* After loading the image, it resets the options for the document (unless otherwise specified by the user.)
|
||||||
|
*/
|
||||||
|
void getImageFromURL(KURL url);
|
||||||
|
//! Gets the options from m_currentState and sets up all the widget from this informations
|
||||||
|
/*!
|
||||||
|
* \sa getOptions()
|
||||||
|
*/
|
||||||
|
void readOptions();
|
||||||
|
//! Gets the options from all the widget and saves them into m_currentState
|
||||||
|
/*!
|
||||||
|
* \sa readOptions()
|
||||||
|
*/
|
||||||
|
void getOptions();
|
||||||
|
//! Gets the options for potrace from all the widget and saves them into m_currentState
|
||||||
|
/*!
|
||||||
|
* \sa readOptions()
|
||||||
|
*/
|
||||||
|
void getPotraceOptions();
|
||||||
|
//! Gets the options for autotrace from all the widget and saves them into m_currentState
|
||||||
|
/*!
|
||||||
|
* \sa readOptions()
|
||||||
|
*/
|
||||||
|
void getAutotraceOptions();
|
||||||
|
//! Creates the command line for tracing
|
||||||
|
/*!
|
||||||
|
* It reads m_currentState and creates from all the options a commandline to be executed
|
||||||
|
* \returns A QStringList that can be used as a commandline to a QProcess
|
||||||
|
*/
|
||||||
|
QStringList createCommandLine();
|
||||||
|
//! Creates the command line for tracing with potrace
|
||||||
|
/*!
|
||||||
|
* It reads m_currentState and creates from all the options a commandline to be executed
|
||||||
|
* \returns A QStringList that can be used as a commandline to a QProcess
|
||||||
|
*/
|
||||||
|
QStringList createPotraceCommandLine();
|
||||||
|
//! Creates the command line for tracing with autotrace
|
||||||
|
/*!
|
||||||
|
* It reads m_currentState and creates from all the options a commandline to be executed
|
||||||
|
* \returns A QStringList that can be used as a commandline to a QProcess
|
||||||
|
*/
|
||||||
|
QStringList createAutotraceCommandLine();
|
||||||
|
//! Sets m_tmpFilename to a new temporary filename (generated through mkstemp())
|
||||||
|
bool createTmpFilename();
|
||||||
|
//! Deletes the file pointed by m_tmpFilename
|
||||||
|
bool deleteTmpFilename();
|
||||||
|
//! Shows a KDialog whit nformations
|
||||||
|
/*!
|
||||||
|
* \param caption The caption of the dialog
|
||||||
|
* \param text The text to display into the dialog
|
||||||
|
* \returns The code of the dialog button pressed.
|
||||||
|
*/
|
||||||
|
int notificationDialog(QString caption, QString text);
|
||||||
|
//! Accepts only a KURL
|
||||||
|
void dragEnterEvent(QDragEnterEvent* event);
|
||||||
|
//! Receives a KURL and loads it.
|
||||||
|
/*!
|
||||||
|
* \sa getImageFromURL()
|
||||||
|
*/
|
||||||
|
void dropEvent(QDropEvent* event);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
//! Opens a file (whith a KFileDialog)
|
||||||
|
void fileOpen();
|
||||||
|
//! Saves the current image
|
||||||
|
void fileSave();
|
||||||
|
//! Saves the current image whith an alternate name
|
||||||
|
void fileSaveAs();
|
||||||
|
//! Closes the file (and the window)
|
||||||
|
void fileClose();
|
||||||
|
//! Cuts the original image into the clipboard
|
||||||
|
void cut();
|
||||||
|
//! Copies the current image into the clipboard
|
||||||
|
void copy();
|
||||||
|
//! Gets an image (if any) from the clipboard
|
||||||
|
void paste();
|
||||||
|
//! Executed when the tracer process has ended.
|
||||||
|
/*!
|
||||||
|
* Executed when the tracer process has ended. If the process was successful it loads the traced image into the preview widget (unless otherways specified by the user)
|
||||||
|
*/
|
||||||
|
void tracerExited();
|
||||||
|
//! Closes tracer stdin after passing the original image to it
|
||||||
|
void writeCompleted();
|
||||||
|
//! Executes potrace whith the options specified by the user
|
||||||
|
/*!
|
||||||
|
* \sa createCommandLine()
|
||||||
|
*/
|
||||||
|
void trace();
|
||||||
|
//! Reverts to the default options
|
||||||
|
void defaultOptions();
|
||||||
|
//! When an output format for potrace has been selected, it shows the relevant options
|
||||||
|
void showOptions(const QString &selection);
|
||||||
|
//! When a backend has been selected, it shows the relevant options
|
||||||
|
void backendChoosen(const QString &back);
|
||||||
|
//! Syncronize margins if corresponding checkbox is checked
|
||||||
|
void marginValueChanged( double newValue);
|
||||||
|
|
||||||
|
|
||||||
|
signals:
|
||||||
|
//! Emitted to change the statusbar
|
||||||
|
/*!
|
||||||
|
* \param message The message to display into the statusbar
|
||||||
|
*/
|
||||||
|
void signalChangeStatusbar(QString message);
|
||||||
|
protected:
|
||||||
|
bool marginValueSynconizingNecessary;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,87 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2003 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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. *
|
||||||
|
***************************************************************************/
|
||||||
|
#include "options.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <map>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
#include <qstring.h>
|
||||||
|
|
||||||
|
Options::Options(): options()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void Options::setValue(QString key, QString value) {
|
||||||
|
if(options.find(key)!=options.end())
|
||||||
|
options.erase(options.find(key));
|
||||||
|
map<QString,QString>::value_type v(key,value);
|
||||||
|
options.insert(v);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Options::isEmpty() {
|
||||||
|
return options.empty();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Options::clear() {
|
||||||
|
options.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
QString Options::operator[](QString key) {
|
||||||
|
if(options.find(key)!=options.end())
|
||||||
|
return options[key];
|
||||||
|
else
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
void Options::defaultOptions(){
|
||||||
|
clear();
|
||||||
|
|
||||||
|
//input-output
|
||||||
|
setValue("blackLevel","0.5");
|
||||||
|
setValue("invertInput","n");
|
||||||
|
setValue("outputFileName","");
|
||||||
|
setValue("outputFormat","eps");
|
||||||
|
setValue("pageSize","letter");
|
||||||
|
setValue("optimizedNumericalCode","y");
|
||||||
|
setValue("compressionLevel","2");
|
||||||
|
|
||||||
|
//Color
|
||||||
|
setValue("foregroundBtn","#000000");
|
||||||
|
setValue("backgroundBtn","#F8F9FB");
|
||||||
|
|
||||||
|
//Algorithm
|
||||||
|
setValue("policy","4");
|
||||||
|
setValue("despeckle","0");
|
||||||
|
setValue("cornerThreshold","1.00");
|
||||||
|
setValue("optimizationTolerance","0.2");
|
||||||
|
setValue("outputQuantization","10");
|
||||||
|
setValue("curveOptimization","y");
|
||||||
|
|
||||||
|
//Transformation
|
||||||
|
setValue("width","0.0");
|
||||||
|
setValue("height","0.0");
|
||||||
|
setValue("stretch","1.0");
|
||||||
|
setValue("rotation","0.0");
|
||||||
|
|
||||||
|
//Resolution
|
||||||
|
setValue("resolution","0.0");
|
||||||
|
|
||||||
|
//Margins
|
||||||
|
setValue("syncronizeMargins","y");
|
||||||
|
setValue("margins","0.0");
|
||||||
|
}
|
||||||
|
|
||||||
|
void Options::debug() {
|
||||||
|
for(map<QString,QString>::iterator i=options.begin(); i!=options.end(); i++)
|
||||||
|
cout << (*i).first << "=" << (*i).second << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,66 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2003 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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. *
|
||||||
|
***************************************************************************/
|
||||||
|
#ifndef OPTIONS_H
|
||||||
|
#define OPTIONS_H
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
#include <qstring.h>
|
||||||
|
|
||||||
|
|
||||||
|
//! Class that contains all the options for a document.
|
||||||
|
/*!
|
||||||
|
* \author Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
* \version 1.0
|
||||||
|
*
|
||||||
|
* Class that contains all the options for a document. These options regards the most disparate values: output formats, algorithm to use with potrace...<BR>
|
||||||
|
* Mainly this class contains options relevant to potrace.
|
||||||
|
*/
|
||||||
|
class Options{
|
||||||
|
public:
|
||||||
|
//! Default constructor
|
||||||
|
Options();
|
||||||
|
|
||||||
|
//! Sets a pair (key,value) in this Options object.
|
||||||
|
/*!
|
||||||
|
* \param key The name of the option. Later on it will be used to read its value
|
||||||
|
* \param value The value associated with the key
|
||||||
|
*
|
||||||
|
* Sets a pair (key,value) in this Options object. If name is not in this object, it is added.
|
||||||
|
*
|
||||||
|
* \sa operator[]()
|
||||||
|
*/
|
||||||
|
void setValue(QString key, QString value);
|
||||||
|
//! Checks if the object contains no keys
|
||||||
|
/*!
|
||||||
|
* \returns \b true if the object is empty, \b false otherwise
|
||||||
|
*/
|
||||||
|
bool isEmpty();
|
||||||
|
//! Clears all the options in the object
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
//! Retrives an option value from the key associated whith it
|
||||||
|
/*!
|
||||||
|
* \param key the key of the option to retrive
|
||||||
|
* \returns The value associated with the key
|
||||||
|
* \sa setValue()
|
||||||
|
*/
|
||||||
|
QString operator[](QString key);
|
||||||
|
//! Sets all the options to their default value.
|
||||||
|
void defaultOptions();
|
||||||
|
//! Prints the list of options
|
||||||
|
void debug();
|
||||||
|
|
||||||
|
private:
|
||||||
|
map<QString,QString> options; /*!< The map containing the options */
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,158 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include "potracegui.h"
|
||||||
|
#include "mainwidget.h"
|
||||||
|
|
||||||
|
#include <qlabel.h>
|
||||||
|
#include <qclipboard.h>
|
||||||
|
|
||||||
|
#include <kmainwindow.h>
|
||||||
|
#include <klocale.h>
|
||||||
|
#include <kstatusbar.h>
|
||||||
|
#include <ktoolbar.h>
|
||||||
|
#include <kmenubar.h>
|
||||||
|
#include <kpopupmenu.h>
|
||||||
|
#include <kstdaccel.h>
|
||||||
|
#include <kaction.h>
|
||||||
|
#include <kstdaction.h>
|
||||||
|
#include <kio/netaccess.h>
|
||||||
|
#include <kimageio.h>
|
||||||
|
#include <kkeydialog.h>
|
||||||
|
#include <kedittoolbar.h>
|
||||||
|
#include <kmessagebox.h>
|
||||||
|
|
||||||
|
potracegui::potracegui()
|
||||||
|
: KMainWindow( 0, "potracegui" ), m_centralWidget(new MainWidget(this))
|
||||||
|
{
|
||||||
|
// set the shell's ui resource file
|
||||||
|
setXMLFile("potraceguiui.rc");
|
||||||
|
KImageIO::registerFormats();
|
||||||
|
|
||||||
|
setCentralWidget(m_centralWidget);
|
||||||
|
|
||||||
|
setAcceptDrops(true);
|
||||||
|
|
||||||
|
statusBar()->show();
|
||||||
|
statusBar()->message(i18n("Welcome to PotraceGui 1.3"));
|
||||||
|
setAutoSaveSettings();
|
||||||
|
setAcceptDrops(true);
|
||||||
|
|
||||||
|
connect(m_centralWidget,SIGNAL(signalChangeStatusbar(QString)),this,SLOT(changeStatusbar(QString)));
|
||||||
|
|
||||||
|
createInterface();
|
||||||
|
}
|
||||||
|
|
||||||
|
potracegui::~potracegui()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::createInterface()
|
||||||
|
{
|
||||||
|
/*handled by potracegui*/
|
||||||
|
KStdAction::openNew(this, SLOT(fileNew()),actionCollection());
|
||||||
|
KStdAction::quit(this, SLOT(quit()),actionCollection());
|
||||||
|
m_toolbarAction=KStdAction::showToolbar(this, SLOT(showToolbar()),actionCollection());
|
||||||
|
m_statusbarAction=KStdAction::showStatusbar(this, SLOT(showStatusbar()),actionCollection());
|
||||||
|
KStdAction::keyBindings(this, SLOT(configureKeys()),actionCollection());
|
||||||
|
KStdAction::configureToolbars(this, SLOT(configureTB()),actionCollection());
|
||||||
|
|
||||||
|
/*handled by MainWidget*/
|
||||||
|
KStdAction::open(m_centralWidget, SLOT(fileOpen()),actionCollection());
|
||||||
|
KStdAction::save(m_centralWidget, SLOT(fileSave()),actionCollection());
|
||||||
|
KStdAction::saveAs(m_centralWidget, SLOT(fileSaveAs()),actionCollection());
|
||||||
|
KStdAction::close(m_centralWidget, SLOT(fileClose()),actionCollection());
|
||||||
|
KStdAction::cut(m_centralWidget, SLOT(cut()),actionCollection());
|
||||||
|
KStdAction::copy(m_centralWidget, SLOT(copy()),actionCollection());
|
||||||
|
KStdAction::paste(m_centralWidget, SLOT(paste()),actionCollection());
|
||||||
|
|
||||||
|
/*Create menu and toolbar*/
|
||||||
|
createGUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//MENU ACTIONS
|
||||||
|
void potracegui::fileNew()
|
||||||
|
{
|
||||||
|
(new potracegui)->show();
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::quit()
|
||||||
|
{
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::showToolbar()
|
||||||
|
{
|
||||||
|
if(m_toolbarAction->isChecked())
|
||||||
|
toolBar()->show();
|
||||||
|
else
|
||||||
|
toolBar()->hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::showStatusbar()
|
||||||
|
{
|
||||||
|
if(m_statusbarAction->isChecked())
|
||||||
|
statusBar()->show();
|
||||||
|
else
|
||||||
|
statusBar()->hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::configureKeys()
|
||||||
|
{
|
||||||
|
KKeyDialog::configure(actionCollection(),"potraceguiui.rc");
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::configureTB()
|
||||||
|
{
|
||||||
|
KEditToolbar dlg(actionCollection());
|
||||||
|
connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(NewTBConfig()));
|
||||||
|
dlg.exec();
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::NewTBConfig()
|
||||||
|
{
|
||||||
|
createGUI();
|
||||||
|
saveMainWindowSettings(KGlobal::config());
|
||||||
|
}
|
||||||
|
|
||||||
|
void potracegui::changeStatusbar(QString message)
|
||||||
|
{
|
||||||
|
statusBar()->message(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool potracegui::queryClose() {
|
||||||
|
if(m_centralWidget->m_changed) {
|
||||||
|
int res= KMessageBox::warningYesNoCancel(this, i18n("Save changes?"));
|
||||||
|
if(res==KMessageBox::Yes) {
|
||||||
|
m_centralWidget->fileSave();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if(res==KMessageBox::Cancel) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(res==KMessageBox::No) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "potracegui.moc"
|
@ -0,0 +1,98 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef _POTRACEGUI_H_
|
||||||
|
#define _POTRACEGUI_H_
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <kmainwindow.h>
|
||||||
|
#include <kapplication.h>
|
||||||
|
|
||||||
|
#include <qlabel.h>
|
||||||
|
|
||||||
|
class KToggleAction;
|
||||||
|
class MainWidget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @short Application Main Window
|
||||||
|
* @author Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
* This is potracegui main window. It controls the menu, the toolbar and the statusbar. Its main widget (MainWidget object) copes with the actual options gaining and image tracing.
|
||||||
|
*/
|
||||||
|
class potracegui : public KMainWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* @short Default Constructor
|
||||||
|
*
|
||||||
|
* Nothing special.
|
||||||
|
*/
|
||||||
|
potracegui();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @short Default Destructor
|
||||||
|
*
|
||||||
|
* Nothing special
|
||||||
|
*/
|
||||||
|
virtual ~potracegui();
|
||||||
|
|
||||||
|
private:
|
||||||
|
MainWidget *m_centralWidget; /**< Main widget: everithing not related to menu, toolbar or statusbar */
|
||||||
|
KToggleAction *m_toolbarAction; /**< Action for showing/hiding the toolbar */
|
||||||
|
KToggleAction *m_statusbarAction; /**< Action for showing/hiding the statusbar */
|
||||||
|
|
||||||
|
//! Connects all the signals and calls createGUI()
|
||||||
|
void createInterface();
|
||||||
|
//! If the window is being closed with unsaved changes to the document
|
||||||
|
/*!
|
||||||
|
* Asks the user if he wants to save the document if he is closing the window and there are unsaved changes
|
||||||
|
*/
|
||||||
|
bool queryClose();
|
||||||
|
|
||||||
|
// Menu and toolbar operations
|
||||||
|
private slots:
|
||||||
|
//! Used to create a new document (new window)
|
||||||
|
void fileNew();
|
||||||
|
//! Used when exiting the app
|
||||||
|
void quit();
|
||||||
|
|
||||||
|
//! Used to show/hide the toolbar
|
||||||
|
void showToolbar();
|
||||||
|
//! Used to show/hide the statusbar
|
||||||
|
void showStatusbar();
|
||||||
|
//! Used to call the key configuration dialog
|
||||||
|
void configureKeys();
|
||||||
|
//! Used to call the toolbar configuration dialog
|
||||||
|
void configureTB();
|
||||||
|
//! Used to update the toolbar after having changed it
|
||||||
|
void NewTBConfig();
|
||||||
|
//! Used to set a message in the statusbar (used by MainWidget)
|
||||||
|
/*!
|
||||||
|
* \param message The message to show
|
||||||
|
*/
|
||||||
|
void changeStatusbar(QString message);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _POTRACEGUI_H_
|
@ -0,0 +1,16 @@
|
|||||||
|
Begin3
|
||||||
|
Title: potracegui -- Some description
|
||||||
|
Version: 1.3
|
||||||
|
Entered-date:
|
||||||
|
Description:
|
||||||
|
Keywords: KDE Qt
|
||||||
|
Author: Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
Maintained-by: Antonio Fasolato <Antonio.Fasolato@poste.it>
|
||||||
|
Home-page:
|
||||||
|
Alternate-site:
|
||||||
|
Primary-site: ftp://ftp.kde.org/pub/kde/unstable/apps/utils
|
||||||
|
xxxxxx potracegui-1.3.tar.gz
|
||||||
|
xxx potracegui-1.3.lsm
|
||||||
|
Platform: Linux. Needs KDE
|
||||||
|
Copying-policy: GPL
|
||||||
|
End
|
@ -0,0 +1,5 @@
|
|||||||
|
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
||||||
|
<kpartgui name="potracegui" version="1">
|
||||||
|
<MenuBar>
|
||||||
|
</MenuBar>
|
||||||
|
</kpartgui>
|
@ -0,0 +1,19 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
@ -0,0 +1,19 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2004 by Antonio Fasolato *
|
||||||
|
* Antonio.Fasolato@poste.it *
|
||||||
|
* *
|
||||||
|
* 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., *
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
***************************************************************************/
|
Loading…
Reference in new issue