Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>pull/1/head
commit
e822245ef1
@ -0,0 +1,20 @@
|
|||||||
|
0.1:
|
||||||
|
* initial release.
|
||||||
|
|
||||||
|
0.2:
|
||||||
|
* configurable text shadows.
|
||||||
|
* buttons animation support.
|
||||||
|
* buttons shift support.
|
||||||
|
* new theme managemnt tab which lets you install themes in a snap, even from the web.
|
||||||
|
* few other options in the config dialog.
|
||||||
|
|
||||||
|
0.3:
|
||||||
|
* better masking, for how to use it properly look at the Bushido-Yellow-theme inside the tarball.
|
||||||
|
* new hue colorizing method, proposed by Azzali Matteo AKA mattepiu.
|
||||||
|
* if supplied transparent images deKorator will fill it with the style background color, this will allow some "powder" style windec, this idea was proposed by the autor of powder,Remi VillatelAKA Maxilys.
|
||||||
|
* support for title bar wheel mouse action as introduced in kde 3.5.1, patch supplied by Morten Johansson.
|
||||||
|
* global themes support, this feature allows rpms and debs builders to build themes packages as proposed by loki, deKorator will look for the global themes at $KDEDIR/share/apps/deKorator/themes.
|
||||||
|
* much more configureabilty when regarding to active and inactive decos and buttons.
|
||||||
|
* custom colors for buttons.
|
||||||
|
* new theme The K-style:Infinity-theme, done by Zoran Karavla, included in the tarball and shown in the screenshots.
|
||||||
|
* few other options in the config dialog.
|
@ -0,0 +1,275 @@
|
|||||||
|
# Doxyfile 1.4.1-KDevelop
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Project related configuration options
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
PROJECT_NAME = deKorator.kdevelop
|
||||||
|
PROJECT_NUMBER = $VERSION$
|
||||||
|
OUTPUT_DIRECTORY =
|
||||||
|
CREATE_SUBDIRS = NO
|
||||||
|
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 = YES
|
||||||
|
STRIP_FROM_PATH = /home/moty/documents/docs/kwin-example/
|
||||||
|
STRIP_FROM_INC_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
|
||||||
|
EXTRACT_LOCAL_METHODS = NO
|
||||||
|
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
|
||||||
|
SHOW_DIRECTORIES = YES
|
||||||
|
FILE_VERSION_FILTER =
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to warning and progress messages
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
QUIET = NO
|
||||||
|
WARNINGS = YES
|
||||||
|
WARN_IF_UNDOCUMENTED = YES
|
||||||
|
WARN_IF_DOC_ERROR = YES
|
||||||
|
WARN_NO_PARAMDOC = NO
|
||||||
|
WARN_FORMAT = "$file:$line: $text"
|
||||||
|
WARN_LOGFILE =
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# configuration options related to the input files
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
INPUT = /home/moty/workspace/deKorator-0.1
|
||||||
|
FILE_PATTERNS = *.c \
|
||||||
|
*.cc \
|
||||||
|
*.cxx \
|
||||||
|
*.cpp \
|
||||||
|
*.c++ \
|
||||||
|
*.java \
|
||||||
|
*.ii \
|
||||||
|
*.ixx \
|
||||||
|
*.ipp \
|
||||||
|
*.i++ \
|
||||||
|
*.inl \
|
||||||
|
*.h \
|
||||||
|
*.hh \
|
||||||
|
*.hxx \
|
||||||
|
*.hpp \
|
||||||
|
*.h++ \
|
||||||
|
*.idl \
|
||||||
|
*.odl \
|
||||||
|
*.cs \
|
||||||
|
*.php \
|
||||||
|
*.php3 \
|
||||||
|
*.inc \
|
||||||
|
*.m \
|
||||||
|
*.mm \
|
||||||
|
*.dox \
|
||||||
|
*.C \
|
||||||
|
*.CC \
|
||||||
|
*.C++ \
|
||||||
|
*.II \
|
||||||
|
*.I++ \
|
||||||
|
*.H \
|
||||||
|
*.HH \
|
||||||
|
*.H++ \
|
||||||
|
*.CS \
|
||||||
|
*.PHP \
|
||||||
|
*.PHP3 \
|
||||||
|
*.M \
|
||||||
|
*.MM \
|
||||||
|
*.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_PATTERNS =
|
||||||
|
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 = deKorator.tag
|
||||||
|
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
|
||||||
|
GROUP_GRAPHS = YES
|
||||||
|
UML_LOOK = NO
|
||||||
|
TEMPLATE_RELATIONS = NO
|
||||||
|
INCLUDE_GRAPH = YES
|
||||||
|
INCLUDED_BY_GRAPH = YES
|
||||||
|
CALL_GRAPH = NO
|
||||||
|
GRAPHICAL_HIERARCHY = YES
|
||||||
|
DIRECTORY_GRAPH = YES
|
||||||
|
DOT_IMAGE_FORMAT = png
|
||||||
|
DOT_PATH =
|
||||||
|
DOTFILE_DIRS =
|
||||||
|
MAX_DOT_GRAPH_WIDTH = 1024
|
||||||
|
MAX_DOT_GRAPH_HEIGHT = 1024
|
||||||
|
MAX_DOT_GRAPH_DEPTH = 1000
|
||||||
|
DOT_TRANSPARENT = NO
|
||||||
|
DOT_MULTI_TARGETS = NO
|
||||||
|
GENERATE_LEGEND = YES
|
||||||
|
DOT_CLEANUP = YES
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Configuration::additions related to the search engine
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
SEARCHENGINE = NO
|
@ -0,0 +1,94 @@
|
|||||||
|
Example Installation
|
||||||
|
====================
|
||||||
|
|
||||||
|
The example themes requires the KDE 3.2 or greater libraries. This
|
||||||
|
can be found at <http://www.kde.org>. These are also included with
|
||||||
|
many Linux, BSD and Unix systems.
|
||||||
|
|
||||||
|
You also need GNU make, and not your standard make. On many systems,
|
||||||
|
GNU make has been installed as "gmake" If this is your situation,
|
||||||
|
substitute "gmake" for every occurance of "make" in these
|
||||||
|
instructions.
|
||||||
|
|
||||||
|
====================================================================
|
||||||
|
|
||||||
|
To save room in the distribution, the admin directory is not included
|
||||||
|
nor any of its included files. Before you can build the example, this
|
||||||
|
must be added. The simplest way is to copy one over from another KDE
|
||||||
|
package.
|
||||||
|
|
||||||
|
====================================================================
|
||||||
|
|
||||||
|
The themes use the 'configure' script to attempt a reasonable and
|
||||||
|
correct configuration for compilation on your system. It creates an
|
||||||
|
appropriate 'Makefile' for each directory in this package, along with
|
||||||
|
one or more headerfiles containing system-dependent definitions. It
|
||||||
|
also creates 'config.status','config.cache' and 'config.log' files
|
||||||
|
that are useful for recreating or debugging the configuration.
|
||||||
|
|
||||||
|
Sincerely,
|
||||||
|
David Johnson
|
||||||
|
|
||||||
|
Example Installation in a Nutshell:
|
||||||
|
====================================
|
||||||
|
|
||||||
|
1) Type './configure'
|
||||||
|
|
||||||
|
2) Type 'make'
|
||||||
|
|
||||||
|
3) Type 'make install'
|
||||||
|
|
||||||
|
Example Installation in More Detail:
|
||||||
|
=====================================
|
||||||
|
|
||||||
|
0) Make sure that the prerequisite KDE 3.2 development libraries and
|
||||||
|
headers are installed first. These can be found at
|
||||||
|
<http://www.kde.org>.
|
||||||
|
|
||||||
|
1) Unzip and untar the package into its own directory. Change into
|
||||||
|
this directory, and read the README file. (I'm assuming that
|
||||||
|
you've read this, the INSTALL file :-))
|
||||||
|
|
||||||
|
2) Type './configure --help", and peruse the configure options
|
||||||
|
available. It may be necessary to use one or more of these options
|
||||||
|
on your system.
|
||||||
|
|
||||||
|
3) Type './configure' to configure the software for your system. If
|
||||||
|
you're using `csh' on an old version of System V, you might need
|
||||||
|
to type `sh ./configure' instead.
|
||||||
|
|
||||||
|
4) Type 'make' to compile the package.
|
||||||
|
|
||||||
|
5) If you are not logged in as root, type 'su' and enter the root
|
||||||
|
password to switch over to the root account. This is not necessary
|
||||||
|
if you configured the software to install to your home directory/
|
||||||
|
|
||||||
|
6) Type 'make install' to install the software.
|
||||||
|
|
||||||
|
7) Activate the styles, decorations and color schemes through the
|
||||||
|
KDE Control Center or the Preferences menu.
|
||||||
|
|
||||||
|
8) You can uninstall the software by typing 'make uninstall'.
|
||||||
|
|
||||||
|
A Note on the KDE Library
|
||||||
|
========================
|
||||||
|
|
||||||
|
If you are having problems configuring the software, first make sure
|
||||||
|
that the required KDE 3.0 or greater libraries are installed. Several
|
||||||
|
systems have broken this into several packages. You will need both
|
||||||
|
the runtime and the development packages.
|
||||||
|
|
||||||
|
If you still have problems, set the KDEDIR environment variable and
|
||||||
|
the --prefix configure option to the location where you installed
|
||||||
|
KDE. Also makesure that you are using GNU make and not the standard
|
||||||
|
make everyone else uses.
|
||||||
|
|
||||||
|
Rebuilding the Configuration
|
||||||
|
============================
|
||||||
|
|
||||||
|
If you ever need to rebuild the configuration files, type the
|
||||||
|
following in thebase directory of the distribution:
|
||||||
|
make -f Makefile.cvs
|
||||||
|
|
||||||
|
You will need the current automake/autoconf set of programs.
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
SUBDIRS = $(TOPSUBDIRS)
|
||||||
|
|
||||||
|
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||||
|
|
||||||
|
EXTRA_DIST = Makefile.cvs admin
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
$(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
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||||
|
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
@ -0,0 +1,7 @@
|
|||||||
|
all:
|
||||||
|
$(MAKE) -f admin/Makefile.common cvs
|
||||||
|
|
||||||
|
dist:
|
||||||
|
$(MAKE) -f admin/Makefile.common dist
|
||||||
|
|
||||||
|
.SILENT:
|
@ -0,0 +1,868 @@
|
|||||||
|
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||||
|
# KDE tags expanded automatically by am_edit - $Revision: 435799 $
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004, 2005 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@
|
||||||
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
|
$(top_srcdir)/configure AUTHORS INSTALL admin/compile \
|
||||||
|
admin/config.guess admin/config.sub admin/depcomp \
|
||||||
|
admin/install-sh admin/ltmain.sh admin/missing \
|
||||||
|
admin/mkinstalldirs admin/ylwrap
|
||||||
|
subdir = .
|
||||||
|
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)
|
||||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
|
configure.lineno configure.status.lineno
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
SOURCES =
|
||||||
|
DIST_SOURCES =
|
||||||
|
#>- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||||
|
#>- html-recursive info-recursive install-data-recursive \
|
||||||
|
#>- install-exec-recursive install-info-recursive \
|
||||||
|
#>- install-recursive installcheck-recursive installdirs-recursive \
|
||||||
|
#>- pdf-recursive ps-recursive uninstall-info-recursive \
|
||||||
|
#>- uninstall-recursive
|
||||||
|
#>+ 6
|
||||||
|
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||||
|
html-recursive info-recursive install-data-recursive \
|
||||||
|
install-exec-recursive install-info-recursive \
|
||||||
|
install-recursive installcheck-recursive installdirs-recursive \
|
||||||
|
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||||
|
uninstall-recursive nmcheck-recursive bcheck-recursive
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
DIST_SUBDIRS = $(SUBDIRS)
|
||||||
|
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
#>+ 1
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
am__remove_distdir = \
|
||||||
|
{ test ! -d $(distdir) \
|
||||||
|
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
|
&& rm -fr $(distdir); }; }
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.gz
|
||||||
|
GZIP_ENV = --best
|
||||||
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
distcleancheck_listfiles = find . -type f -print
|
||||||
|
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@
|
||||||
|
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||||
|
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_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||||
|
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_FPIE = @KDE_USE_FPIE@
|
||||||
|
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||||
|
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||||
|
KDE_USE_PIE = @KDE_USE_PIE@
|
||||||
|
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||||
|
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||||
|
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_KDED = @LIB_KDED@
|
||||||
|
LIB_KDEPIM = @LIB_KDEPIM@
|
||||||
|
LIB_KDEPRINT = @LIB_KDEPRINT@
|
||||||
|
LIB_KDEUI = @LIB_KDEUI@
|
||||||
|
LIB_KDNSSD = @LIB_KDNSSD@
|
||||||
|
LIB_KFILE = @LIB_KFILE@
|
||||||
|
LIB_KFM = @LIB_KFM@
|
||||||
|
LIB_KHTML = @LIB_KHTML@
|
||||||
|
LIB_KIMPROXY = @LIB_KIMPROXY@
|
||||||
|
LIB_KIO = @LIB_KIO@
|
||||||
|
LIB_KJS = @LIB_KJS@
|
||||||
|
LIB_KNEWSTUFF = @LIB_KNEWSTUFF@
|
||||||
|
LIB_KPARTS = @LIB_KPARTS@
|
||||||
|
LIB_KSPELL = @LIB_KSPELL@
|
||||||
|
LIB_KSYCOCA = @LIB_KSYCOCA@
|
||||||
|
LIB_KUNITTEST = @LIB_KUNITTEST@
|
||||||
|
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@
|
||||||
|
MAKEKDEWIDGETS = @MAKEKDEWIDGETS@
|
||||||
|
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@
|
||||||
|
include_x11_FALSE = @include_x11_FALSE@
|
||||||
|
include_x11_TRUE = @include_x11_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@
|
||||||
|
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||||
|
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||||
|
x_includes = @x_includes@
|
||||||
|
x_libraries = @x_libraries@
|
||||||
|
xdg_appsdir = @xdg_appsdir@
|
||||||
|
xdg_directorydir = @xdg_directorydir@
|
||||||
|
xdg_menudir = @xdg_menudir@
|
||||||
|
SUBDIRS = $(TOPSUBDIRS)
|
||||||
|
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||||
|
EXTRA_DIST = Makefile.cvs admin
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
#>- all: config.h
|
||||||
|
#>+ 1
|
||||||
|
all: docs-am config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
am--refresh:
|
||||||
|
@:
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
#>- @for dep in $?; do \
|
||||||
|
#>- case '$(am__configure_deps)' in \
|
||||||
|
#>- *$$dep*) \
|
||||||
|
#>- echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||||
|
#>- cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||||
|
#>- && exit 0; \
|
||||||
|
#>- exit 1;; \
|
||||||
|
#>- esac; \
|
||||||
|
#>- done; \
|
||||||
|
#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||||
|
#>- cd $(top_srcdir) && \
|
||||||
|
#>- $(AUTOMAKE) --foreign Makefile
|
||||||
|
#>+ 14
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||||
|
( \
|
||||||
|
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||||
|
) || exit 1; echo ' cd $(top_srcdir) && perl admin/am_edit '; cd $(top_srcdir) && perl admin/am_edit && exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit Makefile.in
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
echo ' $(SHELL) ./config.status'; \
|
||||||
|
$(SHELL) ./config.status;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
#>- cd $(srcdir) && $(AUTOCONF)
|
||||||
|
#>+ 2
|
||||||
|
cd $(srcdir) && rm -f configure
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
|
||||||
|
config.h: stamp-h1
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h1; \
|
||||||
|
$(MAKE) stamp-h1; \
|
||||||
|
else :; fi
|
||||||
|
|
||||||
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
@rm -f stamp-h1
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||||
|
$(srcdir)/config.h.in: $(am__configure_deps)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
rm -f stamp-h1
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h stamp-h1
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
-rm -f libtool
|
||||||
|
uninstall-info-am:
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
$(RECURSIVE_TARGETS):
|
||||||
|
@failcom='exit 1'; \
|
||||||
|
for f in x $$MAKEFLAGS; do \
|
||||||
|
case $$f in \
|
||||||
|
*=* | --[!k]*);; \
|
||||||
|
*k*) failcom='fail=yes';; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| eval $$failcom; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@failcom='exit 1'; \
|
||||||
|
for f in x $$MAKEFLAGS; do \
|
||||||
|
case $$f in \
|
||||||
|
*=* | --[!k]*);; \
|
||||||
|
*k*) failcom='fail=yes';; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
dot_seen=no; \
|
||||||
|
case "$@" in \
|
||||||
|
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||||
|
*) list='$(SUBDIRS)' ;; \
|
||||||
|
esac; \
|
||||||
|
rev=''; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = "."; then :; else \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
rev="$$rev ."; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| eval $$failcom; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
ctags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||||
|
include_option=--etags-include; \
|
||||||
|
empty_fix=.; \
|
||||||
|
else \
|
||||||
|
include_option=--include; \
|
||||||
|
empty_fix=; \
|
||||||
|
fi; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test ! -f $$subdir/TAGS || \
|
||||||
|
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$tags $$unique; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$tags $$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& cd $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) $$here
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
$(mkdir_p) $(distdir)/admin
|
||||||
|
@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
|
||||||
|
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d "$(distdir)/$$subdir" \
|
||||||
|
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||||
|
|| exit 1; \
|
||||||
|
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||||
|
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||||
|
(cd $$subdir && \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
top_distdir="$$top_distdir" \
|
||||||
|
distdir="$$distdir/$$subdir" \
|
||||||
|
distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||||
|
dist-hook
|
||||||
|
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||||
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||||
|
|| chmod -R a+r $(distdir)
|
||||||
|
dist-gzip: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-bzip2: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-tarZ: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-shar: distdir
|
||||||
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-zip: distdir
|
||||||
|
-rm -f $(distdir).zip
|
||||||
|
zip -rq $(distdir).zip $(distdir)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist dist-all: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
case '$(DIST_ARCHIVES)' in \
|
||||||
|
*.tar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||||
|
*.tar.bz2*) \
|
||||||
|
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||||
|
*.tar.Z*) \
|
||||||
|
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||||
|
*.shar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||||
|
*.zip*) \
|
||||||
|
unzip $(distdir).zip ;;\
|
||||||
|
esac
|
||||||
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
|
mkdir $(distdir)/_build
|
||||||
|
mkdir $(distdir)/_inst
|
||||||
|
chmod a-w $(distdir)
|
||||||
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||||
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||||
|
&& cd $(distdir)/_build \
|
||||||
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||||
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||||
|
distuninstallcheck \
|
||||||
|
&& chmod -R a-w "$$dc_install_base" \
|
||||||
|
&& ({ \
|
||||||
|
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||||
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||||
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||||
|
&& rm -rf "$$dc_destdir" \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||||
|
&& rm -rf $(DIST_ARCHIVES) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||||
|
$(am__remove_distdir)
|
||||||
|
@(echo "$(distdir) archives ready for distribution: "; \
|
||||||
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
|
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||||
|
distuninstallcheck:
|
||||||
|
@cd $(distuninstallcheck_dir) \
|
||||||
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||||
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||||
|
if test -n "$(DESTDIR)"; then \
|
||||||
|
echo " (check DESTDIR support)"; \
|
||||||
|
fi ; \
|
||||||
|
$(distuninstallcheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
distcleancheck: distclean
|
||||||
|
@if test '$(srcdir)' = . ; then \
|
||||||
|
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi
|
||||||
|
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||||
|
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||||
|
$(distcleancheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
all-am: Makefile config.h
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
install: install-recursive
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
install-data: install-data-recursive
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
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."
|
||||||
|
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
||||||
|
#>- clean: clean-recursive
|
||||||
|
#>+ 1
|
||||||
|
clean: kde-rpo-clean clean-recursive
|
||||||
|
|
||||||
|
#>- clean-am: clean-generic clean-libtool mostlyclean-am
|
||||||
|
#>+ 1
|
||||||
|
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||||
|
distclean-libtool distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-recursive
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-recursive
|
||||||
|
|
||||||
|
info: info-recursive
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
||||||
|
install-info: install-info-recursive
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf $(top_srcdir)/autom4te.cache
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||||
|
|
||||||
|
pdf: pdf-recursive
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-recursive
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-info-am
|
||||||
|
|
||||||
|
uninstall-info: uninstall-info-recursive
|
||||||
|
|
||||||
|
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
|
||||||
|
check-am clean clean-generic clean-libtool clean-recursive \
|
||||||
|
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
|
||||||
|
dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||||
|
distclean-generic distclean-hdr distclean-libtool \
|
||||||
|
distclean-recursive distclean-tags distcleancheck distdir \
|
||||||
|
distuninstallcheck 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 \
|
||||||
|
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||||
|
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||||
|
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||||
|
tags tags-recursive uninstall uninstall-am uninstall-info-am
|
||||||
|
|
||||||
|
|
||||||
|
$(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
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||||
|
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
||||||
|
# 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=stamp-h.in deKorator.kdevses subdirs Makefile.in deKorator.kdevelop.pcs configure.files config.h.in configure.in aclocal.m4 Doxyfile configure.in.in Makefile.am configure acinclude.m4 deKorator.kdevelop
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
docs-am:
|
||||||
|
|
||||||
|
#>+ 7
|
||||||
|
force-reedit:
|
||||||
|
\
|
||||||
|
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||||
|
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 21
|
||||||
|
clean-bcheck:
|
||||||
|
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||||
|
|
||||||
|
bcheck: bcheck-recursive
|
||||||
|
|
||||||
|
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) $(CXXFLAGS) $(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
|
||||||
|
kde-rpo-clean:
|
||||||
|
-rm -f *.rpo
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
nmcheck:
|
||||||
|
nmcheck-am: nmcheck
|
@ -0,0 +1,8 @@
|
|||||||
|
this is the deKorator kwin deco,
|
||||||
|
deKorator is based on the HOWTO: KWin Window Manager Decorations posted in here: http://kde-look.org/content/show.php?content=6332
|
||||||
|
and done by Brandybuck, 10x david:)
|
||||||
|
the man that responsiable for all the art design is jon clarke AKA ArbitraryReason.
|
||||||
|
the nice thing about deKorator is that it loads the images from
|
||||||
|
some user defined directory(something quiet similar to what iceWM is doing ),
|
||||||
|
thats means that everything is themeable with no time and no programming knowledge is needed.
|
||||||
|
one thing to note is that if u would like to see the changes instantly when designing the tiles, u need to run "kwin --replace&".
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,863 @@
|
|||||||
|
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||||
|
# 2005 Free Software Foundation, Inc.
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# AM_AUTOMAKE_VERSION(VERSION)
|
||||||
|
# ----------------------------
|
||||||
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||||
|
# generated from the m4 files accompanying Automake X.Y.
|
||||||
|
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
||||||
|
|
||||||
|
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||||
|
# -------------------------------
|
||||||
|
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||||
|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||||
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||||
|
[AM_AUTOMAKE_VERSION([1.9.6])])
|
||||||
|
|
||||||
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||||
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||||
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||||
|
#
|
||||||
|
# Of course, Automake must honor this variable whenever it calls a
|
||||||
|
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||||
|
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||||
|
# depending on how configure is run. This is pretty annoying, since
|
||||||
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||||
|
# source directory, any form will work fine, but in subdirectories a
|
||||||
|
# relative path needs to be adjusted first.
|
||||||
|
#
|
||||||
|
# $ac_aux_dir/missing
|
||||||
|
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||||
|
# $top_srcdir/$ac_aux_dir/missing
|
||||||
|
# fails if $ac_aux_dir is absolute,
|
||||||
|
# fails when called from a subdirectory in a VPATH build with
|
||||||
|
# a relative $ac_aux_dir
|
||||||
|
#
|
||||||
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||||
|
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||||
|
# harmless because $srcdir is `.', but things will broke when you
|
||||||
|
# start a VPATH build or use an absolute $srcdir.
|
||||||
|
#
|
||||||
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||||
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||||
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||||
|
# and then we would define $MISSING as
|
||||||
|
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||||
|
# This will work as long as MISSING is not called from configure, because
|
||||||
|
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||||
|
# However there are other variables, like CC, which are often used in
|
||||||
|
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||||
|
#
|
||||||
|
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||||
|
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||||
|
# configured tree to be moved without reconfiguration.
|
||||||
|
|
||||||
|
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||||
|
[dnl Rely on autoconf to set up CDPATH properly.
|
||||||
|
AC_PREREQ([2.50])dnl
|
||||||
|
# expand $ac_aux_dir to an absolute path
|
||||||
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
])
|
||||||
|
|
||||||
|
# AM_CONDITIONAL -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 7
|
||||||
|
|
||||||
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||||
|
# -------------------------------------
|
||||||
|
# Define a conditional.
|
||||||
|
AC_DEFUN([AM_CONDITIONAL],
|
||||||
|
[AC_PREREQ(2.52)dnl
|
||||||
|
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||||
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||||
|
AC_SUBST([$1_TRUE])
|
||||||
|
AC_SUBST([$1_FALSE])
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi
|
||||||
|
AC_CONFIG_COMMANDS_PRE(
|
||||||
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||||
|
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally.]])
|
||||||
|
fi])])
|
||||||
|
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 8
|
||||||
|
|
||||||
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||||
|
# written in clear, in which case automake, when reading aclocal.m4,
|
||||||
|
# will think it sees a *use*, and therefore will trigger all it's
|
||||||
|
# C support machinery. Also note that it means that autoscan, seeing
|
||||||
|
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||||
|
|
||||||
|
|
||||||
|
# _AM_DEPENDENCIES(NAME)
|
||||||
|
# ----------------------
|
||||||
|
# See how the compiler implements dependency checking.
|
||||||
|
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||||
|
# We try a few techniques and use that to set a single cache variable.
|
||||||
|
#
|
||||||
|
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||||
|
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||||
|
# dependency, and given that the user is not expected to run this macro,
|
||||||
|
# just rely on AC_PROG_CC.
|
||||||
|
AC_DEFUN([_AM_DEPENDENCIES],
|
||||||
|
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||||
|
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||||
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||||
|
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||||
|
|
||||||
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||||
|
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||||
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||||
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||||
|
[depcc="$$1" am_compiler_list=])
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([dependency style of $depcc],
|
||||||
|
[am_cv_$1_dependencies_compiler_type],
|
||||||
|
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||||
|
# We make a subdir and do the tests there. Otherwise we can end up
|
||||||
|
# making bogus files that we don't know about and never remove. For
|
||||||
|
# instance it was reported that on HP-UX the gcc test will end up
|
||||||
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||||
|
# in D'.
|
||||||
|
mkdir conftest.dir
|
||||||
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||||
|
# using a relative directory.
|
||||||
|
cp "$am_depcomp" conftest.dir
|
||||||
|
cd conftest.dir
|
||||||
|
# We will build objects and dependencies in a subdirectory because
|
||||||
|
# it helps to detect inapplicable dependency modes. For instance
|
||||||
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||||
|
# side effect of compilation, but ICC will put the dependencies in
|
||||||
|
# the current directory while Tru64 will put them in the object
|
||||||
|
# directory.
|
||||||
|
mkdir sub
|
||||||
|
|
||||||
|
am_cv_$1_dependencies_compiler_type=none
|
||||||
|
if test "$am_compiler_list" = ""; then
|
||||||
|
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||||
|
fi
|
||||||
|
for depmode in $am_compiler_list; do
|
||||||
|
# Setup a source with many dependencies, because some compilers
|
||||||
|
# like to wrap large dependency lists on column 80 (with \), and
|
||||||
|
# we should not choose a depcomp mode which is confused by this.
|
||||||
|
#
|
||||||
|
# We need to recreate these files for each test, as the compiler may
|
||||||
|
# overwrite some of them when testing with obscure command lines.
|
||||||
|
# This happens at least with the AIX C compiler.
|
||||||
|
: > sub/conftest.c
|
||||||
|
for i in 1 2 3 4 5 6; do
|
||||||
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||||
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||||
|
# Solaris 8's {/usr,}/bin/sh.
|
||||||
|
touch sub/conftst$i.h
|
||||||
|
done
|
||||||
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||||
|
|
||||||
|
case $depmode in
|
||||||
|
nosideeffect)
|
||||||
|
# after this tag, mechanisms are not by side-effect, so they'll
|
||||||
|
# only be used when explicitly requested
|
||||||
|
if test "x$enable_dependency_tracking" = xyes; then
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
none) break ;;
|
||||||
|
esac
|
||||||
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||||
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||||
|
# handle `-M -o', and we need to detect this.
|
||||||
|
if depmode=$depmode \
|
||||||
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
||||||
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||||
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
||||||
|
>/dev/null 2>conftest.err &&
|
||||||
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||||
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||||
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||||
|
# icc doesn't choke on unknown options, it will just issue warnings
|
||||||
|
# or remarks (even with -Werror). So we grep stderr for any message
|
||||||
|
# that says an option was ignored or not supported.
|
||||||
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||||
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||||
|
# The diagnosis changed in icc 8.0:
|
||||||
|
# icc: Command line remark: option '-MP' not supported
|
||||||
|
if (grep 'ignoring option' conftest.err ||
|
||||||
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||||
|
am_cv_$1_dependencies_compiler_type=$depmode
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf conftest.dir
|
||||||
|
else
|
||||||
|
am_cv_$1_dependencies_compiler_type=none
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||||
|
AM_CONDITIONAL([am__fastdep$1], [
|
||||||
|
test "x$enable_dependency_tracking" != xno \
|
||||||
|
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AM_SET_DEPDIR
|
||||||
|
# -------------
|
||||||
|
# Choose a directory name for dependency files.
|
||||||
|
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||||
|
AC_DEFUN([AM_SET_DEPDIR],
|
||||||
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||||
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AM_DEP_TRACK
|
||||||
|
# ------------
|
||||||
|
AC_DEFUN([AM_DEP_TRACK],
|
||||||
|
[AC_ARG_ENABLE(dependency-tracking,
|
||||||
|
[ --disable-dependency-tracking speeds up one-time build
|
||||||
|
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||||
|
if test "x$enable_dependency_tracking" != xno; then
|
||||||
|
am_depcomp="$ac_aux_dir/depcomp"
|
||||||
|
AMDEPBACKSLASH='\'
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||||
|
AC_SUBST([AMDEPBACKSLASH])
|
||||||
|
])
|
||||||
|
|
||||||
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
#serial 3
|
||||||
|
|
||||||
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||||
|
# ------------------------------
|
||||||
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||||
|
[for mf in $CONFIG_FILES; do
|
||||||
|
# Strip MF so we end up with the name of the file.
|
||||||
|
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||||
|
# Check whether this is an Automake generated Makefile or not.
|
||||||
|
# We used to match only the files named `Makefile.in', but
|
||||||
|
# some people rename them; so instead we look at the file content.
|
||||||
|
# Grep'ing the first line is not enough: some people post-process
|
||||||
|
# each Makefile.in and add a new line on top of each file to say so.
|
||||||
|
# So let's grep whole file.
|
||||||
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
||||||
|
dirpart=`AS_DIRNAME("$mf")`
|
||||||
|
else
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||||
|
# from the Makefile without running `make'.
|
||||||
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||||
|
test -z "$DEPDIR" && continue
|
||||||
|
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||||
|
test -z "am__include" && continue
|
||||||
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||||
|
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||||
|
U=`sed -n 's/^U = //p' < "$mf"`
|
||||||
|
# Find all dependency output files, they are included files with
|
||||||
|
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||||
|
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||||
|
# expansion.
|
||||||
|
for file in `sed -n "
|
||||||
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||||
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||||
|
# Make sure the directory exists.
|
||||||
|
test -f "$dirpart/$file" && continue
|
||||||
|
fdir=`AS_DIRNAME(["$file"])`
|
||||||
|
AS_MKDIR_P([$dirpart/$fdir])
|
||||||
|
# echo "creating $dirpart/$file"
|
||||||
|
echo '# dummy' > "$dirpart/$file"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||||
|
|
||||||
|
|
||||||
|
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||||
|
# -----------------------------
|
||||||
|
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||||
|
#
|
||||||
|
# This code is only required when automatic dependency tracking
|
||||||
|
# is enabled. FIXME. This creates each `.P' file that we will
|
||||||
|
# need in order to bootstrap the dependency handling code.
|
||||||
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||||
|
[AC_CONFIG_COMMANDS([depfiles],
|
||||||
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||||
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||||
|
])
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 8
|
||||||
|
|
||||||
|
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
||||||
|
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
||||||
|
|
||||||
|
# Do all the work for Automake. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 12
|
||||||
|
|
||||||
|
# This macro actually does too much. Some checks are only needed if
|
||||||
|
# your package does certain things. But this isn't really a big deal.
|
||||||
|
|
||||||
|
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||||
|
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||||
|
# -----------------------------------------------
|
||||||
|
# The call with PACKAGE and VERSION arguments is the old style
|
||||||
|
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||||
|
# and VERSION should now be passed to AC_INIT and removed from
|
||||||
|
# the call to AM_INIT_AUTOMAKE.
|
||||||
|
# We support both call styles for the transition. After
|
||||||
|
# the next Automake release, Autoconf can make the AC_INIT
|
||||||
|
# arguments mandatory, and then we can depend on a new Autoconf
|
||||||
|
# release and drop the old call support.
|
||||||
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||||
|
[AC_PREREQ([2.58])dnl
|
||||||
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||||
|
dnl the ones we care about.
|
||||||
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||||
|
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||||
|
# test to see if srcdir already configured
|
||||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||||
|
test -f $srcdir/config.status; then
|
||||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||||
|
fi
|
||||||
|
|
||||||
|
# test whether we have cygpath
|
||||||
|
if test -z "$CYGPATH_W"; then
|
||||||
|
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||||
|
CYGPATH_W='cygpath -w'
|
||||||
|
else
|
||||||
|
CYGPATH_W=echo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST([CYGPATH_W])
|
||||||
|
|
||||||
|
# Define the identity of the package.
|
||||||
|
dnl Distinguish between old-style and new-style calls.
|
||||||
|
m4_ifval([$2],
|
||||||
|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||||
|
AC_SUBST([PACKAGE], [$1])dnl
|
||||||
|
AC_SUBST([VERSION], [$2])],
|
||||||
|
[_AM_SET_OPTIONS([$1])dnl
|
||||||
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||||
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||||
|
|
||||||
|
_AM_IF_OPTION([no-define],,
|
||||||
|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||||
|
|
||||||
|
# Some tools Automake needs.
|
||||||
|
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||||
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||||
|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||||
|
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||||
|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||||
|
AM_PROG_INSTALL_SH
|
||||||
|
AM_PROG_INSTALL_STRIP
|
||||||
|
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||||
|
# We need awk for the "check" target. The system "awk" is bad on
|
||||||
|
# some platforms.
|
||||||
|
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||||
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||||
|
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
||||||
|
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
||||||
|
[_AM_PROG_TAR([v7])])])
|
||||||
|
_AM_IF_OPTION([no-dependencies],,
|
||||||
|
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||||
|
[_AM_DEPENDENCIES(CC)],
|
||||||
|
[define([AC_PROG_CC],
|
||||||
|
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||||
|
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||||
|
[_AM_DEPENDENCIES(CXX)],
|
||||||
|
[define([AC_PROG_CXX],
|
||||||
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# When config.status generates a header, we must update the stamp-h file.
|
||||||
|
# This file resides in the same directory as the config header
|
||||||
|
# that is generated. The stamp files are numbered to have different names.
|
||||||
|
|
||||||
|
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||||
|
# loop where config.status creates the headers, so we can generate
|
||||||
|
# our stamp files there.
|
||||||
|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||||
|
[# Compute $1's index in $config_headers.
|
||||||
|
_am_stamp_count=1
|
||||||
|
for _am_header in $config_headers :; do
|
||||||
|
case $_am_header in
|
||||||
|
$1 | $1:* )
|
||||||
|
break ;;
|
||||||
|
* )
|
||||||
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# AM_PROG_INSTALL_SH
|
||||||
|
# ------------------
|
||||||
|
# Define $install_sh.
|
||||||
|
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||||
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||||
|
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||||
|
AC_SUBST(install_sh)])
|
||||||
|
|
||||||
|
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 2
|
||||||
|
|
||||||
|
# Check whether the underlying file-system supports filenames
|
||||||
|
# with a leading dot. For instance MS-DOS doesn't.
|
||||||
|
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||||
|
[rm -rf .tst 2>/dev/null
|
||||||
|
mkdir .tst 2>/dev/null
|
||||||
|
if test -d .tst; then
|
||||||
|
am__leading_dot=.
|
||||||
|
else
|
||||||
|
am__leading_dot=_
|
||||||
|
fi
|
||||||
|
rmdir .tst 2>/dev/null
|
||||||
|
AC_SUBST([am__leading_dot])])
|
||||||
|
|
||||||
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 3
|
||||||
|
|
||||||
|
# AM_MAKE_INCLUDE()
|
||||||
|
# -----------------
|
||||||
|
# Check to see how make treats includes.
|
||||||
|
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||||
|
[am_make=${MAKE-make}
|
||||||
|
cat > confinc << 'END'
|
||||||
|
am__doit:
|
||||||
|
@echo done
|
||||||
|
.PHONY: am__doit
|
||||||
|
END
|
||||||
|
# If we don't find an include directive, just comment out the code.
|
||||||
|
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||||
|
am__include="#"
|
||||||
|
am__quote=
|
||||||
|
_am_result=none
|
||||||
|
# First try GNU make style include.
|
||||||
|
echo "include confinc" > confmf
|
||||||
|
# We grep out `Entering directory' and `Leaving directory'
|
||||||
|
# messages which can occur if `w' ends up in MAKEFLAGS.
|
||||||
|
# In particular we don't look at `^make:' because GNU make might
|
||||||
|
# be invoked under some other name (usually "gmake"), in which
|
||||||
|
# case it prints its new name instead of `make'.
|
||||||
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
||||||
|
am__include=include
|
||||||
|
am__quote=
|
||||||
|
_am_result=GNU
|
||||||
|
fi
|
||||||
|
# Now try BSD make style include.
|
||||||
|
if test "$am__include" = "#"; then
|
||||||
|
echo '.include "confinc"' > confmf
|
||||||
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||||
|
am__include=.include
|
||||||
|
am__quote="\""
|
||||||
|
_am_result=BSD
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST([am__include])
|
||||||
|
AC_SUBST([am__quote])
|
||||||
|
AC_MSG_RESULT([$_am_result])
|
||||||
|
rm -f confinc confmf
|
||||||
|
])
|
||||||
|
|
||||||
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 4
|
||||||
|
|
||||||
|
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||||
|
# ------------------------------
|
||||||
|
AC_DEFUN([AM_MISSING_PROG],
|
||||||
|
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||||
|
$1=${$1-"${am_missing_run}$2"}
|
||||||
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
|
||||||
|
# AM_MISSING_HAS_RUN
|
||||||
|
# ------------------
|
||||||
|
# Define MISSING if not defined so far and test if it supports --run.
|
||||||
|
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||||
|
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||||
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||||
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
||||||
|
# Use eval to expand $SHELL
|
||||||
|
if eval "$MISSING --run true"; then
|
||||||
|
am_missing_run="$MISSING --run "
|
||||||
|
else
|
||||||
|
am_missing_run=
|
||||||
|
AC_MSG_WARN([`missing' script is too old or missing])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# AM_PROG_MKDIR_P
|
||||||
|
# ---------------
|
||||||
|
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
||||||
|
#
|
||||||
|
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
||||||
|
# created by `make install' are always world readable, even if the
|
||||||
|
# installer happens to have an overly restrictive umask (e.g. 077).
|
||||||
|
# This was a mistake. There are at least two reasons why we must not
|
||||||
|
# use `-m 0755':
|
||||||
|
# - it causes special bits like SGID to be ignored,
|
||||||
|
# - it may be too restrictive (some setups expect 775 directories).
|
||||||
|
#
|
||||||
|
# Do not use -m 0755 and let people choose whatever they expect by
|
||||||
|
# setting umask.
|
||||||
|
#
|
||||||
|
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
||||||
|
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
||||||
|
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
||||||
|
# concurrently, both version can detect that a/ is missing, but only
|
||||||
|
# one can create it and the other will error out. Consequently we
|
||||||
|
# restrict ourselves to GNU make (using the --version option ensures
|
||||||
|
# this.)
|
||||||
|
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||||
|
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||||
|
# We used to keeping the `.' as first argument, in order to
|
||||||
|
# allow $(mkdir_p) to be used without argument. As in
|
||||||
|
# $(mkdir_p) $(somedir)
|
||||||
|
# where $(somedir) is conditionally defined. However this is wrong
|
||||||
|
# for two reasons:
|
||||||
|
# 1. if the package is installed by a user who cannot write `.'
|
||||||
|
# make install will fail,
|
||||||
|
# 2. the above comment should most certainly read
|
||||||
|
# $(mkdir_p) $(DESTDIR)$(somedir)
|
||||||
|
# so it does not work when $(somedir) is undefined and
|
||||||
|
# $(DESTDIR) is not.
|
||||||
|
# To support the latter case, we have to write
|
||||||
|
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
||||||
|
# so the `.' trick is pointless.
|
||||||
|
mkdir_p='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.
|
||||||
|
for d in ./-p ./--version;
|
||||||
|
do
|
||||||
|
test -d $d && rmdir $d
|
||||||
|
done
|
||||||
|
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||||
|
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||||
|
mkdir_p='$(mkinstalldirs)'
|
||||||
|
else
|
||||||
|
mkdir_p='$(install_sh) -d'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST([mkdir_p])])
|
||||||
|
|
||||||
|
# Helper functions for option handling. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 3
|
||||||
|
|
||||||
|
# _AM_MANGLE_OPTION(NAME)
|
||||||
|
# -----------------------
|
||||||
|
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||||
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||||
|
|
||||||
|
# _AM_SET_OPTION(NAME)
|
||||||
|
# ------------------------------
|
||||||
|
# Set option NAME. Presently that only means defining a flag for this option.
|
||||||
|
AC_DEFUN([_AM_SET_OPTION],
|
||||||
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||||
|
|
||||||
|
# _AM_SET_OPTIONS(OPTIONS)
|
||||||
|
# ----------------------------------
|
||||||
|
# OPTIONS is a space-separated list of Automake options.
|
||||||
|
AC_DEFUN([_AM_SET_OPTIONS],
|
||||||
|
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||||
|
|
||||||
|
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||||
|
# -------------------------------------------
|
||||||
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||||
|
AC_DEFUN([_AM_IF_OPTION],
|
||||||
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||||
|
|
||||||
|
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 4
|
||||||
|
|
||||||
|
# AM_SANITY_CHECK
|
||||||
|
# ---------------
|
||||||
|
AC_DEFUN([AM_SANITY_CHECK],
|
||||||
|
[AC_MSG_CHECKING([whether build environment is sane])
|
||||||
|
# Just in case
|
||||||
|
sleep 1
|
||||||
|
echo timestamp > conftest.file
|
||||||
|
# Do `set' in a subshell so we don't clobber the current shell's
|
||||||
|
# arguments. Must try -L first in case configure is actually a
|
||||||
|
# symlink; some systems play weird games with the mod time of symlinks
|
||||||
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||||
|
# directory).
|
||||||
|
if (
|
||||||
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
||||||
|
if test "$[*]" = "X"; then
|
||||||
|
# -L didn't work.
|
||||||
|
set X `ls -t $srcdir/configure conftest.file`
|
||||||
|
fi
|
||||||
|
rm -f conftest.file
|
||||||
|
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||||
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||||
|
|
||||||
|
# If neither matched, then we have a broken ls. This can happen
|
||||||
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||||
|
# broken ls alias from the environment. This has actually
|
||||||
|
# happened. Such a system could not be considered "sane".
|
||||||
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||||
|
alias in your environment])
|
||||||
|
fi
|
||||||
|
|
||||||
|
test "$[2]" = conftest.file
|
||||||
|
)
|
||||||
|
then
|
||||||
|
# Ok.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||||
|
Check your system clock])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# AM_PROG_INSTALL_STRIP
|
||||||
|
# ---------------------
|
||||||
|
# One issue with vendor `install' (even GNU) is that you can't
|
||||||
|
# specify the program used to strip binaries. This is especially
|
||||||
|
# annoying in cross-compiling environments, where the build's strip
|
||||||
|
# is unlikely to handle the host's binaries.
|
||||||
|
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||||
|
# always use install-sh in `make install-strip', and initialize
|
||||||
|
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||||
|
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||||
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||||
|
# Installed binaries are usually stripped using `strip' when the user
|
||||||
|
# run `make install-strip'. However `strip' might not be the right
|
||||||
|
# tool to use in cross-compilation environments, therefore Automake
|
||||||
|
# will honor the `STRIP' environment variable to overrule this program.
|
||||||
|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||||
|
if test "$cross_compiling" != no; then
|
||||||
|
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||||
|
fi
|
||||||
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
||||||
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||||
|
|
||||||
|
# Check how to create a tarball. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file 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.
|
||||||
|
|
||||||
|
# serial 2
|
||||||
|
|
||||||
|
# _AM_PROG_TAR(FORMAT)
|
||||||
|
# --------------------
|
||||||
|
# Check how to create a tarball in format FORMAT.
|
||||||
|
# FORMAT should be one of `v7', `ustar', or `pax'.
|
||||||
|
#
|
||||||
|
# Substitute a variable $(am__tar) that is a command
|
||||||
|
# writing to stdout a FORMAT-tarball containing the directory
|
||||||
|
# $tardir.
|
||||||
|
# tardir=directory && $(am__tar) > result.tar
|
||||||
|
#
|
||||||
|
# Substitute a variable $(am__untar) that extract such
|
||||||
|
# a tarball read from stdin.
|
||||||
|
# $(am__untar) < result.tar
|
||||||
|
AC_DEFUN([_AM_PROG_TAR],
|
||||||
|
[# Always define AMTAR for backward compatibility.
|
||||||
|
AM_MISSING_PROG([AMTAR], [tar])
|
||||||
|
m4_if([$1], [v7],
|
||||||
|
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
||||||
|
[m4_case([$1], [ustar],, [pax],,
|
||||||
|
[m4_fatal([Unknown tar format])])
|
||||||
|
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||||
|
# Loop over all known methods to create a tar archive until one works.
|
||||||
|
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
||||||
|
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
||||||
|
# Do not fold the above two line into one, because Tru64 sh and
|
||||||
|
# Solaris sh will not grok spaces in the rhs of `-'.
|
||||||
|
for _am_tool in $_am_tools
|
||||||
|
do
|
||||||
|
case $_am_tool in
|
||||||
|
gnutar)
|
||||||
|
for _am_tar in tar gnutar gtar;
|
||||||
|
do
|
||||||
|
AM_RUN_LOG([$_am_tar --version]) && break
|
||||||
|
done
|
||||||
|
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
||||||
|
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
||||||
|
am__untar="$_am_tar -xf -"
|
||||||
|
;;
|
||||||
|
plaintar)
|
||||||
|
# Must skip GNU tar: if it does not support --format= it doesn't create
|
||||||
|
# ustar tarball either.
|
||||||
|
(tar --version) >/dev/null 2>&1 && continue
|
||||||
|
am__tar='tar chf - "$$tardir"'
|
||||||
|
am__tar_='tar chf - "$tardir"'
|
||||||
|
am__untar='tar xf -'
|
||||||
|
;;
|
||||||
|
pax)
|
||||||
|
am__tar='pax -L -x $1 -w "$$tardir"'
|
||||||
|
am__tar_='pax -L -x $1 -w "$tardir"'
|
||||||
|
am__untar='pax -r'
|
||||||
|
;;
|
||||||
|
cpio)
|
||||||
|
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
||||||
|
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
||||||
|
am__untar='cpio -i -H $1 -d'
|
||||||
|
;;
|
||||||
|
none)
|
||||||
|
am__tar=false
|
||||||
|
am__tar_=false
|
||||||
|
am__untar=false
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If the value was cached, stop now. We just wanted to have am__tar
|
||||||
|
# and am__untar set.
|
||||||
|
test -n "${am_cv_prog_tar_$1}" && break
|
||||||
|
|
||||||
|
# tar/untar a dummy directory, and stop if the command works
|
||||||
|
rm -rf conftest.dir
|
||||||
|
mkdir conftest.dir
|
||||||
|
echo GrepMe > conftest.dir/file
|
||||||
|
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
||||||
|
rm -rf conftest.dir
|
||||||
|
if test -s conftest.tar; then
|
||||||
|
AM_RUN_LOG([$am__untar <conftest.tar])
|
||||||
|
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
rm -rf conftest.dir
|
||||||
|
|
||||||
|
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
||||||
|
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
||||||
|
AC_SUBST([am__tar])
|
||||||
|
AC_SUBST([am__untar])
|
||||||
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
|
m4_include([acinclude.m4])
|
@ -0,0 +1,100 @@
|
|||||||
|
## generate API documentation with doxygen
|
||||||
|
apidox-am-yes:
|
||||||
|
@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$ADMIN" ; then \
|
||||||
|
export DOXDATA=$(kde_libs_htmldir)/en/common ; \
|
||||||
|
fi ; \
|
||||||
|
test -d $(top_builddir)/apidocs || \
|
||||||
|
( cd $(top_builddir) && sh $(top_srcdir)/admin/doxygen.sh \
|
||||||
|
--no-modulename --installdir=$(kde_libs_htmldir)/en \
|
||||||
|
--no-recurse $(top_srcdir) . ) ; \
|
||||||
|
cd $(top_builddir) && sh $(top_srcdir)/admin/doxygen.sh \
|
||||||
|
--recurse --no-modulename --installdir=$(kde_libs_htmldir)/en \
|
||||||
|
$(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 ; \
|
||||||
|
cd $(top_builddir) && sh $(top_srcdir)/admin/doxygen.sh \
|
||||||
|
--no-modulename --installdir=$(kde_libs_htmldir)/en \
|
||||||
|
$(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 -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
|
||||||
|
fi\
|
||||||
|
else\
|
||||||
|
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
|
||||||
|
rm -rfv $(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:
|
@ -0,0 +1,192 @@
|
|||||||
|
OUTPUT_LANGUAGE = English
|
||||||
|
USE_WINDOWS_ENCODING = NO
|
||||||
|
BRIEF_MEMBER_DESC = NO
|
||||||
|
REPEAT_BRIEF = YES
|
||||||
|
ABBREVIATE_BRIEF =
|
||||||
|
ALWAYS_DETAILED_SEC = YES
|
||||||
|
INLINE_INHERITED_MEMB = NO
|
||||||
|
FULL_PATH_NAMES = NO
|
||||||
|
STRIP_FROM_PATH =
|
||||||
|
SHORT_NAMES = NO
|
||||||
|
JAVADOC_AUTOBRIEF = YES
|
||||||
|
MULTILINE_CPP_IS_BRIEF = NO
|
||||||
|
INHERIT_DOCS = YES
|
||||||
|
DISTRIBUTE_GROUP_DOC = NO
|
||||||
|
TAB_SIZE = 4
|
||||||
|
OPTIMIZE_OUTPUT_FOR_C = NO
|
||||||
|
OPTIMIZE_OUTPUT_JAVA = NO
|
||||||
|
SUBGROUPING = YES
|
||||||
|
EXTRACT_ALL = NO
|
||||||
|
EXTRACT_PRIVATE = NO
|
||||||
|
EXTRACT_STATIC = YES
|
||||||
|
EXTRACT_LOCAL_CLASSES = NO
|
||||||
|
HIDE_UNDOC_MEMBERS = NO
|
||||||
|
HIDE_UNDOC_CLASSES = YES
|
||||||
|
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_BRIEF_DOCS = NO
|
||||||
|
SORT_BY_SCOPE_NAME = NO
|
||||||
|
GENERATE_TESTLIST = NO
|
||||||
|
GENERATE_BUGLIST = YES
|
||||||
|
GENERATE_DEPRECATEDLIST= YES
|
||||||
|
ENABLED_SECTIONS =
|
||||||
|
MAX_INITIALIZER_LINES = 30
|
||||||
|
SHOW_USED_FILES = YES
|
||||||
|
QUIET = YES
|
||||||
|
WARNINGS = NO
|
||||||
|
WARN_IF_UNDOCUMENTED = NO
|
||||||
|
WARN_IF_DOC_ERROR = YES
|
||||||
|
WARN_FORMAT =
|
||||||
|
WARN_LOGFILE =
|
||||||
|
INPUT =
|
||||||
|
FILE_PATTERNS = *.h \
|
||||||
|
*.cpp \
|
||||||
|
*.cc \
|
||||||
|
*.hpp \
|
||||||
|
*.dox \
|
||||||
|
*.c++ \
|
||||||
|
*.cxx \
|
||||||
|
*.h++ \
|
||||||
|
*.hh
|
||||||
|
RECURSIVE = YES
|
||||||
|
EXCLUDE =
|
||||||
|
EXCLUDE_SYMLINKS = NO
|
||||||
|
EXCLUDE_PATTERNS = *.moc.* \
|
||||||
|
moc* \
|
||||||
|
*.all_cpp.* \
|
||||||
|
*unload.* \
|
||||||
|
*/test/* \
|
||||||
|
*/tests/* \
|
||||||
|
*_p.h
|
||||||
|
EXAMPLE_PATH =
|
||||||
|
EXAMPLE_PATTERNS =
|
||||||
|
EXAMPLE_RECURSIVE = NO
|
||||||
|
IMAGE_PATH =
|
||||||
|
INPUT_FILTER =
|
||||||
|
FILTER_SOURCE_FILES = NO
|
||||||
|
SOURCE_BROWSER = YES
|
||||||
|
INLINE_SOURCES = NO
|
||||||
|
STRIP_CODE_COMMENTS = YES
|
||||||
|
REFERENCED_BY_RELATION = YES
|
||||||
|
REFERENCES_RELATION = YES
|
||||||
|
VERBATIM_HEADERS = YES
|
||||||
|
ALPHABETICAL_INDEX = YES
|
||||||
|
COLS_IN_ALPHA_INDEX = 3
|
||||||
|
HTML_OUTPUT =
|
||||||
|
HTML_FILE_EXTENSION = .html
|
||||||
|
HTML_HEADER = ../apidocs/common/header.html
|
||||||
|
HTML_FOOTER = ../apidocs/common/footer.html
|
||||||
|
HTML_STYLESHEET = ../apidocs/common/doxygen.css
|
||||||
|
HTML_ALIGN_MEMBERS = YES
|
||||||
|
GENERATE_HTMLHELP = NO
|
||||||
|
CHM_FILE =
|
||||||
|
HHC_LOCATION =
|
||||||
|
GENERATE_CHI = NO
|
||||||
|
BINARY_TOC = NO
|
||||||
|
TOC_EXPAND = NO
|
||||||
|
DISABLE_INDEX = YES
|
||||||
|
ENUM_VALUES_PER_LINE = 4
|
||||||
|
GENERATE_TREEVIEW = NO
|
||||||
|
TREEVIEW_WIDTH = 250
|
||||||
|
GENERATE_LATEX = NO
|
||||||
|
LATEX_OUTPUT =
|
||||||
|
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
|
||||||
|
GENERATE_RTF = NO
|
||||||
|
RTF_OUTPUT =
|
||||||
|
COMPACT_RTF = NO
|
||||||
|
RTF_HYPERLINKS = NO
|
||||||
|
RTF_STYLESHEET_FILE =
|
||||||
|
RTF_EXTENSIONS_FILE =
|
||||||
|
GENERATE_MAN = NO
|
||||||
|
MAN_OUTPUT =
|
||||||
|
MAN_EXTENSION = .kde3
|
||||||
|
MAN_LINKS = YES
|
||||||
|
GENERATE_XML = NO
|
||||||
|
XML_OUTPUT = xml
|
||||||
|
XML_SCHEMA =
|
||||||
|
XML_DTD =
|
||||||
|
XML_PROGRAMLISTING = NO
|
||||||
|
GENERATE_AUTOGEN_DEF = NO
|
||||||
|
GENERATE_PERLMOD = NO
|
||||||
|
PERLMOD_LATEX = NO
|
||||||
|
PERLMOD_PRETTY = YES
|
||||||
|
PERLMOD_MAKEVAR_PREFIX =
|
||||||
|
ENABLE_PREPROCESSING = YES
|
||||||
|
SEARCH_INCLUDES = YES
|
||||||
|
INCLUDE_PATH =
|
||||||
|
INCLUDE_FILE_PATTERNS =
|
||||||
|
PREDEFINED = QT_VERSION=320 \
|
||||||
|
__cplusplus \
|
||||||
|
Q_WS_X11
|
||||||
|
EXPAND_AS_DEFINED =
|
||||||
|
SKIP_FUNCTION_MACROS = YES
|
||||||
|
TAGFILES =
|
||||||
|
GENERATE_TAGFILE =
|
||||||
|
ALLEXTERNALS = NO
|
||||||
|
EXTERNAL_GROUPS = NO
|
||||||
|
PERL_PATH =
|
||||||
|
CLASS_DIAGRAMS = YES
|
||||||
|
HIDE_UNDOC_RELATIONS = NO
|
||||||
|
HAVE_DOT = NO
|
||||||
|
UML_LOOK = NO
|
||||||
|
TEMPLATE_RELATIONS = YES
|
||||||
|
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 = 800
|
||||||
|
MAX_DOT_GRAPH_HEIGHT = 1024
|
||||||
|
MAX_DOT_GRAPH_DEPTH = 0
|
||||||
|
GENERATE_LEGEND = YES
|
||||||
|
DOT_CLEANUP = YES
|
||||||
|
SEARCHENGINE = NO
|
||||||
|
|
||||||
|
### KDE Settings
|
||||||
|
ALIASES = \
|
||||||
|
"intern=\par<b>Internal use only.</b>" \
|
||||||
|
"reimp=\par<b>Reimplemented from superclass.</b>" \
|
||||||
|
"obsolete=@deprecated" \
|
||||||
|
"feature=\xrefitem features \"Feature(s)\" \"Features\"" \
|
||||||
|
"maintainer=\xrefitem maintainers \"Maintainer(s)\" \"Maintainers\"" \
|
||||||
|
"unmaintained=\xrefitem unmaintained \"Unmaintained\" \"Unmaintained\"" \
|
||||||
|
"requirement=\xrefitem requirements \"Requirement(s)\" \"Requirements\"" \
|
||||||
|
"faq=\xrefitem FAQ \"F.A.Q.\" \"F.A.Q.\"" \
|
||||||
|
"authors=\xrefitem authors \"Author(s)\" \"Authors\"" \
|
||||||
|
"FIXME=\xrefitem fixme \"Fixme\" \"Fixme\""
|
||||||
|
|
||||||
|
HTML_ALIGN_MEMBERS = YES
|
||||||
|
REFERENCED_BY_RELATION = NO
|
||||||
|
REFERENCES_RELATION = NO
|
||||||
|
VERBATIM_HEADERS = NO
|
||||||
|
GENERATE_HTML = YES
|
||||||
|
SOURCE_BROWSER = YES
|
||||||
|
GENERATE_AUTOGEN_DEF = NO
|
||||||
|
DETAILS_AT_TOP = YES
|
||||||
|
SORT_MEMBER_DOCS = YES
|
||||||
|
GENERATE_TODOLIST = YES
|
||||||
|
IGNORE_PREFIX = K
|
||||||
|
GENERATE_HTML = YES
|
||||||
|
CLASS_GRAPH = YES
|
||||||
|
COLLABORATION_GRAPH = NO
|
||||||
|
|
||||||
|
|
||||||
|
MACRO_EXPANSION = YES
|
||||||
|
EXPAND_ONLY_PREDEF = YES
|
||||||
|
|
@ -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 Steet, 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 Steet, 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 Steet, 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,658 @@
|
|||||||
|
#! /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* ) : ;;
|
||||||
|
"" )
|
||||||
|
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* ) : ;;
|
||||||
|
"" )
|
||||||
|
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*)
|
||||||
|
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 -f || exit 1
|
||||||
|
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 -f || exit 1
|
||||||
|
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 -f
|
||||||
|
$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.4.91\""
|
||||||
|
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"
|
||||||
|
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,529 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
|
||||||
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
|
# 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 '/^# [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,173 @@
|
|||||||
|
#!/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 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',
|
||||||
|
);
|
||||||
|
|
||||||
|
# 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-?(.*)$/;
|
||||||
|
$version =~ s/-|\.//g;
|
||||||
|
|
||||||
|
# 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)/);
|
||||||
|
|
||||||
|
# Use lt to do lexicographical comparison of strings (which should be
|
||||||
|
# equivalent and doesn't involve issues with floating point conversions).
|
||||||
|
if (not $versionOutput or $versionOutput lt $min_version)
|
||||||
|
{
|
||||||
|
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.
|
||||||
|
if ($version gt $best_version_found)
|
||||||
|
{
|
||||||
|
$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(.*)$/;
|
||||||
|
|
||||||
|
# Use unsermake if we found it.
|
||||||
|
$automake = "$unsermake -c" if $unsermake;
|
||||||
|
|
||||||
|
# Find matching automake companions.
|
||||||
|
$aclocal = findProgram('aclocal', $automake_suffix);
|
||||||
|
|
||||||
|
$which = findWhich();
|
||||||
|
|
||||||
|
# Make sure we have all of the needed programs.
|
||||||
|
for $i (qw'autoconf autoheader autom4te automake aclocal')
|
||||||
|
{
|
||||||
|
unless(${$i})
|
||||||
|
{
|
||||||
|
print "# Unable to find $i!!\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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;
|
@ -0,0 +1,872 @@
|
|||||||
|
#! /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=`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
|
||||||
|
if ! cd "$apidoxdir" > /dev/null 2>&1 ; then
|
||||||
|
echo "Cannot create and cd into $apidoxdir"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
if ! cd "$apidoxdir" > /dev/null 2>&1 ; then
|
||||||
|
echo "Cannot cd into $apidoxdir -- maybe you need to"
|
||||||
|
echo "build the top-level dox first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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,323 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
|
# 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}"
|
||||||
|
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
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) chmodcmd="$chmodprog $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
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
src=
|
||||||
|
|
||||||
|
if test -d "$dst"; then
|
||||||
|
mkdircmd=:
|
||||||
|
chmodcmd=
|
||||||
|
else
|
||||||
|
mkdircmd=$mkdirprog
|
||||||
|
fi
|
||||||
|
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
|
||||||
|
dst=$dst/`basename "$src"`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This sed command emulates the dirname command.
|
||||||
|
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if test ! -d "$dstdir"; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-$defaultIFS}"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
|
||||||
|
while test $# -ne 0 ; do
|
||||||
|
pathcomp=$pathcomp$1
|
||||||
|
shift
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# mkdir can fail with a `File exist' error in case several
|
||||||
|
# install-sh are creating the directory concurrently. This
|
||||||
|
# is OK.
|
||||||
|
test -d "$pathcomp" || exit
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
$doit $mkdircmd "$dst" \
|
||||||
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
|
else
|
||||||
|
dstfile=`basename "$dst"`
|
||||||
|
|
||||||
|
# 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
|
||||||
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
|
# 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 "$dsttmp"; } &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 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 "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fi || { (exit 1); exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||||
|
{
|
||||||
|
(exit 0); 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:
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,360 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Common stub for a few missing GNU programs while installing.
|
||||||
|
|
||||||
|
scriptversion=2005-06-08.21
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
||||||
|
# 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 $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
|
echo "missing $scriptversion (GNU Automake)"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
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."
|
||||||
|
# The file to touch is that specified with -o ...
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
# ... or it is the one specified with @setfilename ...
|
||||||
|
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
||||||
|
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||||
|
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||||
|
fi
|
||||||
|
# If the file does not exist, the user really needs makeinfo;
|
||||||
|
# let's fail without touching anything.
|
||||||
|
test -f $file || exit 1
|
||||||
|
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 Steet, 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:
|
@ -0,0 +1,23 @@
|
|||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
SUBDIRS = config
|
||||||
|
|
||||||
|
KDE_CXXFLAGS = -DQT_PLUGIN
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes) -I$(kde_includes)/kwin
|
||||||
|
|
||||||
|
kwindir = $(kde_datadir)/kwin/
|
||||||
|
kwin_DATA = deKorator.desktop
|
||||||
|
|
||||||
|
noinst_HEADERS = deKoratorclient.h shadow.h
|
||||||
|
|
||||||
|
kde_module_LTLIBRARIES = kwin3_deKorator.la
|
||||||
|
kwin3_deKorator_la_SOURCES = deKoratorclient.cc shadow.cpp
|
||||||
|
kwin3_deKorator_la_LIBADD = $(kde_libraries)/libkdecorations.la
|
||||||
|
kwin3_deKorator_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) -lkdecore
|
||||||
|
kwin3_deKorator_la_METASOURCES = AUTO
|
||||||
|
|
||||||
|
DISTCLEANFILES = $(kwin3_deKorator_la_METASOURCES)
|
||||||
|
|
||||||
|
messages:
|
||||||
|
$(XGETTEXT) *.cpp -o $(podir)/kwin_deKorator.po
|
@ -0,0 +1,911 @@
|
|||||||
|
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||||
|
# KDE tags expanded automatically by am_edit - $Revision: 435799 $
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004, 2005 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 = client
|
||||||
|
DIST_COMMON = $(noinst_HEADERS) $(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 =
|
||||||
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
|
am__vpath_adj = case $$p in \
|
||||||
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
*) f=$$p;; \
|
||||||
|
esac;
|
||||||
|
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||||
|
am__installdirs = "$(DESTDIR)$(kde_moduledir)" "$(DESTDIR)$(kwindir)"
|
||||||
|
kde_moduleLTLIBRARIES_INSTALL = $(INSTALL)
|
||||||
|
LTLIBRARIES = $(kde_module_LTLIBRARIES)
|
||||||
|
kwin3_deKorator_la_DEPENDENCIES = $(kde_libraries)/libkdecorations.la
|
||||||
|
am_kwin3_deKorator_la_OBJECTS = deKoratorclient.lo shadow.lo
|
||||||
|
#>- kwin3_deKorator_la_OBJECTS = $(am_kwin3_deKorator_la_OBJECTS)
|
||||||
|
#>+ 4
|
||||||
|
kwin3_deKorator_la_final_OBJECTS = deKoratorclient.lo shadow.lo
|
||||||
|
kwin3_deKorator_la_nofinal_OBJECTS = deKoratorclient.lo shadow.lo
|
||||||
|
@KDE_USE_FINAL_FALSE@kwin3_deKorator_la_OBJECTS = $(kwin3_deKorator_la_nofinal_OBJECTS)
|
||||||
|
@KDE_USE_FINAL_TRUE@kwin3_deKorator_la_OBJECTS = $(kwin3_deKorator_la_final_OBJECTS)
|
||||||
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
|
||||||
|
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
|
||||||
|
am__depfiles_maybe = depfiles
|
||||||
|
#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
#>- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
#>+ 2
|
||||||
|
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||||
|
#>- LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||||
|
#>- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
#>- $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
#>+ 3
|
||||||
|
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||||
|
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
$(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||||
|
CXXLD = $(CXX)
|
||||||
|
#>- CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
#>- $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
#>+ 2
|
||||||
|
CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
$(CXXFLAGS) $(KDE_CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
SOURCES = $(kwin3_deKorator_la_SOURCES)
|
||||||
|
DIST_SOURCES = $(kwin3_deKorator_la_SOURCES)
|
||||||
|
#>- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||||
|
#>- html-recursive info-recursive install-data-recursive \
|
||||||
|
#>- install-exec-recursive install-info-recursive \
|
||||||
|
#>- install-recursive installcheck-recursive installdirs-recursive \
|
||||||
|
#>- pdf-recursive ps-recursive uninstall-info-recursive \
|
||||||
|
#>- uninstall-recursive
|
||||||
|
#>+ 6
|
||||||
|
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||||
|
html-recursive info-recursive install-data-recursive \
|
||||||
|
install-exec-recursive install-info-recursive \
|
||||||
|
install-recursive installcheck-recursive installdirs-recursive \
|
||||||
|
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||||
|
uninstall-recursive nmcheck-recursive bcheck-recursive
|
||||||
|
kwinDATA_INSTALL = $(INSTALL_DATA)
|
||||||
|
DATA = $(kwin_DATA)
|
||||||
|
HEADERS = $(noinst_HEADERS)
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
DIST_SUBDIRS = $(SUBDIRS)
|
||||||
|
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
#>+ 1
|
||||||
|
DISTFILES = $(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@
|
||||||
|
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||||
|
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_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||||
|
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_FPIE = @KDE_USE_FPIE@
|
||||||
|
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||||
|
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||||
|
KDE_USE_PIE = @KDE_USE_PIE@
|
||||||
|
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||||
|
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||||
|
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_KDED = @LIB_KDED@
|
||||||
|
LIB_KDEPIM = @LIB_KDEPIM@
|
||||||
|
LIB_KDEPRINT = @LIB_KDEPRINT@
|
||||||
|
LIB_KDEUI = @LIB_KDEUI@
|
||||||
|
LIB_KDNSSD = @LIB_KDNSSD@
|
||||||
|
LIB_KFILE = @LIB_KFILE@
|
||||||
|
LIB_KFM = @LIB_KFM@
|
||||||
|
LIB_KHTML = @LIB_KHTML@
|
||||||
|
LIB_KIMPROXY = @LIB_KIMPROXY@
|
||||||
|
LIB_KIO = @LIB_KIO@
|
||||||
|
LIB_KJS = @LIB_KJS@
|
||||||
|
LIB_KNEWSTUFF = @LIB_KNEWSTUFF@
|
||||||
|
LIB_KPARTS = @LIB_KPARTS@
|
||||||
|
LIB_KSPELL = @LIB_KSPELL@
|
||||||
|
LIB_KSYCOCA = @LIB_KSYCOCA@
|
||||||
|
LIB_KUNITTEST = @LIB_KUNITTEST@
|
||||||
|
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@
|
||||||
|
MAKEKDEWIDGETS = @MAKEKDEWIDGETS@
|
||||||
|
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@
|
||||||
|
include_x11_FALSE = @include_x11_FALSE@
|
||||||
|
include_x11_TRUE = @include_x11_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@
|
||||||
|
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||||
|
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||||
|
x_includes = @x_includes@
|
||||||
|
x_libraries = @x_libraries@
|
||||||
|
xdg_appsdir = @xdg_appsdir@
|
||||||
|
xdg_directorydir = @xdg_directorydir@
|
||||||
|
xdg_menudir = @xdg_menudir@
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
SUBDIRS = config
|
||||||
|
KDE_CXXFLAGS = -DQT_PLUGIN
|
||||||
|
INCLUDES = $(all_includes) -I$(kde_includes)/kwin
|
||||||
|
kwindir = $(kde_datadir)/kwin/
|
||||||
|
kwin_DATA = deKorator.desktop
|
||||||
|
noinst_HEADERS = deKoratorclient.h shadow.h
|
||||||
|
kde_module_LTLIBRARIES = kwin3_deKorator.la
|
||||||
|
kwin3_deKorator_la_SOURCES = deKoratorclient.cc shadow.cpp
|
||||||
|
kwin3_deKorator_la_LIBADD = $(kde_libraries)/libkdecorations.la
|
||||||
|
kwin3_deKorator_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) -lkdecore
|
||||||
|
#>- kwin3_deKorator_la_METASOURCES = AUTO
|
||||||
|
DISTCLEANFILES = $(kwin3_deKorator_la_METASOURCES)
|
||||||
|
#>- all: all-recursive
|
||||||
|
#>+ 1
|
||||||
|
all: docs-am all-recursive
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .cc .cpp .lo .o .obj
|
||||||
|
$(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) --foreign client/Makefile'; \
|
||||||
|
#>- cd $(top_srcdir) && \
|
||||||
|
#>- $(AUTOMAKE) --foreign client/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) --foreign client/Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign client/Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit client/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
|
||||||
|
install-kde_moduleLTLIBRARIES: $(kde_module_LTLIBRARIES)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(kde_moduledir)" || $(mkdir_p) "$(DESTDIR)$(kde_moduledir)"
|
||||||
|
@list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
f=$(am__strip_dir) \
|
||||||
|
echo " $(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(kde_moduledir)/$$f'"; \
|
||||||
|
$(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(kde_moduledir)/$$f"; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-kde_moduleLTLIBRARIES:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@set -x; list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
p=$(am__strip_dir) \
|
||||||
|
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(kde_moduledir)/$$p'"; \
|
||||||
|
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(kde_moduledir)/$$p"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean-kde_moduleLTLIBRARIES:
|
||||||
|
-test -z "$(kde_module_LTLIBRARIES)" || rm -f $(kde_module_LTLIBRARIES)
|
||||||
|
@list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||||
|
test "$$dir" != "$$p" || dir=.; \
|
||||||
|
echo "rm -f \"$${dir}/so_locations\""; \
|
||||||
|
rm -f "$${dir}/so_locations"; \
|
||||||
|
done
|
||||||
|
#>- kwin3_deKorator.la: $(kwin3_deKorator_la_OBJECTS) $(kwin3_deKorator_la_DEPENDENCIES)
|
||||||
|
#>+ 2
|
||||||
|
@KDE_USE_CLOSURE_TRUE@kwin3_deKorator.la: kwin3_deKorator.la.closure $(kwin3_deKorator_la_OBJECTS) $(kwin3_deKorator_la_DEPENDENCIES)
|
||||||
|
@KDE_USE_CLOSURE_FALSE@kwin3_deKorator.la: $(kwin3_deKorator_la_OBJECTS) $(kwin3_deKorator_la_DEPENDENCIES)
|
||||||
|
$(CXXLINK) -rpath $(kde_moduledir) $(kwin3_deKorator_la_LDFLAGS) $(kwin3_deKorator_la_OBJECTS) $(kwin3_deKorator_la_LIBADD) $(LIBS)
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/deKoratorclient.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shadow.Plo@am__quote@
|
||||||
|
|
||||||
|
.cc.o:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cc.obj:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.cc.lo:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cpp.o:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cpp.obj:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.cpp.lo:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
-rm -f libtool
|
||||||
|
uninstall-info-am:
|
||||||
|
install-kwinDATA: $(kwin_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(kwindir)" || $(mkdir_p) "$(DESTDIR)$(kwindir)"
|
||||||
|
@list='$(kwin_DATA)'; for p in $$list; do \
|
||||||
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
|
f=$(am__strip_dir) \
|
||||||
|
echo " $(kwinDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(kwindir)/$$f'"; \
|
||||||
|
$(kwinDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(kwindir)/$$f"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-kwinDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(kwin_DATA)'; for p in $$list; do \
|
||||||
|
f=$(am__strip_dir) \
|
||||||
|
echo " rm -f '$(DESTDIR)$(kwindir)/$$f'"; \
|
||||||
|
rm -f "$(DESTDIR)$(kwindir)/$$f"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
$(RECURSIVE_TARGETS):
|
||||||
|
@failcom='exit 1'; \
|
||||||
|
for f in x $$MAKEFLAGS; do \
|
||||||
|
case $$f in \
|
||||||
|
*=* | --[!k]*);; \
|
||||||
|
*k*) failcom='fail=yes';; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| eval $$failcom; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@failcom='exit 1'; \
|
||||||
|
for f in x $$MAKEFLAGS; do \
|
||||||
|
case $$f in \
|
||||||
|
*=* | --[!k]*);; \
|
||||||
|
*k*) failcom='fail=yes';; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
dot_seen=no; \
|
||||||
|
case "$@" in \
|
||||||
|
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||||
|
*) list='$(SUBDIRS)' ;; \
|
||||||
|
esac; \
|
||||||
|
rev=''; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = "."; then :; else \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
rev="$$rev ."; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| eval $$failcom; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
ctags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||||
|
include_option=--etags-include; \
|
||||||
|
empty_fix=.; \
|
||||||
|
else \
|
||||||
|
include_option=--include; \
|
||||||
|
empty_fix=; \
|
||||||
|
fi; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test ! -f $$subdir/TAGS || \
|
||||||
|
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$tags $$unique; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$tags $$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& cd $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) $$here
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
distdir: $(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
|
||||||
|
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d "$(distdir)/$$subdir" \
|
||||||
|
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||||
|
|| exit 1; \
|
||||||
|
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||||
|
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||||
|
(cd $$subdir && \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
top_distdir="$$top_distdir" \
|
||||||
|
distdir="$$distdir/$$subdir" \
|
||||||
|
distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
for dir in "$(DESTDIR)$(kde_moduledir)" "$(DESTDIR)$(kwindir)"; do \
|
||||||
|
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-recursive
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
install-data: install-data-recursive
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
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)
|
||||||
|
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||||
|
|
||||||
|
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-recursive
|
||||||
|
#>+ 1
|
||||||
|
clean: kde-rpo-clean clean-recursive
|
||||||
|
|
||||||
|
#>- clean-am: clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
|
||||||
|
#>- mostlyclean-am
|
||||||
|
#>+ 2
|
||||||
|
clean-am: clean-metasources clean-closures clean-bcheck clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
|
||||||
|
mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-compile distclean-generic \
|
||||||
|
distclean-libtool distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-recursive
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-recursive
|
||||||
|
|
||||||
|
info: info-recursive
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
#>- install-data-am: install-kde_moduleLTLIBRARIES install-kwinDATA
|
||||||
|
#>+ 1
|
||||||
|
install-data-am: install-kwinDATA
|
||||||
|
|
||||||
|
#>- install-exec-am:
|
||||||
|
#>+ 1
|
||||||
|
install-exec-am: install-kde_moduleLTLIBRARIES
|
||||||
|
|
||||||
|
install-info: install-info-recursive
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||||
|
mostlyclean-libtool
|
||||||
|
|
||||||
|
pdf: pdf-recursive
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-recursive
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-info-am uninstall-kde_moduleLTLIBRARIES \
|
||||||
|
uninstall-kwinDATA
|
||||||
|
|
||||||
|
uninstall-info: uninstall-info-recursive
|
||||||
|
|
||||||
|
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||||
|
clean clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
|
||||||
|
clean-recursive ctags ctags-recursive distclean \
|
||||||
|
distclean-compile distclean-generic distclean-libtool \
|
||||||
|
distclean-recursive distclean-tags 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-kde_moduleLTLIBRARIES install-kwinDATA \
|
||||||
|
install-man install-strip installcheck installcheck-am \
|
||||||
|
installdirs installdirs-am maintainer-clean \
|
||||||
|
maintainer-clean-generic maintainer-clean-recursive \
|
||||||
|
mostlyclean mostlyclean-compile mostlyclean-generic \
|
||||||
|
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||||
|
tags tags-recursive uninstall uninstall-am uninstall-info-am \
|
||||||
|
uninstall-kde_moduleLTLIBRARIES uninstall-kwinDATA
|
||||||
|
|
||||||
|
|
||||||
|
messages:
|
||||||
|
$(XGETTEXT) *.cpp -o $(podir)/kwin_deKorator.po
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
#>+ 8
|
||||||
|
kwin3_deKorator.la.closure: $(kwin3_deKorator_la_OBJECTS) $(kwin3_deKorator_la_DEPENDENCIES)
|
||||||
|
@echo "int main() {return 0;}" > kwin3_deKorator_la_closure.cc
|
||||||
|
@$(LTCXXCOMPILE) -c kwin3_deKorator_la_closure.cc
|
||||||
|
$(CXXLINK) kwin3_deKorator_la_closure.lo $(kwin3_deKorator_la_LDFLAGS) $(kwin3_deKorator_la_OBJECTS) $(kwin3_deKorator_la_LIBADD) $(LIBS)
|
||||||
|
@rm -f kwin3_deKorator_la_closure.* kwin3_deKorator.la.closure
|
||||||
|
@echo "timestamp" > kwin3_deKorator.la.closure
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
deKoratorclient.moc: $(srcdir)/deKoratorclient.h
|
||||||
|
$(MOC) $(srcdir)/deKoratorclient.h -o deKoratorclient.moc
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
mocs: deKoratorclient.moc
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
clean-metasources:
|
||||||
|
-rm -f deKoratorclient.moc
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
KDE_DIST=Makefile.in deKorator.desktop Makefile.am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
clean-closures:
|
||||||
|
-rm -f kwin3_deKorator.la.closure
|
||||||
|
|
||||||
|
#>+ 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) --foreign client/Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign client/Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit client/Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 21
|
||||||
|
clean-bcheck:
|
||||||
|
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
|
||||||
|
|
||||||
|
bcheck: bcheck-recursive
|
||||||
|
|
||||||
|
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 ! $(CXXCOMPILE) --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) kwin3_deKorator_la_OBJECTS="$(kwin3_deKorator_la_final_OBJECTS)" all-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
final-install:
|
||||||
|
$(MAKE) kwin3_deKorator_la_OBJECTS="$(kwin3_deKorator_la_final_OBJECTS)" install-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
no-final:
|
||||||
|
$(MAKE) kwin3_deKorator_la_OBJECTS="$(kwin3_deKorator_la_nofinal_OBJECTS)" all-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
no-final-install:
|
||||||
|
$(MAKE) kwin3_deKorator_la_OBJECTS="$(kwin3_deKorator_la_nofinal_OBJECTS)" install-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
kde-rpo-clean:
|
||||||
|
-rm -f *.rpo
|
||||||
|
|
||||||
|
#>+ 5
|
||||||
|
nmcheck:
|
||||||
|
deKoratorclient.lo: deKoratorclient.moc
|
||||||
|
deKoratorclient.o: deKoratorclient.moc
|
||||||
|
nmcheck-am: nmcheck
|
@ -0,0 +1,19 @@
|
|||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
KDE_CXXFLAGS = -DQT_PLUGIN
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
|
||||||
|
noinst_HEADERS = deKoratorconfig.h themes.h
|
||||||
|
|
||||||
|
kde_module_LTLIBRARIES = kwin_deKorator_config.la
|
||||||
|
kwin_deKorator_config_la_SOURCES = deKoratorconfig.cc configdialog.ui \
|
||||||
|
themes.cpp
|
||||||
|
kwin_deKorator_config_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN)
|
||||||
|
kwin_deKorator_config_la_LIBADD = $(LIB_KIO) $(LIB_KDEUI)
|
||||||
|
kwin_deKorator_config_la_METASOURCES = AUTO
|
||||||
|
|
||||||
|
DISTCLEANFILES = $(kwin_deKorator_config_la_METASOURCES)
|
||||||
|
|
||||||
|
messages:
|
||||||
|
$(XGETTEXT) *.cpp -o $(podir)/kwin_deKorator_config.pot
|
@ -0,0 +1,824 @@
|
|||||||
|
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||||
|
# KDE tags expanded automatically by am_edit - $Revision: 435799 $
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004, 2005 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 = client/config
|
||||||
|
DIST_COMMON = $(noinst_HEADERS) $(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 =
|
||||||
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
|
am__vpath_adj = case $$p in \
|
||||||
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
*) f=$$p;; \
|
||||||
|
esac;
|
||||||
|
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||||
|
am__installdirs = "$(DESTDIR)$(kde_moduledir)"
|
||||||
|
kde_moduleLTLIBRARIES_INSTALL = $(INSTALL)
|
||||||
|
LTLIBRARIES = $(kde_module_LTLIBRARIES)
|
||||||
|
am__DEPENDENCIES_1 =
|
||||||
|
kwin_deKorator_config_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
|
||||||
|
$(am__DEPENDENCIES_1)
|
||||||
|
am_kwin_deKorator_config_la_OBJECTS = deKoratorconfig.lo themes.lo
|
||||||
|
#>- kwin_deKorator_config_la_OBJECTS = \
|
||||||
|
#>- $(am_kwin_deKorator_config_la_OBJECTS)
|
||||||
|
#>+ 4
|
||||||
|
kwin_deKorator_config_la_final_OBJECTS = kwin_deKorator_config_la.all_cc.lo themes.lo
|
||||||
|
kwin_deKorator_config_la_nofinal_OBJECTS = deKoratorconfig.lo themes.lo configdialog.lo
|
||||||
|
@KDE_USE_FINAL_FALSE@kwin_deKorator_config_la_OBJECTS = $(kwin_deKorator_config_la_nofinal_OBJECTS)
|
||||||
|
@KDE_USE_FINAL_TRUE@kwin_deKorator_config_la_OBJECTS = $(kwin_deKorator_config_la_final_OBJECTS)
|
||||||
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
|
||||||
|
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
|
||||||
|
am__depfiles_maybe = depfiles
|
||||||
|
#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
#>- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
#>+ 2
|
||||||
|
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||||
|
#>- LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||||
|
#>- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
#>- $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
#>+ 3
|
||||||
|
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
|
||||||
|
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
$(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
|
||||||
|
CXXLD = $(CXX)
|
||||||
|
#>- CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
#>- $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
#>+ 2
|
||||||
|
CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
$(CXXFLAGS) $(KDE_CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
SOURCES = $(kwin_deKorator_config_la_SOURCES)
|
||||||
|
DIST_SOURCES = $(kwin_deKorator_config_la_SOURCES)
|
||||||
|
HEADERS = $(noinst_HEADERS)
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
#>+ 1
|
||||||
|
DISTFILES = $(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@
|
||||||
|
HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
|
||||||
|
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_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
|
||||||
|
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_FPIE = @KDE_USE_FPIE@
|
||||||
|
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
|
||||||
|
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
|
||||||
|
KDE_USE_PIE = @KDE_USE_PIE@
|
||||||
|
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
|
||||||
|
LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
|
||||||
|
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_KDED = @LIB_KDED@
|
||||||
|
LIB_KDEPIM = @LIB_KDEPIM@
|
||||||
|
LIB_KDEPRINT = @LIB_KDEPRINT@
|
||||||
|
LIB_KDEUI = @LIB_KDEUI@
|
||||||
|
LIB_KDNSSD = @LIB_KDNSSD@
|
||||||
|
LIB_KFILE = @LIB_KFILE@
|
||||||
|
LIB_KFM = @LIB_KFM@
|
||||||
|
LIB_KHTML = @LIB_KHTML@
|
||||||
|
LIB_KIMPROXY = @LIB_KIMPROXY@
|
||||||
|
LIB_KIO = @LIB_KIO@
|
||||||
|
LIB_KJS = @LIB_KJS@
|
||||||
|
LIB_KNEWSTUFF = @LIB_KNEWSTUFF@
|
||||||
|
LIB_KPARTS = @LIB_KPARTS@
|
||||||
|
LIB_KSPELL = @LIB_KSPELL@
|
||||||
|
LIB_KSYCOCA = @LIB_KSYCOCA@
|
||||||
|
LIB_KUNITTEST = @LIB_KUNITTEST@
|
||||||
|
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@
|
||||||
|
MAKEKDEWIDGETS = @MAKEKDEWIDGETS@
|
||||||
|
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@
|
||||||
|
include_x11_FALSE = @include_x11_FALSE@
|
||||||
|
include_x11_TRUE = @include_x11_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@
|
||||||
|
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
|
||||||
|
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
|
||||||
|
x_includes = @x_includes@
|
||||||
|
x_libraries = @x_libraries@
|
||||||
|
xdg_appsdir = @xdg_appsdir@
|
||||||
|
xdg_directorydir = @xdg_directorydir@
|
||||||
|
xdg_menudir = @xdg_menudir@
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
KDE_CXXFLAGS = -DQT_PLUGIN
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
noinst_HEADERS = deKoratorconfig.h themes.h
|
||||||
|
kde_module_LTLIBRARIES = kwin_deKorator_config.la
|
||||||
|
#>- kwin_deKorator_config_la_SOURCES = deKoratorconfig.cc configdialog.ui \
|
||||||
|
#>- themes.cpp
|
||||||
|
#>+ 2
|
||||||
|
kwin_deKorator_config_la_SOURCES=deKoratorconfig.cc \
|
||||||
|
themes.cpp configdialog.cc
|
||||||
|
|
||||||
|
kwin_deKorator_config_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN)
|
||||||
|
kwin_deKorator_config_la_LIBADD = $(LIB_KIO) $(LIB_KDEUI)
|
||||||
|
#>- kwin_deKorator_config_la_METASOURCES = AUTO
|
||||||
|
DISTCLEANFILES = $(kwin_deKorator_config_la_METASOURCES)
|
||||||
|
#>- all: all-am
|
||||||
|
#>+ 1
|
||||||
|
all: docs-am all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .cc .cpp .lo .o .obj
|
||||||
|
$(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) --foreign client/config/Makefile'; \
|
||||||
|
#>- cd $(top_srcdir) && \
|
||||||
|
#>- $(AUTOMAKE) --foreign client/config/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) --foreign client/config/Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign client/config/Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit client/config/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
|
||||||
|
install-kde_moduleLTLIBRARIES: $(kde_module_LTLIBRARIES)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(kde_moduledir)" || $(mkdir_p) "$(DESTDIR)$(kde_moduledir)"
|
||||||
|
@list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
f=$(am__strip_dir) \
|
||||||
|
echo " $(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(kde_moduledir)/$$f'"; \
|
||||||
|
$(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(kde_moduledir)/$$f"; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-kde_moduleLTLIBRARIES:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@set -x; list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
p=$(am__strip_dir) \
|
||||||
|
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(kde_moduledir)/$$p'"; \
|
||||||
|
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(kde_moduledir)/$$p"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean-kde_moduleLTLIBRARIES:
|
||||||
|
-test -z "$(kde_module_LTLIBRARIES)" || rm -f $(kde_module_LTLIBRARIES)
|
||||||
|
@list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
|
||||||
|
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||||
|
test "$$dir" != "$$p" || dir=.; \
|
||||||
|
echo "rm -f \"$${dir}/so_locations\""; \
|
||||||
|
rm -f "$${dir}/so_locations"; \
|
||||||
|
done
|
||||||
|
#>- kwin_deKorator_config.la: $(kwin_deKorator_config_la_OBJECTS) $(kwin_deKorator_config_la_DEPENDENCIES)
|
||||||
|
#>+ 2
|
||||||
|
@KDE_USE_CLOSURE_TRUE@kwin_deKorator_config.la: kwin_deKorator_config.la.closure $(kwin_deKorator_config_la_OBJECTS) $(kwin_deKorator_config_la_DEPENDENCIES)
|
||||||
|
@KDE_USE_CLOSURE_FALSE@kwin_deKorator_config.la: $(kwin_deKorator_config_la_OBJECTS) $(kwin_deKorator_config_la_DEPENDENCIES)
|
||||||
|
$(CXXLINK) -rpath $(kde_moduledir) $(kwin_deKorator_config_la_LDFLAGS) $(kwin_deKorator_config_la_OBJECTS) $(kwin_deKorator_config_la_LIBADD) $(LIBS)
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/deKoratorconfig.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/themes.Plo@am__quote@
|
||||||
|
|
||||||
|
.cc.o:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cc.obj:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.cc.lo:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cpp.o:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cpp.obj:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.cpp.lo:
|
||||||
|
@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
-rm -f libtool
|
||||||
|
uninstall-info-am:
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$tags $$unique; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$tags $$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& cd $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) $$here
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
distdir: $(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 $(LTLIBRARIES) $(HEADERS)
|
||||||
|
installdirs:
|
||||||
|
for dir in "$(DESTDIR)$(kde_moduledir)"; do \
|
||||||
|
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: 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)
|
||||||
|
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||||
|
|
||||||
|
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-kde_moduleLTLIBRARIES clean-libtool \
|
||||||
|
#>- mostlyclean-am
|
||||||
|
#>+ 2
|
||||||
|
clean-am: clean-metasources clean-ui clean-closures clean-bcheck clean-final clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
|
||||||
|
mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-compile distclean-generic \
|
||||||
|
distclean-libtool distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
#>- install-data-am: install-kde_moduleLTLIBRARIES
|
||||||
|
#>+ 1
|
||||||
|
install-data-am:
|
||||||
|
|
||||||
|
#>- install-exec-am:
|
||||||
|
#>+ 1
|
||||||
|
install-exec-am: install-kde_moduleLTLIBRARIES
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||||
|
mostlyclean-libtool
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-info-am uninstall-kde_moduleLTLIBRARIES
|
||||||
|
|
||||||
|
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||||
|
clean-kde_moduleLTLIBRARIES clean-libtool ctags distclean \
|
||||||
|
distclean-compile distclean-generic distclean-libtool \
|
||||||
|
distclean-tags 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-kde_moduleLTLIBRARIES install-man install-strip \
|
||||||
|
installcheck installcheck-am installdirs maintainer-clean \
|
||||||
|
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||||
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||||
|
tags uninstall uninstall-am uninstall-info-am \
|
||||||
|
uninstall-kde_moduleLTLIBRARIES
|
||||||
|
|
||||||
|
|
||||||
|
messages:
|
||||||
|
$(XGETTEXT) *.cpp -o $(podir)/kwin_deKorator_config.pot
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
#>+ 8
|
||||||
|
kwin_deKorator_config.la.closure: $(kwin_deKorator_config_la_OBJECTS) $(kwin_deKorator_config_la_DEPENDENCIES)
|
||||||
|
@echo "int main() {return 0;}" > kwin_deKorator_config_la_closure.cc
|
||||||
|
@$(LTCXXCOMPILE) -c kwin_deKorator_config_la_closure.cc
|
||||||
|
$(CXXLINK) kwin_deKorator_config_la_closure.lo $(kwin_deKorator_config_la_LDFLAGS) $(kwin_deKorator_config_la_OBJECTS) $(kwin_deKorator_config_la_LIBADD) $(LIBS)
|
||||||
|
@rm -f kwin_deKorator_config_la_closure.* kwin_deKorator_config.la.closure
|
||||||
|
@echo "timestamp" > kwin_deKorator_config.la.closure
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
themes.moc: $(srcdir)/themes.h
|
||||||
|
$(MOC) $(srcdir)/themes.h -o themes.moc
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
mocs: themes.moc
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
deKoratorconfig.moc: $(srcdir)/deKoratorconfig.h
|
||||||
|
$(MOC) $(srcdir)/deKoratorconfig.h -o deKoratorconfig.moc
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
mocs: deKoratorconfig.moc
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
clean-metasources:
|
||||||
|
-rm -f themes.moc deKoratorconfig.moc
|
||||||
|
|
||||||
|
#>+ 2
|
||||||
|
KDE_DIST=Makefile.in configdialog.ui deKoratorconfig.loT Makefile.am
|
||||||
|
|
||||||
|
#>+ 4
|
||||||
|
clean-ui:
|
||||||
|
-rm -f \
|
||||||
|
configdialog.cc configdialog.h configdialog.moc
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
clean-closures:
|
||||||
|
-rm -f kwin_deKorator_config.la.closure
|
||||||
|
|
||||||
|
#>+ 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) --foreign client/config/Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign client/config/Makefile
|
||||||
|
cd $(top_srcdir) && perl admin/am_edit client/config/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 ! $(CXXCOMPILE) --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
|
||||||
|
|
||||||
|
|
||||||
|
#>+ 11
|
||||||
|
kwin_deKorator_config_la.all_cc.cc: $(srcdir)/Makefile.in $(srcdir)/deKoratorconfig.cc configdialog.cc themes.moc deKoratorconfig.moc
|
||||||
|
@echo 'creating kwin_deKorator_config_la.all_cc.cc ...'; \
|
||||||
|
rm -f kwin_deKorator_config_la.all_cc.files kwin_deKorator_config_la.all_cc.final; \
|
||||||
|
echo "#define KDE_USE_FINAL 1" >> kwin_deKorator_config_la.all_cc.final; \
|
||||||
|
for file in deKoratorconfig.cc configdialog.cc ; do \
|
||||||
|
echo "#include \"$$file\"" >> kwin_deKorator_config_la.all_cc.files; \
|
||||||
|
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kwin_deKorator_config_la.all_cc.final; \
|
||||||
|
done; \
|
||||||
|
cat kwin_deKorator_config_la.all_cc.final kwin_deKorator_config_la.all_cc.files > kwin_deKorator_config_la.all_cc.cc; \
|
||||||
|
rm -f kwin_deKorator_config_la.all_cc.final kwin_deKorator_config_la.all_cc.files
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
clean-final:
|
||||||
|
-rm -f kwin_deKorator_config_la.all_cc.cc
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
final:
|
||||||
|
$(MAKE) kwin_deKorator_config_la_OBJECTS="$(kwin_deKorator_config_la_final_OBJECTS)" all-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
final-install:
|
||||||
|
$(MAKE) kwin_deKorator_config_la_OBJECTS="$(kwin_deKorator_config_la_final_OBJECTS)" install-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
no-final:
|
||||||
|
$(MAKE) kwin_deKorator_config_la_OBJECTS="$(kwin_deKorator_config_la_nofinal_OBJECTS)" all-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
no-final-install:
|
||||||
|
$(MAKE) kwin_deKorator_config_la_OBJECTS="$(kwin_deKorator_config_la_nofinal_OBJECTS)" install-am
|
||||||
|
|
||||||
|
#>+ 3
|
||||||
|
kde-rpo-clean:
|
||||||
|
-rm -f *.rpo
|
||||||
|
|
||||||
|
#>+ 9
|
||||||
|
nmcheck:
|
||||||
|
$(srcdir)/themes.cpp: configdialog.h
|
||||||
|
deKoratorconfig.o: deKoratorconfig.moc
|
||||||
|
nmcheck-am: nmcheck
|
||||||
|
deKoratorconfig.lo: deKoratorconfig.moc
|
||||||
|
themes.lo: themes.moc
|
||||||
|
$(srcdir)/deKoratorconfig.cc: configdialog.h
|
||||||
|
themes.o: themes.moc
|
||||||
|
|
||||||
|
#>+ 15
|
||||||
|
configdialog.cc: $(srcdir)/configdialog.ui configdialog.h configdialog.moc
|
||||||
|
rm -f configdialog.cc
|
||||||
|
echo '#include <kdialog.h>' > configdialog.cc
|
||||||
|
echo '#include <klocale.h>' >> configdialog.cc
|
||||||
|
$(UIC) -tr ${UIC_TR} -i configdialog.h $(srcdir)/configdialog.ui > configdialog.cc.temp ; ret=$$?; \
|
||||||
|
$(PERL) -pe "s,${UIC_TR}( \"\" ),QString::null,g" configdialog.cc.temp | $(PERL) -pe "s,${UIC_TR}( \"\"\, \"\" ),QString::null,g" | $(PERL) -pe "s,image([0-9][0-9]*)_data,img\$$1_configdialog,g" | $(PERL) -pe "s,: QWizard\(,: KWizard(,g" >> configdialog.cc ;\
|
||||||
|
rm -f configdialog.cc.temp ;\
|
||||||
|
if test "$$ret" = 0; then echo '#include "configdialog.moc"' >> configdialog.cc; else rm -f configdialog.cc ; exit $$ret ; fi
|
||||||
|
|
||||||
|
configdialog.h: $(srcdir)/configdialog.ui
|
||||||
|
rm -rf configdialog.h;
|
||||||
|
$(UIC) $(srcdir)/configdialog.ui | $(PERL) -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> configdialog.h ;
|
||||||
|
configdialog.moc: configdialog.h
|
||||||
|
$(MOC) configdialog.h -o configdialog.moc
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,464 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <kconfig.h>
|
||||||
|
#include <klocale.h>
|
||||||
|
#include <kglobal.h>
|
||||||
|
#include <qbuttongroup.h>
|
||||||
|
#include <qgroupbox.h>
|
||||||
|
#include <qradiobutton.h>
|
||||||
|
#include <qwhatsthis.h>
|
||||||
|
#include <qcheckbox.h>
|
||||||
|
#include <qcombobox.h>
|
||||||
|
#include <qspinbox.h>
|
||||||
|
#include <qcheckbox.h>
|
||||||
|
#include <kcolorbutton.h>
|
||||||
|
#include <klistview.h>
|
||||||
|
|
||||||
|
#include "deKoratorconfig.h"
|
||||||
|
#include "configdialog.h"
|
||||||
|
#include <themes.h>
|
||||||
|
|
||||||
|
#include <kurlrequester.h>
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// DeKoratorConfig()
|
||||||
|
// -------------
|
||||||
|
// Constructor
|
||||||
|
|
||||||
|
DeKoratorConfig::DeKoratorConfig( KConfig* config, QWidget* parent )
|
||||||
|
: QObject( parent ), config_( 0 ), dialog_( 0 )
|
||||||
|
{
|
||||||
|
// create the configuration object
|
||||||
|
config_ = new KConfig( "kwindeKoratorrc" );
|
||||||
|
KGlobal::locale() ->insertCatalogue( "kwin_deKorator_config" );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// create and show the configuration dialog
|
||||||
|
dialog_ = new ConfigDialog( parent );
|
||||||
|
|
||||||
|
themes_ = new IconThemesConfig( dialog_, dialog_->themesKlstView /*, dialog_->removeThemBtn*/ );
|
||||||
|
|
||||||
|
dialog_->show();
|
||||||
|
|
||||||
|
// load the configuration
|
||||||
|
load( config_ );
|
||||||
|
|
||||||
|
// setup the connections
|
||||||
|
|
||||||
|
// misc
|
||||||
|
connect( dialog_->titlealign, SIGNAL( clicked( int ) ),
|
||||||
|
this, SLOT( selectionChanged( int ) ) );
|
||||||
|
connect( dialog_->useMenuImageChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->ignoreAppIcnCol, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->dblClkCloseChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->showBtmBorderChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->useShdtextChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->activeShdtextXSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->activeShdtextYSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->activeShdColBtn, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->inActiveShdtextXSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->inActiveShdtextYSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->inActiveShdColBtn, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->inActiveShdColBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->btnShiftXSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->btnShiftYSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
|
||||||
|
|
||||||
|
// colors
|
||||||
|
connect( dialog_->colorizeActFramesChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->colorizeActButtonsChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->colorizeInActFramesChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->colorizeInActButtonsChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->useAnimChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->animateEfeectsCombo, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
|
||||||
|
connect( dialog_->stepsSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->intervalSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->KeepAnimateChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
|
||||||
|
connect( dialog_->hoverTypeCombo, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->effectsAmount_SpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->activeHighlightClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->inActiveHighlightClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->decoColorizeComboBox, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->buttonsColorizeComboBox, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
// connect( dialog_->buttonsHoverColorizeComboBox, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
connect( dialog_->useCusBtnClrChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->cusColActBtnChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->cusColInActBtnChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
|
||||||
|
connect( dialog_->closeClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->minClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->maxClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->restoreClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->helpClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->menuClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->stickyClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->stickyDownClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->aboveClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->aboveDownClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->belowClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->belowDownClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->shadeClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->shadeDownClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) );
|
||||||
|
|
||||||
|
// path's
|
||||||
|
connect( dialog_->framesPathKurl, SIGNAL( textChanged( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
dialog_->framesPathKurl->setMode( 2 );
|
||||||
|
connect( dialog_->buttonsPathKurl, SIGNAL( textChanged( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
dialog_->buttonsPathKurl->setMode( 2 );
|
||||||
|
connect( dialog_->useMasks_Chkbox, SIGNAL( clicked() ), SIGNAL( changed() ) );
|
||||||
|
connect( dialog_->masksPathKurl, SIGNAL( textChanged( const QString& ) ), SIGNAL( changed() ) );
|
||||||
|
dialog_->masksPathKurl->setMode( 2 );
|
||||||
|
|
||||||
|
// themes
|
||||||
|
connect( dialog_->themesKlstView, SIGNAL( selectionChanged( QListViewItem * ) ),
|
||||||
|
SLOT( themeSelected( QListViewItem * ) ) );
|
||||||
|
connect( dialog_->installthemeBtn, SIGNAL( clicked( ) ), SLOT( installNewTheme() ) );
|
||||||
|
connect( dialog_->removeThemBtn, SIGNAL( clicked( ) ), SLOT( removeSelectedTheme() ) );
|
||||||
|
connect( dialog_->applyThemeBtn, SIGNAL( clicked( ) ), SLOT( setTheme() ) );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// ~DeKoratorConfig()
|
||||||
|
// --------------
|
||||||
|
// Destructor
|
||||||
|
|
||||||
|
DeKoratorConfig::~DeKoratorConfig()
|
||||||
|
{
|
||||||
|
if ( dialog_ ) delete dialog_;
|
||||||
|
if ( config_ ) delete config_;
|
||||||
|
if ( themes_ ) delete themes_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// selectionChanged()
|
||||||
|
// ------------------
|
||||||
|
// Selection has changed
|
||||||
|
|
||||||
|
void DeKoratorConfig::selectionChanged( int )
|
||||||
|
{
|
||||||
|
emit changed();
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// load()
|
||||||
|
// ------
|
||||||
|
// Load configuration data
|
||||||
|
|
||||||
|
void DeKoratorConfig::load( KConfig* )
|
||||||
|
{
|
||||||
|
// misc
|
||||||
|
config_->setGroup( "MISC" );
|
||||||
|
|
||||||
|
QString value = config_->readEntry( "TitleAlignment", "AlignHCenter" );
|
||||||
|
QRadioButton *button = ( QRadioButton* ) dialog_->titlealign->child( value );
|
||||||
|
if ( button ) button->setChecked( TRUE );
|
||||||
|
dialog_->useMenuImageChkBox->setChecked( config_->readBoolEntry( "UseMenuImage", FALSE ) );
|
||||||
|
dialog_->ignoreAppIcnCol->setChecked( config_->readBoolEntry( "IgnoreAppIconCol", FALSE ) );
|
||||||
|
dialog_->dblClkCloseChkBox->setChecked( config_->readBoolEntry( "DblClkClose", FALSE ) );
|
||||||
|
dialog_->showBtmBorderChkBox->setChecked( config_->readBoolEntry( "ShowBtmBorder", FALSE ) );
|
||||||
|
QColor color = QColor( 150, 150, 150 );
|
||||||
|
dialog_->useShdtextChkBox->setChecked( config_->readBoolEntry( "UseShdtext", FALSE ) );
|
||||||
|
dialog_->activeShdtextXSpinBox->setValue( config_->readNumEntry( "ActiveShdtextX", 0 ) );
|
||||||
|
dialog_->activeShdtextYSpinBox->setValue( config_->readNumEntry( "ActiveShdtextY", 0 ) );
|
||||||
|
dialog_->activeShdColBtn->setColor( config_->readColorEntry( "ActiveShadowColor", &color ) );
|
||||||
|
dialog_->inActiveShdtextXSpinBox->setValue( config_->readNumEntry( "InActiveShdtextX", 0 ) );
|
||||||
|
dialog_->inActiveShdtextYSpinBox->setValue( config_->readNumEntry( "InActiveShdtextY", 0 ) );
|
||||||
|
dialog_->inActiveShdColBtn->setColor( config_->readColorEntry( "InActiveShadowColor", &color ) );
|
||||||
|
dialog_->btnShiftXSpinBox->setValue( config_->readNumEntry( "BtnShiftX", 0 ) );
|
||||||
|
dialog_->btnShiftYSpinBox->setValue( config_->readNumEntry( "BtnShiftY", 0 ) );
|
||||||
|
|
||||||
|
|
||||||
|
// colors
|
||||||
|
config_->setGroup( "COLORS" );
|
||||||
|
|
||||||
|
dialog_->colorizeActFramesChkBox->setChecked( config_->readBoolEntry( "ColorizeActFrames", FALSE ) );
|
||||||
|
dialog_->colorizeActButtonsChkBox->setChecked( config_->readBoolEntry( "ColorizeActButtons", FALSE ) );
|
||||||
|
dialog_->colorizeInActFramesChkBox->setChecked( config_->readBoolEntry( "ColorizeInActFrames", FALSE ) );
|
||||||
|
dialog_->colorizeInActButtonsChkBox->setChecked( config_->readBoolEntry( "ColorizeInActButtons", FALSE ) );
|
||||||
|
dialog_->useAnimChkBox->setChecked( config_->readBoolEntry( "UseAnimation", FALSE ) );
|
||||||
|
dialog_->animateEfeectsCombo->setCurrentText( config_->readEntry( "AnimationType", "Intensity" ) );
|
||||||
|
|
||||||
|
dialog_->stepsSpinBox->setValue( config_->readNumEntry( "AnimSteps", 5 ) );
|
||||||
|
dialog_->intervalSpinBox->setValue( config_->readNumEntry( "AnimInterval", 30 ) );
|
||||||
|
dialog_->KeepAnimateChkBox->setChecked( config_->readBoolEntry( "KeepAnimating", FALSE ) );
|
||||||
|
|
||||||
|
dialog_->activeHighlightClrBtn->setColor( config_->readColorEntry( "ActiveHighlightColor", &color ) );
|
||||||
|
dialog_->inActiveHighlightClrBtn->setColor( config_->readColorEntry( "InActiveHighlightColor", &color ) );
|
||||||
|
dialog_->hoverTypeCombo->setCurrentText( config_->readEntry( "ButtonsHoverType", "To Gray" ) );
|
||||||
|
dialog_->effectsAmount_SpinBox->setValue( config_->readNumEntry( "EffectAmount", 5 ) );
|
||||||
|
dialog_->decoColorizeComboBox->setCurrentText( config_->readEntry( "DecoColorize", "Liquid Method" ) );
|
||||||
|
dialog_->buttonsColorizeComboBox->setCurrentText( config_->readEntry( "ButtonsColorize", "Liquid Method" ) );
|
||||||
|
// dialog_->buttonsHoverColorizeComboBox->setCurrentText( config_->readEntry( "ButtonsHoverColorize", "Liquid Method" ) );
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
config_->setGroup( "BUTTONS" );
|
||||||
|
|
||||||
|
dialog_->useCusBtnClrChkBox->setChecked( config_->readBoolEntry( "UseCustomButtonsColors", FALSE ) );
|
||||||
|
dialog_->cusColActBtnChkBox->setChecked( config_->readBoolEntry( "customColorsActiveButtons", FALSE ) );
|
||||||
|
dialog_->cusColInActBtnChkBox->setChecked( config_->readBoolEntry( "customColorsInActiveButtons", FALSE ) );
|
||||||
|
dialog_->closeClrBtn->setColor( config_->readColorEntry( "CloseButtonColor", &color ) );
|
||||||
|
dialog_->minClrBtn->setColor( config_->readColorEntry( "MinButtonColor", &color ) );
|
||||||
|
dialog_->maxClrBtn->setColor( config_->readColorEntry( "MaxButtonColor", &color ) );
|
||||||
|
dialog_->restoreClrBtn->setColor( config_->readColorEntry( "RestoreButtonColor", &color ) );
|
||||||
|
dialog_->helpClrBtn->setColor( config_->readColorEntry( "HelpButtonColor", &color ) );
|
||||||
|
dialog_->menuClrBtn->setColor( config_->readColorEntry( "MenuButtonColor", &color ) );
|
||||||
|
dialog_->stickyClrBtn->setColor( config_->readColorEntry( "StickyButtonColor", &color ) );
|
||||||
|
dialog_->stickyDownClrBtn->setColor( config_->readColorEntry( "StickyDownButtonColor", &color ) );
|
||||||
|
dialog_->aboveClrBtn->setColor( config_->readColorEntry( "AboveButtonColor", &color ) );
|
||||||
|
dialog_->aboveDownClrBtn->setColor( config_->readColorEntry( "AboveDownButtonColor", &color ) );
|
||||||
|
dialog_->belowClrBtn->setColor( config_->readColorEntry( "BelowButtonColor", &color ) );
|
||||||
|
dialog_->belowDownClrBtn->setColor( config_->readColorEntry( "BelowDownButtonColor", &color ) );
|
||||||
|
dialog_->shadeClrBtn->setColor( config_->readColorEntry( "ShadeButtonColor", &color ) );
|
||||||
|
dialog_->shadeDownClrBtn->setColor( config_->readColorEntry( "ShadeDownButtonColor", &color ) );
|
||||||
|
|
||||||
|
// path's
|
||||||
|
config_->setGroup( "PATHS" );
|
||||||
|
|
||||||
|
dialog_->framesPathKurl->setURL( config_->readEntry( "FramesPath", "" ) );
|
||||||
|
dialog_->buttonsPathKurl->setURL( config_->readEntry( "ButtonsPath", "" ) );
|
||||||
|
dialog_->useMasks_Chkbox->setChecked( config_->readBoolEntry( "UseMasks", FALSE ) );
|
||||||
|
dialog_->masksPathKurl->setURL( config_->readEntry( "MasksPath", "" ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// save()
|
||||||
|
// ------
|
||||||
|
// Save configuration data
|
||||||
|
|
||||||
|
void DeKoratorConfig::save( KConfig* )
|
||||||
|
{
|
||||||
|
// misc
|
||||||
|
config_->setGroup( "MISC" );
|
||||||
|
|
||||||
|
QRadioButton *button = ( QRadioButton* ) dialog_->titlealign->selected();
|
||||||
|
if ( button ) config_->writeEntry( "TitleAlignment", QString( button->name() ) );
|
||||||
|
config_->writeEntry( "UseMenuImage", dialog_->useMenuImageChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "IgnoreAppIconCol", dialog_->ignoreAppIcnCol->isChecked() );
|
||||||
|
config_->writeEntry( "DblClkClose", dialog_->dblClkCloseChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "ShowBtmBorder", dialog_->showBtmBorderChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "UseShdtext", dialog_->useShdtextChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "ActiveShdtextX", dialog_->activeShdtextXSpinBox->value() );
|
||||||
|
config_->writeEntry( "ActiveShdtextY", dialog_->activeShdtextYSpinBox->value() );
|
||||||
|
config_->writeEntry( "ActiveShadowColor", dialog_->activeShdColBtn->color() );
|
||||||
|
config_->writeEntry( "InActiveShdtextX", dialog_->inActiveShdtextXSpinBox->value() ); config_->writeEntry( "InActiveShdtextY", dialog_->inActiveShdtextYSpinBox->value() );
|
||||||
|
config_->writeEntry( "InActiveShadowColor", dialog_->inActiveShdColBtn->color() );
|
||||||
|
config_->writeEntry( "BtnShiftX", dialog_->btnShiftXSpinBox->value() );
|
||||||
|
config_->writeEntry( "BtnShiftY", dialog_->btnShiftYSpinBox->value() );
|
||||||
|
|
||||||
|
|
||||||
|
// colors
|
||||||
|
config_->setGroup( "COLORS" );
|
||||||
|
|
||||||
|
config_->writeEntry( "ColorizeActFrames", dialog_->colorizeActFramesChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "ColorizeActButtons", dialog_->colorizeActButtonsChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "ColorizeInActFrames", dialog_->colorizeInActFramesChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "ColorizeInActButtons", dialog_->colorizeInActButtonsChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "UseAnimation", dialog_->useAnimChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "AnimationType", dialog_->animateEfeectsCombo->currentText() );
|
||||||
|
|
||||||
|
config_->writeEntry( "AnimSteps", dialog_->stepsSpinBox->value() );
|
||||||
|
config_->writeEntry( "AnimInterval", dialog_->intervalSpinBox->value() );
|
||||||
|
config_->writeEntry( "KeepAnimating", dialog_->KeepAnimateChkBox->isChecked() );
|
||||||
|
|
||||||
|
config_->writeEntry( "ButtonsHoverType", dialog_->hoverTypeCombo->currentText() );
|
||||||
|
config_->writeEntry( "EffectAmount", dialog_->effectsAmount_SpinBox->value() );
|
||||||
|
config_->writeEntry( "ActiveHighlightColor", dialog_->activeHighlightClrBtn->color() );
|
||||||
|
config_->writeEntry( "InActiveHighlightColor", dialog_->inActiveHighlightClrBtn->color() );
|
||||||
|
config_->writeEntry( "DecoColorize", dialog_->decoColorizeComboBox->currentText() );
|
||||||
|
config_->writeEntry( "ButtonsColorize", dialog_->buttonsColorizeComboBox->currentText() );
|
||||||
|
// config_->writeEntry( "ButtonsHoverColorize", dialog_->buttonsHoverColorizeComboBox->currentText() );
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
config_->setGroup( "BUTTONS" );
|
||||||
|
|
||||||
|
config_->writeEntry( "UseCustomButtonsColors", dialog_->useCusBtnClrChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "customColorsActiveButtons", dialog_->cusColActBtnChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "customColorsInActiveButtons", dialog_->cusColInActBtnChkBox->isChecked() );
|
||||||
|
config_->writeEntry( "CloseButtonColor", dialog_->closeClrBtn->color() );
|
||||||
|
config_->writeEntry( "MinButtonColor", dialog_->minClrBtn->color() );
|
||||||
|
config_->writeEntry( "MaxButtonColor", dialog_->maxClrBtn->color() );
|
||||||
|
config_->writeEntry( "RestoreButtonColor", dialog_->restoreClrBtn->color() );
|
||||||
|
config_->writeEntry( "HelpButtonColor", dialog_->helpClrBtn->color() );
|
||||||
|
config_->writeEntry( "MenuButtonColor", dialog_->menuClrBtn->color() );
|
||||||
|
config_->writeEntry( "StickyButtonColor", dialog_->stickyClrBtn->color() );
|
||||||
|
config_->writeEntry( "StickyDownButtonColor", dialog_->stickyDownClrBtn->color() );
|
||||||
|
config_->writeEntry( "AboveButtonColor", dialog_->aboveClrBtn->color() );
|
||||||
|
config_->writeEntry( "AboveDownButtonColor", dialog_->aboveDownClrBtn->color() );
|
||||||
|
config_->writeEntry( "BelowButtonColor", dialog_->belowClrBtn->color() );
|
||||||
|
config_->writeEntry( "BelowDownButtonColor", dialog_->belowDownClrBtn->color() );
|
||||||
|
config_->writeEntry( "ShadeButtonColor", dialog_->shadeClrBtn->color() );
|
||||||
|
config_->writeEntry( "ShadeDownButtonColor", dialog_->shadeDownClrBtn->color() );
|
||||||
|
|
||||||
|
// path's
|
||||||
|
config_->setGroup( "PATHS" );
|
||||||
|
|
||||||
|
config_->writeEntry( "FramesPath", dialog_->framesPathKurl->url() );
|
||||||
|
config_->writeEntry( "ButtonsPath", dialog_->buttonsPathKurl->url() );
|
||||||
|
config_->writeEntry( "UseMasks", dialog_->useMasks_Chkbox->isChecked() );
|
||||||
|
config_->writeEntry( "MasksPath", dialog_->masksPathKurl->url() );
|
||||||
|
|
||||||
|
config_->sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// defaults()
|
||||||
|
// ----------
|
||||||
|
// Set configuration defaults
|
||||||
|
|
||||||
|
void DeKoratorConfig::defaults()
|
||||||
|
{
|
||||||
|
|
||||||
|
// misc
|
||||||
|
QRadioButton * button =
|
||||||
|
( QRadioButton* ) dialog_->titlealign->child( "AlignHCenter" );
|
||||||
|
if ( button ) button->setChecked( TRUE );
|
||||||
|
dialog_->useMenuImageChkBox->setChecked( FALSE );
|
||||||
|
dialog_->ignoreAppIcnCol->setChecked( FALSE );
|
||||||
|
dialog_->dblClkCloseChkBox->setChecked( FALSE );
|
||||||
|
dialog_->showBtmBorderChkBox->setChecked( FALSE );
|
||||||
|
dialog_->useShdtextChkBox->setChecked( FALSE );
|
||||||
|
dialog_->activeShdtextXSpinBox->setValue( 0 );
|
||||||
|
dialog_->activeShdtextYSpinBox->setValue( 0 );
|
||||||
|
dialog_->activeShdColBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->inActiveShdtextXSpinBox->setValue( 0 );
|
||||||
|
dialog_->inActiveShdtextYSpinBox->setValue( 0 );
|
||||||
|
dialog_->inActiveShdColBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->btnShiftXSpinBox->setValue( 0 );
|
||||||
|
dialog_->btnShiftYSpinBox->setValue( 0 );
|
||||||
|
|
||||||
|
// colors
|
||||||
|
dialog_->colorizeActFramesChkBox->setChecked( FALSE );
|
||||||
|
dialog_->colorizeActButtonsChkBox->setChecked( FALSE );
|
||||||
|
dialog_->colorizeInActFramesChkBox->setChecked( FALSE );
|
||||||
|
dialog_->colorizeInActButtonsChkBox->setChecked( FALSE );
|
||||||
|
dialog_->useAnimChkBox->setChecked( FALSE );
|
||||||
|
dialog_->animateEfeectsCombo->setCurrentText( "Intensity" );
|
||||||
|
|
||||||
|
dialog_->stepsSpinBox->setValue( 5 );
|
||||||
|
dialog_->intervalSpinBox->setValue( 30 );
|
||||||
|
dialog_->KeepAnimateChkBox->setChecked( FALSE );
|
||||||
|
|
||||||
|
dialog_->hoverTypeCombo->setCurrentText( "To Gray" );
|
||||||
|
dialog_->effectsAmount_SpinBox->setValue( 5 );
|
||||||
|
dialog_->activeHighlightClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->inActiveHighlightClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->decoColorizeComboBox->setCurrentText( "Liquid Method" );
|
||||||
|
dialog_->buttonsColorizeComboBox->setCurrentText( "Liquid Method" );
|
||||||
|
// dialog_->buttonsHoverColorizeComboBox->setCurrentText( "Liquid Method" );
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
dialog_->useCusBtnClrChkBox->setChecked( FALSE );
|
||||||
|
dialog_->cusColActBtnChkBox->setChecked( FALSE );
|
||||||
|
dialog_->cusColInActBtnChkBox->setChecked( FALSE );
|
||||||
|
dialog_->closeClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->minClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->maxClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->restoreClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->helpClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->menuClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->stickyClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->stickyDownClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->aboveClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->aboveDownClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->belowClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->belowDownClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->shadeClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
dialog_->shadeDownClrBtn->setColor( QColor( 150, 150, 150 ) );
|
||||||
|
|
||||||
|
// path's
|
||||||
|
dialog_->framesPathKurl->setURL( "" );
|
||||||
|
dialog_->buttonsPathKurl->setURL( "" );
|
||||||
|
dialog_->useMasks_Chkbox->setChecked( config_->readBoolEntry( "UseMasks", FALSE ) );
|
||||||
|
dialog_->masksPathKurl->setURL( "" );
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// themeSelected()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void DeKoratorConfig::themeSelected( QListViewItem *item )
|
||||||
|
{
|
||||||
|
themes_->themeSelected( item, dialog_->previewLabael, dialog_->removeThemBtn );
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// installNewTheme()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void DeKoratorConfig::installNewTheme()
|
||||||
|
{
|
||||||
|
themes_->installNewTheme();
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// removeSelectedTheme()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void DeKoratorConfig::removeSelectedTheme()
|
||||||
|
{
|
||||||
|
themes_->removeSelectedTheme();
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// setTheme()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void DeKoratorConfig::setTheme()
|
||||||
|
{
|
||||||
|
themes_->setTheme( dialog_->framesPathKurl, dialog_->buttonsPathKurl, dialog_->masksPathKurl );
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Plugin Stuff //
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
QObject * allocate_config( KConfig * config, QWidget * parent )
|
||||||
|
{
|
||||||
|
return ( new DeKoratorConfig( config, parent ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "deKoratorconfig.moc"
|
@ -0,0 +1,72 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef EXAMPLECONFIG_H
|
||||||
|
#define EXAMPLECONFIG_H
|
||||||
|
|
||||||
|
#include <qobject.h>
|
||||||
|
|
||||||
|
|
||||||
|
class KConfig;
|
||||||
|
class ConfigDialog;
|
||||||
|
class IconThemesConfig;
|
||||||
|
|
||||||
|
class DeKoratorConfig : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
DeKoratorConfig( KConfig* config, QWidget* parent );
|
||||||
|
~DeKoratorConfig();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void changed();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void load( KConfig* );
|
||||||
|
void save( KConfig* );
|
||||||
|
void defaults();
|
||||||
|
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
void themeSelected( QListViewItem *item );
|
||||||
|
void selectionChanged( int );
|
||||||
|
void installNewTheme();
|
||||||
|
void removeSelectedTheme();
|
||||||
|
void setTheme();
|
||||||
|
private:
|
||||||
|
KConfig *config_;
|
||||||
|
IconThemesConfig *themes_;
|
||||||
|
ConfigDialog *dialog_;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // EXAMPLECONFIG_H
|
@ -0,0 +1,460 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <qfileinfo.h>
|
||||||
|
#include <qlayout.h>
|
||||||
|
#include <qlabel.h>
|
||||||
|
#include <qpushbutton.h>
|
||||||
|
|
||||||
|
#include <kdebug.h>
|
||||||
|
#include <kapplication.h>
|
||||||
|
#include <kstandarddirs.h>
|
||||||
|
#include <kservice.h>
|
||||||
|
#include <klocale.h>
|
||||||
|
#include <ksimpleconfig.h>
|
||||||
|
#undef Unsorted
|
||||||
|
#include <kipc.h>
|
||||||
|
|
||||||
|
#include <klistview.h>
|
||||||
|
#include <kurlrequesterdlg.h>
|
||||||
|
#include <kmessagebox.h>
|
||||||
|
#include <kprogress.h>
|
||||||
|
#include <kiconloader.h>
|
||||||
|
|
||||||
|
#include <kio/job.h>
|
||||||
|
#include <kio/netaccess.h>
|
||||||
|
#include <ktar.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBART
|
||||||
|
#include <ksvgiconengine.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <qdir.h>
|
||||||
|
#include <qpainter.h>
|
||||||
|
#include <qregexp.h>
|
||||||
|
|
||||||
|
#include "themes.h"
|
||||||
|
#include <kurlrequester.h>
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// IconThemesConfig()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
IconThemesConfig::IconThemesConfig( QWidget *parent, KListView *themesView /*, QPushButton *removethemeBtn*/ )
|
||||||
|
{
|
||||||
|
parent_ = parent;
|
||||||
|
themesView_ = themesView;
|
||||||
|
//removeThemeBtn_ = removethemeBtn;
|
||||||
|
|
||||||
|
loadThemes();
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// ~IconThemesConfig()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
IconThemesConfig::~IconThemesConfig()
|
||||||
|
{}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// iconThemeItem()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
QListViewItem *IconThemesConfig::iconThemeItem( const QString &name )
|
||||||
|
{
|
||||||
|
QListViewItem * item;
|
||||||
|
for ( item = themesView_->firstChild(); item ; item = item->nextSibling() )
|
||||||
|
if ( item->text( 0 ) == name ) return item;
|
||||||
|
|
||||||
|
return 0L;
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// loadThemes()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
void IconThemesConfig::loadThemes()
|
||||||
|
{
|
||||||
|
themesView_->clear();
|
||||||
|
m_themeNames.clear();
|
||||||
|
QStringList themelist;
|
||||||
|
QString name;
|
||||||
|
QString place;
|
||||||
|
QStringList::Iterator it, itj;
|
||||||
|
QStringList themesDirs;
|
||||||
|
|
||||||
|
// if no local deKorator folders
|
||||||
|
if ( ! QDir( QDir::homeDirPath() + "/.kde/share/apps/" ).exists( "deKorator" ) )
|
||||||
|
{
|
||||||
|
qWarning( "no dirs, will make them..." );
|
||||||
|
KIO::mkdir( QDir::homeDirPath() + "/.kde/share/apps/deKorator/" );
|
||||||
|
KIO::mkdir( QDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qWarning( "exist" );
|
||||||
|
}
|
||||||
|
|
||||||
|
themesDirs = KGlobal::dirs() ->findDirs( "data", "deKorator/themes" ) ;
|
||||||
|
|
||||||
|
for ( it = themesDirs.begin(); it != themesDirs.end(); ++it )
|
||||||
|
{
|
||||||
|
QDir dir = QDir( *it );
|
||||||
|
themelist = dir.entryList( "*-theme" );
|
||||||
|
|
||||||
|
for ( itj = themelist.begin(); itj != themelist.end(); ++itj )
|
||||||
|
{
|
||||||
|
place = *it;
|
||||||
|
|
||||||
|
name = ( QString ) * itj;
|
||||||
|
|
||||||
|
themesView_->insertItem( new QListViewItem( themesView_, name ) );
|
||||||
|
|
||||||
|
m_themeNames.insert( name, place );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// installNewTheme()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void IconThemesConfig::installNewTheme()
|
||||||
|
{
|
||||||
|
|
||||||
|
KURL themeURL = KURLRequesterDlg::getURL( QString::null, parent_,
|
||||||
|
i18n( "Drag or Type Theme URL" ) );
|
||||||
|
kdDebug() << themeURL.prettyURL() << endl;
|
||||||
|
|
||||||
|
if ( themeURL.url().isEmpty() )
|
||||||
|
return ;
|
||||||
|
|
||||||
|
// themeTmpFile contains the name of the downloaded file
|
||||||
|
QString themeTmpFile;
|
||||||
|
|
||||||
|
if ( !KIO::NetAccess::download( themeURL, themeTmpFile, parent_ ) )
|
||||||
|
{
|
||||||
|
QString sorryText;
|
||||||
|
if ( themeURL.isLocalFile() )
|
||||||
|
sorryText = i18n( "Unable to find the deKorator theme archive %1." );
|
||||||
|
else
|
||||||
|
sorryText = i18n( "Unable to download deKorator theme archive;\n"
|
||||||
|
"please check that address %1 is correct." );
|
||||||
|
KMessageBox::sorry( parent_, sorryText.arg( themeURL.prettyURL() ) );
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
QStringList themesNames = findThemeDirs( themeTmpFile );
|
||||||
|
if ( themesNames.isEmpty() )
|
||||||
|
{
|
||||||
|
QString invalidArch( i18n( "The file is not a valid deKorator theme archive." ) );
|
||||||
|
KMessageBox::error( parent_, invalidArch );
|
||||||
|
|
||||||
|
KIO::NetAccess::removeTempFile( themeTmpFile );
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !installThemes( themesNames, themeTmpFile ) )
|
||||||
|
{
|
||||||
|
//FIXME: make me able to know what is wrong....
|
||||||
|
// QStringList instead of bool?
|
||||||
|
QString somethingWrong =
|
||||||
|
i18n( "A problem occurred during the installation process; "
|
||||||
|
"however, most of the themes in the archive have been installed" );
|
||||||
|
KMessageBox::error( parent_, somethingWrong );
|
||||||
|
}
|
||||||
|
|
||||||
|
KIO::NetAccess::removeTempFile( themeTmpFile );
|
||||||
|
|
||||||
|
loadThemes();
|
||||||
|
|
||||||
|
QStringList::Iterator cur = themesNames.at( 0 );
|
||||||
|
|
||||||
|
QListViewItem *item = iconThemeItem( *cur );
|
||||||
|
themesView_->setSelected( item, true );
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// installThemes()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
bool IconThemesConfig::installThemes( const QStringList &themes, const QString &archiveName )
|
||||||
|
{
|
||||||
|
bool everythingOk = true;
|
||||||
|
QString localThemesDir = QDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/";
|
||||||
|
//
|
||||||
|
KProgressDialog progressDiag( parent_, "themeinstallprogress",
|
||||||
|
i18n( "Installing icon themes" ),
|
||||||
|
QString::null,
|
||||||
|
true );
|
||||||
|
progressDiag.setAutoClose( true );
|
||||||
|
progressDiag.progressBar() ->setTotalSteps( themes.count() );
|
||||||
|
progressDiag.show();
|
||||||
|
|
||||||
|
KTar archive( archiveName );
|
||||||
|
archive.open( IO_ReadOnly );
|
||||||
|
kapp->processEvents();
|
||||||
|
|
||||||
|
const KArchiveDirectory* rootDir = archive.directory();
|
||||||
|
|
||||||
|
KArchiveDirectory* currentTheme;
|
||||||
|
for ( QStringList::ConstIterator it = themes.begin(); it != themes.end(); ++it )
|
||||||
|
{
|
||||||
|
progressDiag.setLabel(
|
||||||
|
i18n( "<qt>Installing <strong>%1</strong> theme</qt>" )
|
||||||
|
.arg( *it ) );
|
||||||
|
kapp->processEvents();
|
||||||
|
|
||||||
|
if ( progressDiag.wasCancelled() )
|
||||||
|
break;
|
||||||
|
|
||||||
|
currentTheme = dynamic_cast<KArchiveDirectory*>(
|
||||||
|
const_cast<KArchiveEntry*>(
|
||||||
|
rootDir->entry( *it ) ) );
|
||||||
|
if ( currentTheme == NULL )
|
||||||
|
{
|
||||||
|
// we tell back that something went wrong, but try to install as much
|
||||||
|
// as possible
|
||||||
|
everythingOk = false;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
currentTheme->copyTo( localThemesDir + *it );
|
||||||
|
progressDiag.progressBar() ->advance( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
archive.close();
|
||||||
|
return everythingOk;
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// findThemeDirs()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
QStringList IconThemesConfig::findThemeDirs( const QString &archiveName )
|
||||||
|
{
|
||||||
|
QStringList foundThemes;
|
||||||
|
|
||||||
|
KTar archive( archiveName );
|
||||||
|
archive.open( IO_ReadOnly );
|
||||||
|
const KArchiveDirectory* themeDir = archive.directory();
|
||||||
|
|
||||||
|
KArchiveEntry* possibleDir = 0L;
|
||||||
|
KArchiveDirectory* subDir = 0L;
|
||||||
|
|
||||||
|
// iterate all the dirs looking for an index.theme or index.desktop file
|
||||||
|
QStringList entries = themeDir->entries();
|
||||||
|
for ( QStringList::Iterator it = entries.begin(); it != entries.end(); ++it )
|
||||||
|
{
|
||||||
|
QString name = ( QString ) * it;
|
||||||
|
QRegExp rxp = QRegExp( "*-theme", TRUE, TRUE );
|
||||||
|
int i = name.contains( rxp );
|
||||||
|
if ( !i )
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
possibleDir = const_cast<KArchiveEntry*>( themeDir->entry( *it ) );
|
||||||
|
if ( possibleDir->isDirectory() )
|
||||||
|
{
|
||||||
|
subDir = dynamic_cast<KArchiveDirectory*>( possibleDir );
|
||||||
|
if ( subDir && ( subDir->entry( "deco" ) != NULL && subDir->entry( "buttons" ) != NULL && subDir->entry( "masks" ) != NULL ) )
|
||||||
|
{
|
||||||
|
foundThemes.append( subDir->name() );
|
||||||
|
//qWarning( "found" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
archive.close();
|
||||||
|
|
||||||
|
return foundThemes;
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// removeSelectedTheme()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void IconThemesConfig::removeSelectedTheme()
|
||||||
|
{
|
||||||
|
QListViewItem * selected = themesView_->selectedItem();
|
||||||
|
if ( !selected )
|
||||||
|
return ;
|
||||||
|
|
||||||
|
QString question = i18n( "<qt>Are you sure you want to remove the "
|
||||||
|
"<strong>%1</strong> theme?<br>"
|
||||||
|
"<br>"
|
||||||
|
"This will delete the files installed by this theme.</qt>" ).
|
||||||
|
arg( selected->text( 0 ) );
|
||||||
|
|
||||||
|
int r = KMessageBox::warningContinueCancel( parent_, question, i18n( "Confirmation" ), KStdGuiItem::del() );
|
||||||
|
if ( r != KMessageBox::Continue ) return ;
|
||||||
|
|
||||||
|
QString delTheme = selected->text( 0 );
|
||||||
|
QString deldirStr = QDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" + delTheme;
|
||||||
|
QDir dir = QDir( deldirStr );
|
||||||
|
dir.rename( deldirStr, deldirStr + "del" );
|
||||||
|
|
||||||
|
KIO::del( KURL( deldirStr + "del" ) );
|
||||||
|
|
||||||
|
loadThemes();
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// themeSelected()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void IconThemesConfig::themeSelected( QListViewItem *item, QLabel *previewLabel, QPushButton *btn )
|
||||||
|
{
|
||||||
|
QPixmap previewPix, topLeftCornerBg, leftButtonsBg, leftTitleBg, midTitleBg, rightTitleBg, rightButtonsBg, topRightCornerBg;
|
||||||
|
QPainter painter;
|
||||||
|
int w, h, x;
|
||||||
|
QString dirName( m_themeNames[ item->text( 0 ) ] );
|
||||||
|
|
||||||
|
if ( dirName.contains( "home" ) )
|
||||||
|
{
|
||||||
|
//qWarning("true");
|
||||||
|
btn->setEnabled( true );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
btn->setEnabled( false );
|
||||||
|
//qWarning("false");
|
||||||
|
}
|
||||||
|
|
||||||
|
QString dirNameStr = dirName + item->text( 0 ) + "/deco/" ;
|
||||||
|
topLeftCornerBg.load( dirNameStr + "topLeftCornerBg.png" );
|
||||||
|
leftButtonsBg.load( dirNameStr + "leftButtonsBg" );
|
||||||
|
leftTitleBg.load( dirNameStr + "leftTitleBg.png" );
|
||||||
|
midTitleBg.load( dirNameStr + "midTitleBg.png" );
|
||||||
|
rightTitleBg.load( dirNameStr + "rightTitleBg.png" );
|
||||||
|
rightButtonsBg.load( dirNameStr + "rightButtonsBg.png" );
|
||||||
|
topRightCornerBg.load( dirNameStr + "topRightCornerBg.png" );
|
||||||
|
|
||||||
|
w = topLeftCornerBg.width() + leftButtonsBg.width() + leftTitleBg.width() + midTitleBg.width() + rightTitleBg.width() + rightButtonsBg.width() + topRightCornerBg.width() + 8;
|
||||||
|
h = midTitleBg.height() + 8;
|
||||||
|
previewPix.resize( w, h );
|
||||||
|
//qWarning("%d",w);
|
||||||
|
painter.begin( &previewPix );
|
||||||
|
|
||||||
|
// paint outer rect
|
||||||
|
painter.fillRect( 0, 0, w, h, QColor( 20, 20, 20 ) );
|
||||||
|
|
||||||
|
painter.setPen( QColor( 60, 60, 60 ) );
|
||||||
|
painter.drawRect( 0, 0, w , h );
|
||||||
|
|
||||||
|
painter.setPen( QColor( 80, 80, 80 ) );
|
||||||
|
painter.drawRect( 1, 1, w - 2 , h - 2 );
|
||||||
|
|
||||||
|
painter.setPen( QColor( 180, 180, 180 ) );
|
||||||
|
painter.drawLine( w - 1, 1, w - 1, h - 1 );
|
||||||
|
painter.drawLine( 1, h - 1, w - 2, h - 1 );
|
||||||
|
|
||||||
|
painter.setPen( QColor( 150, 150, 150 ) );
|
||||||
|
painter.drawLine( w - 2, 2, w - 2, h - 2 );
|
||||||
|
painter.drawLine( 2, h - 2, w - 3, h - 2 );
|
||||||
|
|
||||||
|
|
||||||
|
// paint deco tiles
|
||||||
|
x = 4;
|
||||||
|
painter.drawPixmap( x, 4, topLeftCornerBg );
|
||||||
|
|
||||||
|
x += topLeftCornerBg.width();
|
||||||
|
painter.drawPixmap( x, 4, leftButtonsBg );
|
||||||
|
|
||||||
|
x += leftButtonsBg.width();
|
||||||
|
painter.drawPixmap( x , 4, leftTitleBg );
|
||||||
|
|
||||||
|
x += leftTitleBg.width();
|
||||||
|
painter.drawPixmap( x, 4, midTitleBg );
|
||||||
|
|
||||||
|
x += midTitleBg.width();
|
||||||
|
painter.drawPixmap( x, 4, rightTitleBg );
|
||||||
|
|
||||||
|
x += rightTitleBg.width();
|
||||||
|
painter.drawPixmap( x, 4, rightButtonsBg );
|
||||||
|
|
||||||
|
x += rightButtonsBg.width();
|
||||||
|
painter.drawPixmap( x, 4, topRightCornerBg );
|
||||||
|
|
||||||
|
painter.setPen( QColor( 0, 0, 0 ) );
|
||||||
|
painter.drawLine( 4, h - 5, w - 4 , h - 5 );
|
||||||
|
|
||||||
|
painter.end();
|
||||||
|
|
||||||
|
previewLabel->resize( w, h );
|
||||||
|
previewLabel->setPixmap( previewPix );
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// setTheme()
|
||||||
|
// ----------
|
||||||
|
//
|
||||||
|
|
||||||
|
void IconThemesConfig::setTheme( KURLRequester *framesPath, KURLRequester *buttonsPath, KURLRequester *masksPath )
|
||||||
|
{
|
||||||
|
QListViewItem * selected = themesView_->selectedItem();
|
||||||
|
if ( !selected )
|
||||||
|
return ;
|
||||||
|
|
||||||
|
QString dirName( m_themeNames[ selected->text( 0 ) ] );
|
||||||
|
|
||||||
|
QString setTheme = selected->text( 0 );
|
||||||
|
QString setThemeStr = dirName + setTheme;
|
||||||
|
|
||||||
|
framesPath->setURL( setThemeStr + "/deco" );
|
||||||
|
buttonsPath->setURL( setThemeStr + "/buttons" );
|
||||||
|
masksPath->setURL( setThemeStr + "/masks" );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include "themes.moc"
|
@ -0,0 +1,74 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef ICONTHEMES_H
|
||||||
|
#define ICONTHEMES_H
|
||||||
|
|
||||||
|
#include <kcmodule.h>
|
||||||
|
#include <qmap.h>
|
||||||
|
#include <klistview.h>
|
||||||
|
|
||||||
|
class QPushButton;
|
||||||
|
class DeviceManager;
|
||||||
|
class QCheckBox;
|
||||||
|
class QStringList;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class IconThemesConfig : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
IconThemesConfig( QWidget *parent, KListView *themesView/*, QPushButton *removethemeBtn*/ );
|
||||||
|
virtual ~IconThemesConfig();
|
||||||
|
|
||||||
|
void loadThemes();
|
||||||
|
bool installThemes( const QStringList &themes, const QString &archiveName );
|
||||||
|
QStringList findThemeDirs( const QString &archiveName );
|
||||||
|
void themeSelected( QListViewItem *item, QLabel *preview, QPushButton *btn );
|
||||||
|
void installNewTheme();
|
||||||
|
void removeSelectedTheme();
|
||||||
|
void setTheme( KURLRequester *framesPath, KURLRequester *buttonsPath, KURLRequester *masksPath );
|
||||||
|
|
||||||
|
private:
|
||||||
|
QListViewItem *iconThemeItem( const QString &name );
|
||||||
|
KListView *themesView_;
|
||||||
|
QWidget *parent_;
|
||||||
|
//QPushButton *removeThemeBtn_;
|
||||||
|
QListViewItem *m_defaultTheme;
|
||||||
|
QMap <QString, QString>m_themeNames;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // ICONTHEMES_H
|
||||||
|
|
@ -0,0 +1,110 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
** IconThemesConfig meta object code from reading C++ file 'themes.h'
|
||||||
|
**
|
||||||
|
** Created: Wed Dec 7 20:20:14 2005
|
||||||
|
** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.5 edited Sep 2 14:41 $)
|
||||||
|
**
|
||||||
|
** WARNING! All changes made in this file will be lost!
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#undef QT_NO_COMPAT
|
||||||
|
#include "themes.h"
|
||||||
|
#include <qmetaobject.h>
|
||||||
|
#include <qapplication.h>
|
||||||
|
|
||||||
|
#include <private/qucomextra_p.h>
|
||||||
|
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
|
||||||
|
#error "This file was generated using the moc from 3.3.5. It"
|
||||||
|
#error "cannot be used with the include files from this version of Qt."
|
||||||
|
#error "(The moc has changed too much.)"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *IconThemesConfig::className() const
|
||||||
|
{
|
||||||
|
return "IconThemesConfig";
|
||||||
|
}
|
||||||
|
|
||||||
|
QMetaObject *IconThemesConfig::metaObj = 0;
|
||||||
|
static QMetaObjectCleanUp cleanUp_IconThemesConfig( "IconThemesConfig", &IconThemesConfig::staticMetaObject );
|
||||||
|
|
||||||
|
#ifndef QT_NO_TRANSLATION
|
||||||
|
QString IconThemesConfig::tr( const char *s, const char *c )
|
||||||
|
{
|
||||||
|
if ( qApp )
|
||||||
|
return qApp->translate( "IconThemesConfig", s, c, QApplication::DefaultCodec );
|
||||||
|
else
|
||||||
|
return QString::fromLatin1( s );
|
||||||
|
}
|
||||||
|
#ifndef QT_NO_TRANSLATION_UTF8
|
||||||
|
QString IconThemesConfig::trUtf8( const char *s, const char *c )
|
||||||
|
{
|
||||||
|
if ( qApp )
|
||||||
|
return qApp->translate( "IconThemesConfig", s, c, QApplication::UnicodeUTF8 );
|
||||||
|
else
|
||||||
|
return QString::fromUtf8( s );
|
||||||
|
}
|
||||||
|
#endif // QT_NO_TRANSLATION_UTF8
|
||||||
|
|
||||||
|
#endif // QT_NO_TRANSLATION
|
||||||
|
|
||||||
|
QMetaObject* IconThemesConfig::staticMetaObject()
|
||||||
|
{
|
||||||
|
if ( metaObj )
|
||||||
|
return metaObj;
|
||||||
|
QMetaObject* parentObject = KCModule::staticMetaObject();
|
||||||
|
static const QUParameter param_slot_0[] = {
|
||||||
|
{ "item", &static_QUType_ptr, "QListViewItem", QUParameter::In }
|
||||||
|
};
|
||||||
|
static const QUMethod slot_0 = {"themeSelected", 1, param_slot_0 };
|
||||||
|
static const QUMethod slot_1 = {"installNewTheme", 0, 0 };
|
||||||
|
static const QUMethod slot_2 = {"removeSelectedTheme", 0, 0 };
|
||||||
|
static const QMetaData slot_tbl[] = {
|
||||||
|
{ "themeSelected(QListViewItem*)", &slot_0, QMetaData::Protected },
|
||||||
|
{ "installNewTheme()", &slot_1, QMetaData::Protected },
|
||||||
|
{ "removeSelectedTheme()", &slot_2, QMetaData::Protected }
|
||||||
|
};
|
||||||
|
metaObj = QMetaObject::new_metaobject(
|
||||||
|
"IconThemesConfig", parentObject,
|
||||||
|
slot_tbl, 3,
|
||||||
|
0, 0,
|
||||||
|
#ifndef QT_NO_PROPERTIES
|
||||||
|
0, 0,
|
||||||
|
0, 0,
|
||||||
|
#endif // QT_NO_PROPERTIES
|
||||||
|
0, 0 );
|
||||||
|
cleanUp_IconThemesConfig.setMetaObject( metaObj );
|
||||||
|
return metaObj;
|
||||||
|
}
|
||||||
|
|
||||||
|
void* IconThemesConfig::qt_cast( const char* clname )
|
||||||
|
{
|
||||||
|
if ( !qstrcmp( clname, "IconThemesConfig" ) )
|
||||||
|
return this;
|
||||||
|
return KCModule::qt_cast( clname );
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_invoke( int _id, QUObject* _o )
|
||||||
|
{
|
||||||
|
switch ( _id - staticMetaObject()->slotOffset() ) {
|
||||||
|
case 0: themeSelected((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
|
||||||
|
case 1: installNewTheme(); break;
|
||||||
|
case 2: removeSelectedTheme(); break;
|
||||||
|
default:
|
||||||
|
return KCModule::qt_invoke( _id, _o );
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_emit( int _id, QUObject* _o )
|
||||||
|
{
|
||||||
|
return KCModule::qt_emit(_id,_o);
|
||||||
|
}
|
||||||
|
#ifndef QT_NO_PROPERTIES
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_property( int id, int f, QVariant* v)
|
||||||
|
{
|
||||||
|
return KCModule::qt_property( id, f, v);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
|
||||||
|
#endif // QT_NO_PROPERTIES
|
@ -0,0 +1,7 @@
|
|||||||
|
# themes.moc.lo - a libtool object file
|
||||||
|
# Generated by ltmain.sh - GNU libtool 1.5a (1.1240 2003/06/26 06:55:19)
|
||||||
|
#
|
||||||
|
# Please DO NOT delete this file!
|
||||||
|
# It is necessary for linking the library.
|
||||||
|
|
||||||
|
# Name of the PIC object.
|
@ -0,0 +1,5 @@
|
|||||||
|
# KDE Desktop Entry
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=DeKorator
|
||||||
|
X-KDE-Library=kwin3_deKorator
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,322 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef DEKORATORCLIENT_H
|
||||||
|
#define DEKORATORCLIENT_H
|
||||||
|
|
||||||
|
#include <qbutton.h>
|
||||||
|
#include <qbitmap.h>
|
||||||
|
#include <qlabel.h>
|
||||||
|
#include <qlayout.h>
|
||||||
|
#include <qpainter.h>
|
||||||
|
#include <qtooltip.h>
|
||||||
|
#include <qpixmap.h>
|
||||||
|
#include <qapplication.h>
|
||||||
|
#include <qtimer.h>
|
||||||
|
#include <qcursor.h>
|
||||||
|
|
||||||
|
#include <kdecoration.h>
|
||||||
|
#include <kdecorationfactory.h>
|
||||||
|
#include <kconfig.h>
|
||||||
|
#include <kdeversion.h>
|
||||||
|
#include <kglobal.h>
|
||||||
|
#include <kglobalsettings.h>
|
||||||
|
#include <klocale.h>
|
||||||
|
#include <kiconeffect.h>
|
||||||
|
#include <kimageeffect.h>
|
||||||
|
|
||||||
|
#include "shadow.h"
|
||||||
|
|
||||||
|
class QSpacerItem;
|
||||||
|
class QPoint;
|
||||||
|
|
||||||
|
namespace DeKorator
|
||||||
|
{
|
||||||
|
|
||||||
|
class DeKoratorClient;
|
||||||
|
|
||||||
|
enum decoType {
|
||||||
|
topLeftCorner = 0,
|
||||||
|
leftButtons,
|
||||||
|
leftTitle,
|
||||||
|
midTitle,
|
||||||
|
rightTitle,
|
||||||
|
rightButtons,
|
||||||
|
topRightCorner,
|
||||||
|
topLeftFrame,
|
||||||
|
midLeftFrame,
|
||||||
|
buttomLeftFrame,
|
||||||
|
leftButtomFrame,
|
||||||
|
midButtomFrame,
|
||||||
|
rightButtomFrame,
|
||||||
|
topRightFrame,
|
||||||
|
midRightFrame,
|
||||||
|
buttomRightFrame,
|
||||||
|
decoCount
|
||||||
|
};
|
||||||
|
|
||||||
|
enum buttonTypeAll {
|
||||||
|
restore = 0,
|
||||||
|
help,
|
||||||
|
max,
|
||||||
|
min,
|
||||||
|
close,
|
||||||
|
sticky,
|
||||||
|
stickydown,
|
||||||
|
above,
|
||||||
|
abovedown,
|
||||||
|
below,
|
||||||
|
belowdown,
|
||||||
|
shade,
|
||||||
|
shadedown,
|
||||||
|
menu,
|
||||||
|
buttonTypeAllCount
|
||||||
|
};
|
||||||
|
|
||||||
|
enum ButtonType {
|
||||||
|
ButtonHelp = 0,
|
||||||
|
ButtonMax,
|
||||||
|
ButtonMin,
|
||||||
|
ButtonClose,
|
||||||
|
ButtonMenu,
|
||||||
|
ButtonSticky,
|
||||||
|
ButtonAbove,
|
||||||
|
ButtonBelow,
|
||||||
|
ButtonShade,
|
||||||
|
ButtonTypeCount
|
||||||
|
};
|
||||||
|
|
||||||
|
enum pixType {
|
||||||
|
normal = 0,
|
||||||
|
actCol,
|
||||||
|
inActCol,
|
||||||
|
orig,
|
||||||
|
pixTypeCount
|
||||||
|
};
|
||||||
|
|
||||||
|
enum buttonState {
|
||||||
|
regular = 0,
|
||||||
|
hover,
|
||||||
|
press,
|
||||||
|
buttonStateCount
|
||||||
|
};
|
||||||
|
|
||||||
|
// DeKoratorFactory /////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
class DeKoratorFactory: public KDecorationFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DeKoratorFactory();
|
||||||
|
virtual ~DeKoratorFactory();
|
||||||
|
virtual KDecoration *createDecoration( KDecorationBridge *b );
|
||||||
|
virtual bool reset( unsigned long changed );
|
||||||
|
static void colorizePixmap( QPixmap *pix, QColor col, QString colorizeMethod );
|
||||||
|
static bool initialized();
|
||||||
|
QBitmap topLeftCornerBitmap_, topMidBitmap_, topRightCornerBitmap_, buttomLeftCornerBitmap_, buttomMidBitmap_, buttomRightCornerBitmap_;
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool readConfig();
|
||||||
|
void loadPixmaps();
|
||||||
|
void colorizeDecoPixmaps( bool isActive );
|
||||||
|
void colorizeButtonsPixmaps( bool isActive );
|
||||||
|
void initPixmaps();
|
||||||
|
void chooseRightPixmaps();
|
||||||
|
void determineSizes();
|
||||||
|
void prepareDecoWithBgCol();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
static bool colorizeActFrames_;
|
||||||
|
static bool colorizeInActFrames_;
|
||||||
|
static bool needInit_;
|
||||||
|
static bool needReload_;
|
||||||
|
static QString framesPath_;
|
||||||
|
static QString buttonsPath_;
|
||||||
|
static QString masksPath_;
|
||||||
|
public:
|
||||||
|
static bool initialized_;
|
||||||
|
static bool useCustomButtonsColors_;
|
||||||
|
static bool customColorsActiveButtons_;
|
||||||
|
static bool customColorsInActiveButtons_;
|
||||||
|
static bool colorizeActButtons_;
|
||||||
|
static bool colorizeInActButtons_;
|
||||||
|
static QColor cusBtnCol_[ buttonTypeAllCount ];
|
||||||
|
};
|
||||||
|
|
||||||
|
inline bool DeKoratorFactory::initialized()
|
||||||
|
{
|
||||||
|
return initialized_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DeKoratorButton //////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
class DeKoratorButton : public QButton
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
DeKoratorButton( bool isLeft, int buttonWidth, int buttonHeight, DeKoratorClient *parent = 0, const char *name = 0,
|
||||||
|
const QString &tip = NULL, ButtonType type = ButtonHelp, buttonTypeAll btnType = restore );
|
||||||
|
~DeKoratorButton();
|
||||||
|
|
||||||
|
void setPixmap( buttonTypeAll btnType );
|
||||||
|
QSize sizeHint() const;
|
||||||
|
ButtonState lastMousePress() const;
|
||||||
|
void reset();
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
void animate();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void enterEvent( QEvent *e );
|
||||||
|
void leaveEvent( QEvent *e );
|
||||||
|
void mousePressEvent( QMouseEvent *e );
|
||||||
|
void mouseReleaseEvent( QMouseEvent *e );
|
||||||
|
void drawButton( QPainter *painter );
|
||||||
|
QImage* chooseRightHoverEffect( QImage *img, QString res );
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool isLeft_;
|
||||||
|
int buttonWidth_;
|
||||||
|
DeKoratorClient *client_;
|
||||||
|
ButtonType type_;
|
||||||
|
//QPixmap *decoPix_, *decoPixPress_, *decoPixHover_, *decoPixInAct_;
|
||||||
|
ButtonState lastmouse_;
|
||||||
|
int decoPixHeight_;
|
||||||
|
bool hover_;
|
||||||
|
QTimer *animTmr;
|
||||||
|
uint animProgress;
|
||||||
|
QPixmap *btnPixAct_, *btnPixInAct_;
|
||||||
|
buttonTypeAll btnType_;
|
||||||
|
int s;
|
||||||
|
};
|
||||||
|
|
||||||
|
inline Qt::ButtonState DeKoratorButton::lastMousePress() const
|
||||||
|
{
|
||||||
|
return lastmouse_;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void DeKoratorButton::reset()
|
||||||
|
{
|
||||||
|
repaint( FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DeKoratorClient //////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
class DeKoratorClient : public KDecoration
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
DeKoratorClient( KDecorationBridge *b, KDecorationFactory *f );
|
||||||
|
virtual ~DeKoratorClient();
|
||||||
|
|
||||||
|
virtual void init();
|
||||||
|
|
||||||
|
virtual void activeChange();
|
||||||
|
virtual void desktopChange();
|
||||||
|
virtual void captionChange();
|
||||||
|
virtual void iconChange();
|
||||||
|
virtual void maximizeChange();
|
||||||
|
virtual void shadeChange();
|
||||||
|
|
||||||
|
virtual void borders( int &l, int &r, int &t, int &b ) const;
|
||||||
|
virtual void resize( const QSize &size );
|
||||||
|
virtual QSize minimumSize() const;
|
||||||
|
virtual Position mousePosition( const QPoint &point ) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void addButtons( QBoxLayout* layout, const QString& buttons, bool isLeft );
|
||||||
|
|
||||||
|
bool eventFilter( QObject *obj, QEvent *e );
|
||||||
|
void mouseDoubleClickEvent( QMouseEvent *e );
|
||||||
|
void wheelEvent( QWheelEvent *e );
|
||||||
|
void paintEvent( QPaintEvent *e );
|
||||||
|
void resizeEvent( QResizeEvent * );
|
||||||
|
void showEvent( QShowEvent * );
|
||||||
|
void doShape();
|
||||||
|
void updateCaptionBuffer();
|
||||||
|
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void maxButtonPressed();
|
||||||
|
void menuButtonPressed();
|
||||||
|
void aboveButtonPressed();
|
||||||
|
void belowButtonPressed();
|
||||||
|
void shadeButtonPressed();
|
||||||
|
void keepAboveChange( bool );
|
||||||
|
void keepBelowChange( bool );
|
||||||
|
void menuButtonReleased();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DeKoratorButton *button[ ButtonTypeCount ];
|
||||||
|
QVBoxLayout *mainLayout_;
|
||||||
|
QHBoxLayout *titleLayout_ ;
|
||||||
|
QHBoxLayout *midLayout_;
|
||||||
|
QSpacerItem *leftTitleBarSpacer_, *titleBarSpacer_, *rightTitleBarSpacer_, *leftSpacer_, *rightSpacer_, *bottomSpacer_;
|
||||||
|
bool closing_;
|
||||||
|
QPixmap *captionBufferPix_;
|
||||||
|
bool captionBufferDirty_;
|
||||||
|
QImage activeShadowImg_, inActiveShadowImg_;
|
||||||
|
QRegion mask_;
|
||||||
|
bool sizeChanged;
|
||||||
|
QSize oldSize_;
|
||||||
|
public:
|
||||||
|
DeKoratorFactory *decoFactory_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace DeKorator
|
||||||
|
|
||||||
|
#endif // DEKORATORCLIENT_H
|
@ -0,0 +1,129 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "shadow.h"
|
||||||
|
#include <qcolor.h>
|
||||||
|
|
||||||
|
ShadowEngine::ShadowEngine()
|
||||||
|
{
|
||||||
|
thickness_ = 1;
|
||||||
|
multiplicationFactor_ = 10.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ShadowEngine::~ShadowEngine()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QImage ShadowEngine::makeShadow(const QPixmap& textPixmap, const QColor &bgColor)
|
||||||
|
{
|
||||||
|
QImage result;
|
||||||
|
|
||||||
|
// create a new image for for the shaddow
|
||||||
|
int w = textPixmap.width();
|
||||||
|
int h = textPixmap.height();
|
||||||
|
|
||||||
|
// avoid calling these methods for every pixel
|
||||||
|
int bgRed = bgColor.red();
|
||||||
|
int bgGreen = bgColor.green();
|
||||||
|
int bgBlue = bgColor.blue();
|
||||||
|
|
||||||
|
double alphaShadow;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is the source pixmap
|
||||||
|
*/
|
||||||
|
QImage img = textPixmap.convertToImage().convertDepth(32);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Resize the image if necessary
|
||||||
|
*/
|
||||||
|
if ((result.width() != w) || (result.height() != h))
|
||||||
|
{
|
||||||
|
result.create(w, h, 32);
|
||||||
|
}
|
||||||
|
|
||||||
|
result.fill(0); // all black
|
||||||
|
result.setAlphaBuffer(true);
|
||||||
|
|
||||||
|
for (int i = thickness_; i < w - thickness_; i++)
|
||||||
|
{
|
||||||
|
for (int j = thickness_; j < h - thickness_; j++)
|
||||||
|
{
|
||||||
|
alphaShadow = decay(img, i, j);
|
||||||
|
alphaShadow = (alphaShadow > 180.0) ? 180.0 : alphaShadow;
|
||||||
|
// update the shadow's i,j pixel.
|
||||||
|
result.setPixel(i,j, qRgba(bgRed, bgGreen , bgBlue, (int) alphaShadow));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
double ShadowEngine::decay(QImage& source, int i, int j)
|
||||||
|
{
|
||||||
|
// create a new image for the shadow
|
||||||
|
int w = source.width();
|
||||||
|
int h = source.height();
|
||||||
|
int sx, sy;
|
||||||
|
|
||||||
|
double alphaShadow = 0;
|
||||||
|
double opacity = 0;
|
||||||
|
for (int k = 1; k <= thickness_; k++) {
|
||||||
|
/* Generate a shadow thickness_ pixels thicker
|
||||||
|
* on either side than the text image. Ensure
|
||||||
|
* that i +/- k and j +/- k are within the
|
||||||
|
* bounds of the text pixmap.
|
||||||
|
*/
|
||||||
|
opacity = 0;
|
||||||
|
for (int l = -k; l <= k; l++) {
|
||||||
|
if (i < k)
|
||||||
|
sx = 0;
|
||||||
|
else if (i >= w - k)
|
||||||
|
sx = w - 1;
|
||||||
|
else
|
||||||
|
sx = i + l;
|
||||||
|
|
||||||
|
for (int m = -k; m <= k; m++) {
|
||||||
|
if (j < k)
|
||||||
|
sy = 0;
|
||||||
|
else if (j >= h - k)
|
||||||
|
sy = h - 1;
|
||||||
|
else
|
||||||
|
sy = j + m;
|
||||||
|
|
||||||
|
opacity += qGray(source.pixel(sx, sy));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
alphaShadow += opacity / multiplicationFactor_;
|
||||||
|
}
|
||||||
|
return alphaShadow;
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
// -------------------
|
||||||
|
// DeKorator window decoration for KDE
|
||||||
|
// -------------------
|
||||||
|
// Copyright (C) 2005 moty rahamim <moty.rahamim@gmail.com>
|
||||||
|
//
|
||||||
|
// Based on Example-0.8, some ideas and code have been taken from plastik and KCMicons
|
||||||
|
//
|
||||||
|
// Example window decoration for KDE
|
||||||
|
// Copyright (c) 2003, 2004 David Johnson <david@usermode.org>
|
||||||
|
//
|
||||||
|
// Plastik KWin window decoration
|
||||||
|
// Copyright (C) 2003-2005 Sandro Giessl <sandro@giessl.com>
|
||||||
|
//
|
||||||
|
// KCMicons for KDE
|
||||||
|
// Copyright (c) 2000 Antonio Larrosa <larrosa@kde.org>
|
||||||
|
//
|
||||||
|
// 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; see the file COPYING. If not, write to
|
||||||
|
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
// Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __FX_SHADOW
|
||||||
|
#define __FX_SHADOW
|
||||||
|
|
||||||
|
#include <qpixmap.h>
|
||||||
|
#include <qimage.h>
|
||||||
|
#include <qcolor.h>
|
||||||
|
|
||||||
|
class ShadowEngine
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ShadowEngine();
|
||||||
|
~ShadowEngine();
|
||||||
|
void setThickness(int thickness) { thickness_ = thickness; }
|
||||||
|
void setMultiplicationFactor(double factor) { multiplicationFactor_ = factor; }
|
||||||
|
QImage makeShadow(const QPixmap& textPixmap, const QColor &bgColor);
|
||||||
|
private:
|
||||||
|
double decay(QImage& source, int x, int y);
|
||||||
|
|
||||||
|
int thickness_;
|
||||||
|
double multiplicationFactor_;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,110 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
** IconThemesConfig meta object code from reading C++ file 'themes.h'
|
||||||
|
**
|
||||||
|
** Created: Wed Dec 7 21:43:34 2005
|
||||||
|
** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.5 edited Sep 2 14:41 $)
|
||||||
|
**
|
||||||
|
** WARNING! All changes made in this file will be lost!
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#undef QT_NO_COMPAT
|
||||||
|
#include "themes.h"
|
||||||
|
#include <qmetaobject.h>
|
||||||
|
#include <qapplication.h>
|
||||||
|
|
||||||
|
#include <private/qucomextra_p.h>
|
||||||
|
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
|
||||||
|
#error "This file was generated using the moc from 3.3.5. It"
|
||||||
|
#error "cannot be used with the include files from this version of Qt."
|
||||||
|
#error "(The moc has changed too much.)"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *IconThemesConfig::className() const
|
||||||
|
{
|
||||||
|
return "IconThemesConfig";
|
||||||
|
}
|
||||||
|
|
||||||
|
QMetaObject *IconThemesConfig::metaObj = 0;
|
||||||
|
static QMetaObjectCleanUp cleanUp_IconThemesConfig( "IconThemesConfig", &IconThemesConfig::staticMetaObject );
|
||||||
|
|
||||||
|
#ifndef QT_NO_TRANSLATION
|
||||||
|
QString IconThemesConfig::tr( const char *s, const char *c )
|
||||||
|
{
|
||||||
|
if ( qApp )
|
||||||
|
return qApp->translate( "IconThemesConfig", s, c, QApplication::DefaultCodec );
|
||||||
|
else
|
||||||
|
return QString::fromLatin1( s );
|
||||||
|
}
|
||||||
|
#ifndef QT_NO_TRANSLATION_UTF8
|
||||||
|
QString IconThemesConfig::trUtf8( const char *s, const char *c )
|
||||||
|
{
|
||||||
|
if ( qApp )
|
||||||
|
return qApp->translate( "IconThemesConfig", s, c, QApplication::UnicodeUTF8 );
|
||||||
|
else
|
||||||
|
return QString::fromUtf8( s );
|
||||||
|
}
|
||||||
|
#endif // QT_NO_TRANSLATION_UTF8
|
||||||
|
|
||||||
|
#endif // QT_NO_TRANSLATION
|
||||||
|
|
||||||
|
QMetaObject* IconThemesConfig::staticMetaObject()
|
||||||
|
{
|
||||||
|
if ( metaObj )
|
||||||
|
return metaObj;
|
||||||
|
QMetaObject* parentObject = KCModule::staticMetaObject();
|
||||||
|
static const QUParameter param_slot_0[] = {
|
||||||
|
{ "item", &static_QUType_ptr, "QListViewItem", QUParameter::In }
|
||||||
|
};
|
||||||
|
static const QUMethod slot_0 = {"themeSelected", 1, param_slot_0 };
|
||||||
|
static const QUMethod slot_1 = {"installNewTheme", 0, 0 };
|
||||||
|
static const QUMethod slot_2 = {"removeSelectedTheme", 0, 0 };
|
||||||
|
static const QMetaData slot_tbl[] = {
|
||||||
|
{ "themeSelected(QListViewItem*)", &slot_0, QMetaData::Protected },
|
||||||
|
{ "installNewTheme()", &slot_1, QMetaData::Protected },
|
||||||
|
{ "removeSelectedTheme()", &slot_2, QMetaData::Protected }
|
||||||
|
};
|
||||||
|
metaObj = QMetaObject::new_metaobject(
|
||||||
|
"IconThemesConfig", parentObject,
|
||||||
|
slot_tbl, 3,
|
||||||
|
0, 0,
|
||||||
|
#ifndef QT_NO_PROPERTIES
|
||||||
|
0, 0,
|
||||||
|
0, 0,
|
||||||
|
#endif // QT_NO_PROPERTIES
|
||||||
|
0, 0 );
|
||||||
|
cleanUp_IconThemesConfig.setMetaObject( metaObj );
|
||||||
|
return metaObj;
|
||||||
|
}
|
||||||
|
|
||||||
|
void* IconThemesConfig::qt_cast( const char* clname )
|
||||||
|
{
|
||||||
|
if ( !qstrcmp( clname, "IconThemesConfig" ) )
|
||||||
|
return this;
|
||||||
|
return KCModule::qt_cast( clname );
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_invoke( int _id, QUObject* _o )
|
||||||
|
{
|
||||||
|
switch ( _id - staticMetaObject()->slotOffset() ) {
|
||||||
|
case 0: themeSelected((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
|
||||||
|
case 1: installNewTheme(); break;
|
||||||
|
case 2: removeSelectedTheme(); break;
|
||||||
|
default:
|
||||||
|
return KCModule::qt_invoke( _id, _o );
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_emit( int _id, QUObject* _o )
|
||||||
|
{
|
||||||
|
return KCModule::qt_emit(_id,_o);
|
||||||
|
}
|
||||||
|
#ifndef QT_NO_PROPERTIES
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_property( int id, int f, QVariant* v)
|
||||||
|
{
|
||||||
|
return KCModule::qt_property( id, f, v);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IconThemesConfig::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
|
||||||
|
#endif // QT_NO_PROPERTIES
|
@ -0,0 +1,237 @@
|
|||||||
|
/* config.h.in. Generated from configure.in by autoheader. */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
|
||||||
|
#undef HAVE_CARBON_CARBON_H
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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
|
@ -0,0 +1,2 @@
|
|||||||
|
./admin/configure.in.min
|
||||||
|
configure.in.in
|
@ -0,0 +1,118 @@
|
|||||||
|
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 Steet, 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(deKorator, 0.1) 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
|
||||||
|
dnl =======================================================
|
||||||
|
dnl FILE: configure.in.in
|
||||||
|
dnl =======================================================
|
||||||
|
|
||||||
|
#MIN_CONFIG
|
||||||
|
|
||||||
|
dnl PACKAGE set before
|
||||||
|
KDE_CREATE_SUBDIRSLIST
|
||||||
|
AC_CONFIG_FILES([ Makefile ])
|
||||||
|
AC_CONFIG_FILES([ client/Makefile ])
|
||||||
|
AC_CONFIG_FILES([ client/config/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 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,3 @@
|
|||||||
|
#MIN_CONFIG
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(deKorator, 0.3)
|
@ -0,0 +1,199 @@
|
|||||||
|
<?xml version = '1.0'?>
|
||||||
|
<kdevelop>
|
||||||
|
<general>
|
||||||
|
<author>Example-0.8 was written by David Johnson</author>
|
||||||
|
<email>david@usermode.org</email>
|
||||||
|
<version>$VERSION$</version>
|
||||||
|
<projectmanagement>KDevKDEAutoProject</projectmanagement>
|
||||||
|
<primarylanguage>C++</primarylanguage>
|
||||||
|
<keywords>
|
||||||
|
<keyword>Qt</keyword>
|
||||||
|
<keyword>KDE</keyword>
|
||||||
|
</keywords>
|
||||||
|
<projectdirectory>.</projectdirectory>
|
||||||
|
<absoluteprojectpath>false</absoluteprojectpath>
|
||||||
|
<description/>
|
||||||
|
<ignoreparts/>
|
||||||
|
<versioncontrol/>
|
||||||
|
</general>
|
||||||
|
<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>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>opengl</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>stl</toc>
|
||||||
|
<toc>sw</toc>
|
||||||
|
<toc>w3c-dom-level2-html</toc>
|
||||||
|
<toc>w3c-svg</toc>
|
||||||
|
<toc>w3c-uaag10</toc>
|
||||||
|
<toc>wxwidgets_bugs</toc>
|
||||||
|
</ignoretocs>
|
||||||
|
<ignoreqt_xml>
|
||||||
|
<toc>qmake User Guide</toc>
|
||||||
|
</ignoreqt_xml>
|
||||||
|
</kdevdoctreeview>
|
||||||
|
<kdevdebugger>
|
||||||
|
<general>
|
||||||
|
<dbgshell>libtool</dbgshell>
|
||||||
|
<programargs/>
|
||||||
|
<gdbpath/>
|
||||||
|
<configGdbScript/>
|
||||||
|
<runShellScript/>
|
||||||
|
<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>
|
||||||
|
<kdevautoproject>
|
||||||
|
<make>
|
||||||
|
<envvars>
|
||||||
|
<envvar value="1" name="WANT_AUTOCONF_2_5" />
|
||||||
|
<envvar value="1" name="WANT_AUTOMAKE_1_6" />
|
||||||
|
</envvars>
|
||||||
|
<abortonerror>true</abortonerror>
|
||||||
|
<numberofjobs>1</numberofjobs>
|
||||||
|
<dontact>false</dontact>
|
||||||
|
<makebin/>
|
||||||
|
<prio>0</prio>
|
||||||
|
</make>
|
||||||
|
<run>
|
||||||
|
<directoryradio>executable</directoryradio>
|
||||||
|
<customdirectory>/</customdirectory>
|
||||||
|
<mainprogram/>
|
||||||
|
<programargs/>
|
||||||
|
<terminal>false</terminal>
|
||||||
|
<autocompile>true</autocompile>
|
||||||
|
<envvars/>
|
||||||
|
</run>
|
||||||
|
<general>
|
||||||
|
<useconfiguration>default</useconfiguration>
|
||||||
|
</general>
|
||||||
|
<configurations>
|
||||||
|
<default>
|
||||||
|
<envvars/>
|
||||||
|
<configargs>--prefix=/usr</configargs>
|
||||||
|
<builddir/>
|
||||||
|
<topsourcedir/>
|
||||||
|
<cppflags/>
|
||||||
|
<ldflags/>
|
||||||
|
<ccompiler>kdevgccoptions</ccompiler>
|
||||||
|
<cxxcompiler>kdevgppoptions</cxxcompiler>
|
||||||
|
<f77compiler>kdevpgf77options</f77compiler>
|
||||||
|
<ccompilerbinary/>
|
||||||
|
<cxxcompilerbinary/>
|
||||||
|
<f77compilerbinary/>
|
||||||
|
<cflags/>
|
||||||
|
<cxxflags/>
|
||||||
|
<f77flags/>
|
||||||
|
</default>
|
||||||
|
</configurations>
|
||||||
|
</kdevautoproject>
|
||||||
|
<cppsupportpart>
|
||||||
|
<filetemplates>
|
||||||
|
<interfacesuffix>.h</interfacesuffix>
|
||||||
|
<implementationsuffix>.cpp</implementationsuffix>
|
||||||
|
</filetemplates>
|
||||||
|
</cppsupportpart>
|
||||||
|
<kdevcppsupport>
|
||||||
|
<qt>
|
||||||
|
<used>true</used>
|
||||||
|
<version>3</version>
|
||||||
|
<root>/usr/lib/qt3</root>
|
||||||
|
</qt>
|
||||||
|
<codecompletion>
|
||||||
|
<includeGlobalFunctions>true</includeGlobalFunctions>
|
||||||
|
<includeTypes>true</includeTypes>
|
||||||
|
<includeEnums>true</includeEnums>
|
||||||
|
<includeTypedefs>true</includeTypedefs>
|
||||||
|
<automaticCodeCompletion>true</automaticCodeCompletion>
|
||||||
|
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||||
|
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||||
|
<codeCompletionDelay>250</codeCompletionDelay>
|
||||||
|
<argumentsHintDelay>400</argumentsHintDelay>
|
||||||
|
<headerCompletionDelay>250</headerCompletionDelay>
|
||||||
|
</codecompletion>
|
||||||
|
<creategettersetter>
|
||||||
|
<prefixGet/>
|
||||||
|
<prefixSet>set</prefixSet>
|
||||||
|
<prefixVariable>m_,_</prefixVariable>
|
||||||
|
<parameterName>theValue</parameterName>
|
||||||
|
<inlineGet>true</inlineGet>
|
||||||
|
<inlineSet>true</inlineSet>
|
||||||
|
</creategettersetter>
|
||||||
|
<references>
|
||||||
|
<pcs>Qt</pcs>
|
||||||
|
<pcs>KDElibs</pcs>
|
||||||
|
</references>
|
||||||
|
</kdevcppsupport>
|
||||||
|
<kdevdocumentation>
|
||||||
|
<projectdoc>
|
||||||
|
<docsystem/>
|
||||||
|
<docurl/>
|
||||||
|
<usermanualurl/>
|
||||||
|
</projectdoc>
|
||||||
|
</kdevdocumentation>
|
||||||
|
<kdevvisualadvance>
|
||||||
|
<emulator>VisualBoyAdvance</emulator>
|
||||||
|
<binary/>
|
||||||
|
<addOptions/>
|
||||||
|
<terminal>false</terminal>
|
||||||
|
<fullscreen>false</fullscreen>
|
||||||
|
<graphicFilter>-f0</graphicFilter>
|
||||||
|
<scaling>-1</scaling>
|
||||||
|
</kdevvisualadvance>
|
||||||
|
<ctagspart>
|
||||||
|
<customArguments/>
|
||||||
|
<customTagfilePath/>
|
||||||
|
</ctagspart>
|
||||||
|
</kdevelop>
|
Binary file not shown.
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||||
|
<!DOCTYPE KDevPrjSession>
|
||||||
|
<KDevPrjSession>
|
||||||
|
<DocsAndViews NumberOfDocuments="6" >
|
||||||
|
<Doc0 NumberOfViews="1" URL="file:///home/moty/workspace/deKorator/0.3/deKorator-0.3/client/deKoratorclient.cc" >
|
||||||
|
<View0 Type="Source" />
|
||||||
|
</Doc0>
|
||||||
|
<Doc1 NumberOfViews="1" URL="file:///home/moty/workspace/deKorator/0.3/deKorator-0.3/client/deKoratorclient.h" >
|
||||||
|
<View0 Type="Source" />
|
||||||
|
</Doc1>
|
||||||
|
<Doc2 NumberOfViews="1" URL="file:///home/moty/workspace/deKorator/0.3/deKorator-0.3/client/config/themes.h" >
|
||||||
|
<View0 Type="Source" />
|
||||||
|
</Doc2>
|
||||||
|
<Doc3 NumberOfViews="1" URL="file:///home/moty/workspace/deKorator/0.3/deKorator-0.3/client/config/themes.cpp" >
|
||||||
|
<View0 Type="Source" />
|
||||||
|
</Doc3>
|
||||||
|
<Doc4 NumberOfViews="1" URL="file:///home/moty/workspace/deKorator/0.3/deKorator-0.3/client/config/deKoratorconfig.cc" >
|
||||||
|
<View0 Type="Source" />
|
||||||
|
</Doc4>
|
||||||
|
<Doc5 NumberOfViews="1" URL="file:///home/moty/workspace/deKorator/0.3/deKorator-0.3/client/config/deKoratorconfig.h" >
|
||||||
|
<View0 line="32" Type="Source" />
|
||||||
|
</Doc5>
|
||||||
|
</DocsAndViews>
|
||||||
|
<pluginList>
|
||||||
|
<kdevdebugger>
|
||||||
|
<breakpointList/>
|
||||||
|
</kdevdebugger>
|
||||||
|
<kdevbookmarks>
|
||||||
|
<bookmarks>
|
||||||
|
<bookmark url="/home/moty/workspace/deKorator/deKorator-0.1/client/deKoratorclient.cc" >
|
||||||
|
<mark line="0" />
|
||||||
|
<mark line="1874" />
|
||||||
|
</bookmark>
|
||||||
|
</bookmarks>
|
||||||
|
</kdevbookmarks>
|
||||||
|
<kdevvalgrind>
|
||||||
|
<executable path="" params="" />
|
||||||
|
<valgrind path="" params="" />
|
||||||
|
<calltree path="" params="" />
|
||||||
|
<kcachegrind path="" />
|
||||||
|
</kdevvalgrind>
|
||||||
|
</pluginList>
|
||||||
|
</KDevPrjSession>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,106 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
|
||||||
|
<head>
|
||||||
|
<title>deKorator guide</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Summary</h1>
|
||||||
|
<p>deKorator is a kwin engine that takes several user-defined images and presents them as a window decoration. deKorator expects to find those in a theme. Here is a guide for building such a theme.</p>
|
||||||
|
<h1>In the package</h1>
|
||||||
|
<p>deKorator comes with:</p>
|
||||||
|
<ul>
|
||||||
|
<li><strong>default-theme</strong> - Used by default, illustrates some of deKorator's features.</li>
|
||||||
|
<li><strong>ugly-theme</strong> - It's purpose is to understand the way deKorator paints the decorations.</li>
|
||||||
|
</ul>
|
||||||
|
<h1>Names</h1>
|
||||||
|
<p>deKorator expects the same directory structure and file names as the ones in default-theme. Every theme file should end with "-theme" (as in "default-theme"), and should contain all the folders that are in default-theme (deco, buttons, masks).</p>
|
||||||
|
<h1>Sizes</h1>
|
||||||
|
<p>deKorator determines the 4 borders' sizes from:</p>
|
||||||
|
<table border="1" frame="border" rules="all" summary="Border sizes">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Property</th>
|
||||||
|
<th>Source</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td>the left border width</td><td>midLeftFrameBg's width</td></tr>
|
||||||
|
<tr><td>the right border width</td><td>midRightFrameBg's width</td></tr>
|
||||||
|
<tr><td>the top bar height</td><td>midTitleBg's height</td></tr>
|
||||||
|
<tr><td>the bottom border height</td><td>midBottomFrameBg's height</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<p>All parts that build up a specific border should be in the same width or height correspondingly. An example follows for a window decoration with a 10px high top bar, a 20px wide left border, a 30px wide right border and a 40px high bottom border.</p>
|
||||||
|
<p>All tiles in the top bar should be 10 pixel high:</p>
|
||||||
|
<ul>
|
||||||
|
<li>topLeftCornerBg</li>
|
||||||
|
<li>leftButtonsBg</li>
|
||||||
|
<li>leftTitleBg</li>
|
||||||
|
<li>midTitleBg</li>
|
||||||
|
<li>rightTitleBg</li>
|
||||||
|
<li>rightButtonsBg</li>
|
||||||
|
<li>topRightCornerBg</li>
|
||||||
|
</ul>
|
||||||
|
<p>All tiles in the left border should be 20 pixel wide:</p>
|
||||||
|
<ul>
|
||||||
|
<li>topLeftFrameBg</li>
|
||||||
|
<li>midLeftFrameBg</li>
|
||||||
|
<li>bottomLeftFrameBg</li>
|
||||||
|
</ul>
|
||||||
|
<p>All tiles in the right border should be 30 pixel wide:</p>
|
||||||
|
<ul>
|
||||||
|
<li>topRightFrameBg</li>
|
||||||
|
<li>midRightFrameBg</li>
|
||||||
|
<li>bottomRightFrameBg</li>
|
||||||
|
</ul>
|
||||||
|
<p>All tiles in the bottom border should be 40 pixel high:</p>
|
||||||
|
<ul>
|
||||||
|
<li>leftBottomFrameBg</li>
|
||||||
|
<li>midBottomFrameBg</li>
|
||||||
|
<li>rightBottomFrameBg</li>
|
||||||
|
</ul>
|
||||||
|
<p>The corner tiles should fit into the tile grid:</p>
|
||||||
|
<table summary="Corner tiles' sizes">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Tile</th>
|
||||||
|
<th>Height</th>
|
||||||
|
<th>Width</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>topLeftCornerBg</td>
|
||||||
|
<td>10</td>
|
||||||
|
<td>20</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>topRightCornerBg</td>
|
||||||
|
<td>10</td>
|
||||||
|
<td>30</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>leftBottomFrameBg</td>
|
||||||
|
<td>40</td>
|
||||||
|
<td>20</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>rightBottomFrameBg</td>
|
||||||
|
<td>40</td>
|
||||||
|
<td>30</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h1>Buttons</h1>
|
||||||
|
<p>The button images are separated into background and foreground ones.</p>
|
||||||
|
<h2>Background</h2>
|
||||||
|
<p>The button background uses the leftButtonsBg and the rightButtonsBg tiles. Their height should be the same as the top bar's. The background's repeated horizontally to fit the buttons in.</p>
|
||||||
|
<h2>Foreground</h2>
|
||||||
|
<p>The width is determined by the button width. This way theme makers can put the buttons as close as they wish. To make space between buttons you can add transparent pixels to the right and left. A button with a smaller height than the top bar's gets centered vertically. To place the button in a custom height use transparent pixels, too.</p>
|
||||||
|
<h1>Masks</h1>
|
||||||
|
<p>Masks contain only black and white. Black pixels are subtracted from the decoration.</p>
|
||||||
|
<h1>Image format</h1>
|
||||||
|
<p>All images should be in PNG.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,136 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# this simple script will try to port deKorator-0.1 themes tarball to deKorator-0.2 themes format,
|
||||||
|
# before u start make sure that in the tarball u would like to port the names of the folders inside
|
||||||
|
# r named: deco, buttons, masks, and exectly like that no Deco or dEcO will do,
|
||||||
|
# if not so, extract the tarball change the folder names and compress it again.
|
||||||
|
# after that run the portDeK script by clicking it or by typing "sh ./portDek" in console and fallow the instructions.
|
||||||
|
|
||||||
|
|
||||||
|
kdialog --msgbox "choose the theme tarball u woulk like to port."
|
||||||
|
THEME=`kdialog --getopenfilename $HOME ""`
|
||||||
|
echo $THEME
|
||||||
|
|
||||||
|
mkdir "$HOME/port"
|
||||||
|
ark --extract-to "$HOME/port" "$THEME"
|
||||||
|
|
||||||
|
#echo --------------------
|
||||||
|
#ls $HOME/port
|
||||||
|
|
||||||
|
SRCTHEMENAME=`ls "$HOME/port"`
|
||||||
|
#echo --------
|
||||||
|
#echo $SRCTHEMENAME
|
||||||
|
SRCTHEMEDIR="$HOME/port/$SRCTHEMENAME"
|
||||||
|
#echo $SRCTHEMEDIR
|
||||||
|
|
||||||
|
DSTTHEMENAME="$SRCTHEMENAME-theme"
|
||||||
|
#echo $DSTTHEMENAME
|
||||||
|
DSTTHEMEDIR="$HOME/deKtest/$DSTTHEMENAME"
|
||||||
|
echo $DSTTHEMEDIR
|
||||||
|
|
||||||
|
mkdir "$HOME/deKtest"
|
||||||
|
mkdir "$DSTTHEMEDIR"
|
||||||
|
mkdir "$DSTTHEMEDIR/deco"
|
||||||
|
mkdir "$DSTTHEMEDIR/buttons"
|
||||||
|
mkdir "$DSTTHEMEDIR/buttons/normal"
|
||||||
|
mkdir "$DSTTHEMEDIR/buttons/hover"
|
||||||
|
mkdir "$DSTTHEMEDIR/buttons/press"
|
||||||
|
mkdir "$DSTTHEMEDIR/masks"
|
||||||
|
|
||||||
|
|
||||||
|
# if test -f "$SRCTHEMEDIR/deco/topLeftCornerBg.png" ; then
|
||||||
|
# echo --------------
|
||||||
|
# fi
|
||||||
|
|
||||||
|
#deco
|
||||||
|
#top
|
||||||
|
cp "$SRCTHEMEDIR/deco/topLeftCornerBg.png" "$DSTTHEMEDIR/deco/topLeftCornerBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/leftButtonsBg.png" "$DSTTHEMEDIR/deco/leftButtonsBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/leftTitleBg.png" "$DSTTHEMEDIR/deco/leftTitleBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/midTitleBg.png" "$DSTTHEMEDIR/deco/midTitleBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/rightTitleBg.png" "$DSTTHEMEDIR/deco/rightTitleBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/rightButtonsBg.png" "$DSTTHEMEDIR/deco/rightButtonsBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/topRightCornerBg.png" "$DSTTHEMEDIR/deco/topRightCornerBg.png"
|
||||||
|
#left
|
||||||
|
cp "$SRCTHEMEDIR/deco/leftFrameBg.png" "$DSTTHEMEDIR/deco/topLeftFrameBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/leftFrameBg.png" "$DSTTHEMEDIR/deco/midLeftFrameBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/leftFrameBg.png" "$DSTTHEMEDIR/deco/bottomLeftFrameBg.png"
|
||||||
|
#right
|
||||||
|
cp "$SRCTHEMEDIR/deco/rightFrameBg.png" "$DSTTHEMEDIR/deco/topRightFrameBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/rightFrameBg.png" "$DSTTHEMEDIR/deco/midRightFrameBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/rightFrameBg.png" "$DSTTHEMEDIR/deco/bottomRightFrameBg.png"
|
||||||
|
#bottom
|
||||||
|
cp "$SRCTHEMEDIR/deco/buttomLeftCornerBg.png" "$DSTTHEMEDIR/deco/leftBottomFrameBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/buttomFrameBg.png" "$DSTTHEMEDIR/deco/midBottomFrameBg.png"
|
||||||
|
cp "$SRCTHEMEDIR/deco/buttomRightCornerBg.png" "$DSTTHEMEDIR/deco/rightBottomFrameBg.png"
|
||||||
|
|
||||||
|
|
||||||
|
#buttons
|
||||||
|
#normal
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonAboveDown.png" "$DSTTHEMEDIR/buttons/normal/buttonAboveDown.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonAbove.png" "$DSTTHEMEDIR/buttons/normal/buttonAbove.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonBelowDown.png" "$DSTTHEMEDIR/buttons/normal/buttonBelowDown.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonBelow.png" "$DSTTHEMEDIR/buttons/normal/buttonBelow.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonClose.png" "$DSTTHEMEDIR/buttons/normal/buttonClose.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonHelp.png" "$DSTTHEMEDIR/buttons/normal/buttonHelp.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMax.png" "$DSTTHEMEDIR/buttons/normal/buttonMax.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMax.png" "$DSTTHEMEDIR/buttons/normal/buttonRestore.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMin.png" "$DSTTHEMEDIR/buttons/normal/buttonMin.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonShadeDown.png" "$DSTTHEMEDIR/buttons/normal/buttonShadeDown.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonShade.png" "$DSTTHEMEDIR/buttons/normal/buttonShade.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonStickyDown.png" "$DSTTHEMEDIR/buttons/normal/buttonStickyDown.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonSticky.png" "$DSTTHEMEDIR/buttons/normal/buttonSticky.png"
|
||||||
|
|
||||||
|
#hover
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonAboveDown.png" "$DSTTHEMEDIR/buttons/hover/buttonAboveDownHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonAbove.png" "$DSTTHEMEDIR/buttons/hover/buttonAboveHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonBelowDown.png" "$DSTTHEMEDIR/buttons/hover/buttonBelowDownHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonBelow.png" "$DSTTHEMEDIR/buttons/hover/buttonBelowHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonClose.png" "$DSTTHEMEDIR/buttons/hover/buttonCloseHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonHelp.png" "$DSTTHEMEDIR/buttons/hover/buttonHelpHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMax.png" "$DSTTHEMEDIR/buttons/hover/buttonMaxHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMax.png" "$DSTTHEMEDIR/buttons/hover/buttonRestoreHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMin.png" "$DSTTHEMEDIR/buttons/hover/buttonMinHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonShadeDown.png" "$DSTTHEMEDIR/buttons/hover/buttonShadeDownHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonShade.png" "$DSTTHEMEDIR/buttons/hover/buttonShadeHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonStickyDown.png" "$DSTTHEMEDIR/buttons/hover/buttonStickyDownHover.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonSticky.png" "$DSTTHEMEDIR/buttons/hover/buttonStickyHover.png"
|
||||||
|
|
||||||
|
#press
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonAboveDown.png" "$DSTTHEMEDIR/buttons/press/buttonAboveDownPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonAbove.png" "$DSTTHEMEDIR/buttons/press/buttonAbovePress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonBelowDown.png" "$DSTTHEMEDIR/buttons/press/buttonBelowDownPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonBelow.png" "$DSTTHEMEDIR/buttons/press/buttonBelowPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonClose.png" "$DSTTHEMEDIR/buttons/press/buttonClosePress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonHelp.png" "$DSTTHEMEDIR/buttons/press/buttonHelpPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMax.png" "$DSTTHEMEDIR/buttons/press/buttonMaxPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMax.png" "$DSTTHEMEDIR/buttons/press/buttonRestorePress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonMin.png" "$DSTTHEMEDIR/buttons/press/buttonMinPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonShadeDown.png" "$DSTTHEMEDIR/buttons/press/buttonShadeDownPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonShade.png" "$DSTTHEMEDIR/buttons/press/buttonShadePress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonStickyDown.png" "$DSTTHEMEDIR/buttons/press/buttonStickyDownPress.png"
|
||||||
|
cp "$SRCTHEMEDIR/buttons/buttonSticky.png" "$DSTTHEMEDIR/buttons/press/buttonStickyPress.png"
|
||||||
|
|
||||||
|
|
||||||
|
#masks
|
||||||
|
cp "$SRCTHEMEDIR/masks/topLeftCornerBitmap.png" "$DSTTHEMEDIR/masks/topLeftCornerBitmap.png"
|
||||||
|
cp "$SRCTHEMEDIR/masks/topRightCornerBitmap.png" "$DSTTHEMEDIR/masks/topRightCornerBitmap.png"
|
||||||
|
cp "$SRCTHEMEDIR/masks/buttomLeftCornerBitmap.png" "$DSTTHEMEDIR/masks/buttomLeftCornerBitmap.png"
|
||||||
|
cp "$SRCTHEMEDIR/masks/buttomRightCornerBitmap.png" "$DSTTHEMEDIR/masks/buttomRightCornerBitmap.png"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##mkdir "$HOME/test"
|
||||||
|
|
||||||
|
#cp -fr "$DSTTHEMEDIR" "$HOME/test"
|
||||||
|
cd "$HOME/deKtest/"
|
||||||
|
tar czf "$DSTTHEMENAME.tar.gz" *
|
||||||
|
|
||||||
|
cp "$HOME/deKtest/$DSTTHEMENAME.tar.gz" $HOME
|
||||||
|
|
||||||
|
rm -fr "$HOME/port"
|
||||||
|
rm -fr "$HOME/deKtest/"
|
||||||
|
|
||||||
|
kdialog --msgbox "done, theme is located in your home dir."
|
||||||
|
|
||||||
|
exit 0
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue