summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt149
-rwxr-xr-xsrc/dist/build_tarball.sh2
-rwxr-xr-xsrc/dist/createPackage.sh874
-rwxr-xr-xsrc/dist/quick_tarball.sh2
-rw-r--r--src/kile/CMakeL10n.txt2
-rw-r--r--src/kile/CMakeLists.txt297
-rw-r--r--src/kile/complete/CMakeLists.txt17
-rw-r--r--src/kile/complete/abbreviation/CMakeLists.txt7
-rw-r--r--src/kile/complete/dictionary/CMakeLists.txt4
-rw-r--r--src/kile/complete/tex/CMakeLists.txt109
-rw-r--r--src/kile/encodings/CMakeLists.txt8
-rw-r--r--src/kile/help/CMakeLists.txt8
-rw-r--r--src/kile/icons/CMakeLists.txt11
-rw-r--r--src/kile/icons/actions/CMakeLists.txt9
-rw-r--r--src/kile/pics/CMakeLists.txt8
-rw-r--r--src/kile/symbols/CMakeLists.txt70
-rw-r--r--src/kile/symbols/arrows/CMakeLists.txt77
-rw-r--r--src/kile/symbols/cyrillic/CMakeLists.txt164
-rw-r--r--src/kile/symbols/delimiters/CMakeLists.txt44
-rw-r--r--src/kile/symbols/greek/CMakeLists.txt72
-rw-r--r--src/kile/symbols/misc-math/CMakeLists.txt105
-rw-r--r--src/kile/symbols/misc-text/CMakeLists.txt142
-rw-r--r--src/kile/symbols/operators/CMakeLists.txt120
-rw-r--r--src/kile/symbols/relation/CMakeLists.txt159
-rw-r--r--src/kile/symbols/special/CMakeLists.txt185
-rw-r--r--src/kile/syntax/CMakeLists.txt8
-rw-r--r--src/kile/templates/CMakeLists.txt8
-rw-r--r--src/kile/test/CMakeLists.txt20
-rw-r--r--src/patches/.gitignore0
29 files changed, 261 insertions, 2420 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f6d0794..65b1c1b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,139 +1,22 @@
-PROJECT( kile )
-CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
+add_subdirectory( kile )
-SET( KILE_VERSION CACHE STRING "Kile's version; can be used to install special documentation files in share/doc/kile-$KILE_VERSION/" )
+##### other data
-SET( kile_PO_FILE "kile.po" )
-SET( kile_DOCBOOK "index.docbook" )
+tde_create_translated_desktop(
+ SOURCE x-kilepr.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/text
+)
-MACRO( KILE_ADD_DOCBOOK_DIRECTORY _sources _relative_dir _docbook _language )
- # only depend on images
- FILE( GLOB_RECURSE _dependencies ${CMAKE_CURRENT_SOURCE_DIR}/${_relative_dir}/*.[pP][nN][gG] )
- FILE( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_relative_dir} )
-
- SET( _source_docbook ${CMAKE_CURRENT_SOURCE_DIR}/${_relative_dir}/${_docbook} )
- SET( _compiled_docbook ${CMAKE_CURRENT_BINARY_DIR}/${_relative_dir}/index.cache.bz2 )
-
- ADD_CUSTOM_COMMAND(OUTPUT ${_compiled_docbook}
- COMMAND ${KILE_MEINPROC} --check --cache index.cache.bz2 ${_source_docbook}
- DEPENDS ${_dependencies} ${_source_docbook}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_relative_dir}
- COMMENT "Compiling ${_language} docbook in ${_relative_dir}/${_docbook}" )
-
- INSTALL( FILES ${_compiled_docbook} ${_dependencies} DESTINATION share/doc/tde/HTML/${_language})
- SET( ${_sources} ${${_sources}} ${_compiled_docbook} )
-ENDMACRO( KILE_ADD_DOCBOOK_DIRECTORY _sources _docbook _language )
-
-MACRO( KILE_ADD_TRANSLATION_DIRECTORY _sources _relative_dir _file _language )
- FILE( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_relative_dir} )
-
- GET_FILENAME_COMPONENT(_base_name ${_file} NAME_WE)
- SET( _source_file ${CMAKE_CURRENT_SOURCE_DIR}/${_relative_dir}/${_file} )
- SET( _base_compiled_file ${_base_name}.mo)
- SET( _compiled_file ${CMAKE_CURRENT_BINARY_DIR}/${_relative_dir}/${_base_compiled_file} )
-
- ADD_CUSTOM_COMMAND(OUTPUT ${_compiled_file}
- COMMAND ${KILE_MSGFMT} -o ${_compiled_file} ${_source_file}
- DEPENDS ${_source_file}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_relative_dir}
- COMMENT "Compiling ${_language} translation file" )
-
- INSTALL( FILES ${_compiled_file} DESTINATION share/locale/${_language}/LC_MESSAGES )
- SET( ${_sources} ${${_sources}} ${_compiled_file} )
-ENDMACRO( KILE_ADD_TRANSLATION_DIRECTORY _sources _relative_dir _file _language )
-
-MACRO( KILE_ADD_TRANSLATION_DIRECTORIES _documentation_sources _translation_sources _dir )
- FILE( GLOB _subdirectories ${_dir}/* )
-
- FOREACH( _entry ${_subdirectories} )
- IF( IS_DIRECTORY ${_entry} )
- GET_FILENAME_COMPONENT( _language ${_entry} NAME )
- IF( KILE_MSGFMT AND EXISTS ${_entry}/messages )
- KILE_ADD_TRANSLATION_DIRECTORY( ${_translation_sources} translations/${_language}/messages ${kile_PO_FILE} ${_language} )
- SET(_translations_built ${_translations_built} ${_language} )
- ENDIF( KILE_MSGFMT AND EXISTS ${_entry}/messages )
- IF( KILE_MEINPROC AND EXISTS ${_entry}/doc )
- KILE_ADD_DOCBOOK_DIRECTORY( ${_documentation_sources} translations/${_language}/doc ${kile_DOCBOOK} ${_language} )
- SET(_docbooks_built ${_docbooks_built} ${_language} )
- ENDIF( KILE_MEINPROC AND EXISTS ${_entry}/doc )
- ENDIF( IS_DIRECTORY ${_entry} )
- ENDFOREACH( _entry ${_subdirectories} )
-
- IF( _translations_built )
- MESSAGE( STATUS "Building translations for ${_translations_built}" )
- ELSE( _translations_built )
- MESSAGE( STATUS "Not building translations" )
- ENDIF( _translations_built )
-
- IF( _docbooks_built )
- MESSAGE( STATUS "Building documentation for ${_docbooks_built}" )
- ELSE( _docbooks_built )
- MESSAGE( STATUS "Not building additional documentation" )
- ENDIF( _docbooks_built )
-ENDMACRO( KILE_ADD_TRANSLATION_DIRECTORIES _documentation_sources _translation_sources _dir )
-
-MACRO( KILE_FIND_DOC_TOOLS )
- FIND_PROGRAM( KILE_MEINPROC "meinproc" DOC "path of the meinproc executable")
- IF( KILE_MEINPROC )
- MESSAGE( STATUS "Found meinproc executable: ${KILE_MEINPROC}" )
- ELSE( KILE_MEINPROC )
- MESSAGE( STATUS "meinproc executable not found" )
- ENDIF( KILE_MEINPROC )
- FIND_PROGRAM( KILE_MSGFMT "msgfmt" DOC "path of the msgfmt executable")
- IF( KILE_MEINPROC )
- MESSAGE( STATUS "Found msgfmt executable: ${KILE_MSGFMT}" )
- ELSE( KILE_MEINPROC )
- MESSAGE( STATUS "msgfmt executable not found" )
- ENDIF( KILE_MEINPROC )
- IF( KILE_MEINPROC AND KILE_MSGFMT )
- SET( KILE_DOC_TOOLS_FOUND true )
- ENDIF( KILE_MEINPROC AND KILE_MSGFMT )
-ENDMACRO( KILE_FIND_DOC_TOOLS )
-
-IF( EXISTS ${kile_SOURCE_DIR}/doc OR EXISTS ${kile_SOURCE_DIR}/translations )
- KILE_FIND_DOC_TOOLS( )
-ENDIF( EXISTS ${kile_SOURCE_DIR}/doc OR EXISTS ${kile_SOURCE_DIR}/translations )
-
-IF( EXISTS ${kile_SOURCE_DIR}/doc )
- IF( KILE_MEINPROC )
- MESSAGE( STATUS "Building standard documentation")
- KILE_ADD_DOCBOOK_DIRECTORY( kile_DOCUMENTATION_SOURCES doc index.docbook en )
- ENDIF( KILE_MEINPROC )
-ELSE( EXISTS ${kile_SOURCE_DIR}/doc )
- MESSAGE( STATUS "Not building standard documentation")
-ENDIF( EXISTS ${kile_SOURCE_DIR}/doc )
-
-IF( EXISTS ${kile_SOURCE_DIR}/translations )
- IF( KILE_MEINPROC OR KILE_MSGFMT )
- KILE_ADD_TRANSLATION_DIRECTORIES( kile_DOCUMENTATION_SOURCES kile_TRANSLATION_SOURCES ${kile_SOURCE_DIR}/translations )
- ENDIF( KILE_MEINPROC OR KILE_MSGFMT )
-ELSE( EXISTS ${kile_SOURCE_DIR}/translations )
- MESSAGE( STATUS "Not building translations")
-ENDIF( EXISTS ${kile_SOURCE_DIR}/translations )
-
-IF( kile_DOCUMENTATION_SOURCES )
- ADD_CUSTOM_TARGET(docbooks ALL DEPENDS ${kile_DOCUMENTATION_SOURCES})
-ENDIF( kile_DOCUMENTATION_SOURCES )
-
-IF( kile_TRANSLATION_SOURCES )
- ADD_CUSTOM_TARGET(translations ALL DEPENDS ${kile_TRANSLATION_SOURCES})
-ENDIF( kile_TRANSLATION_SOURCES)
-
-ADD_SUBDIRECTORY( kile )
-
-########### install files ###############
-
-INSTALL( FILES x-kilepr.desktop DESTINATION share/mimelink/text )
-
-INSTALL( FILES kile.upd kile1.6_upd.pl kile1.7_upd.pl kile1.9_upd.pl kile1.9-1_upd.pl kile2.0-1_upd.pl kile2.0-2_upd.pl kile2.0-3_upd.pl kile2.0-4_upd.pl kile2.0-5_upd.pl DESTINATION share/apps/tdeconf_update )
-
-IF( KILE_VERSION )
- SET(_KILE_SPECIAL_DOC_DIR "share/doc/kile-${KILE_VERSION}")
-ELSE( KILE_VERSION )
- SET(_KILE_SPECIAL_DOC_DIR "share/doc/kile")
-ENDIF( KILE_VERSION )
-
-INSTALL( FILES AUTHORS ChangeLog README README.cwl kile-remote-control.txt README.MacOSX TODO DESTINATION ${_KILE_SPECIAL_DOC_DIR})
+install(
+ FILES kile.upd
+ DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
+)
+install(
+ PROGRAMS
+ kile1.6_upd.pl kile1.7_upd.pl kile1.9_upd.pl kile1.9-1_upd.pl
+ kile2.0-1_upd.pl kile2.0-2_upd.pl kile2.0-3_upd.pl kile2.0-4_upd.pl kile2.0-5_upd.pl
+ DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
+)
diff --git a/src/dist/build_tarball.sh b/src/dist/build_tarball.sh
deleted file mode 100755
index f1ef637..0000000
--- a/src/dist/build_tarball.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-export UNSERMAKE=no
-./createPackage.sh -ab trunk/extragear/office -a kile --i18n-sub extragear-office --admin branches/KDE/3.5/kde-common/admin -av 1.9 --package
diff --git a/src/dist/createPackage.sh b/src/dist/createPackage.sh
deleted file mode 100755
index 3b97a15..0000000
--- a/src/dist/createPackage.sh
+++ /dev/null
@@ -1,874 +0,0 @@
-#!/bin/bash
-#
-# Extract an application from KDE svn, including documentation and translations.
-#
-# Authors: Michael Buesch <mbuesch@freenet.de>
-# Jeroen Wijnhout <Jeroen.Wijnhout@kdemail.net>
-# Sebastian Trueg
-# Aurelien Gateau
-# Klas Kalass
-# License: GPL (http://www.gnu.org/)
-#
-#
-# Directory lay-out of packages
-# Application:
-# + name-version
-# + admin
-# + src
-# + doc
-# + translations
-# + nl
-# + messages
-# + doc
-# + de (etc.)
-#
-# If the --notoplevel parameter is used everything under src is put into the root dir
-#
-# Translations:
-# + nl
-# + messages
-# + doc
-# + de (etc.)
-
-COPYRIGHT="2005 Michael Buesch <mbuesch@freenet.de>
- 2004-2005 Jeroen Wijnhout <Jeroen.Wijnhout@kdemail.net>
- 2003-2004 Sebastian Trueg
- 2002 Aurelien Gateau
- 2002-2004 Klas Kalass"
-LICENSE="GNU General Public License v2 or later"
-
-SCRIPTNAME="createPackage.sh"
-SCRIPTVERSION='$Revision$'
-SCRIPTVERSION="`echo $SCRIPTVERSION | cut -d ' ' -f2`"
-
-
-function showVersion
-{
- echo "$SCRIPTNAME revision $SCRIPTVERSION"
-}
-
-function showHelp
-{
- showVersion
- echo -e "
-Extract an application from KDE svn, including documentation and translations.
-
-Copyright $COPYRIGHT
-License: $LICENSE
-
-usage:
- $0 -ab <PATH> -a <NAME> [OPTIONS]
-
-These parameters are mandatory:
-
- -ab|--app-base <PATH> Relative (to svnroot) path to the KDE or extragear module.
- Example:
- trunk/extragear/utils
- If you want to checkout from a branch, you might use:
- branches/foobar/1.2
-
- -a|--app <NAME> Name of the application to checkout.
- This is the subdir you want to checkout in --app-base.
-
-The following options are available:
-
- -d|--svnroot <URL> Base URL of the svn repository.
- svn://anonsvn.kde.org/home/kde is the default.
-
- -ib|--i18n-base <PATH> Path to the i18n translations base.
- Default:
- trunk/l10n
-
- -is|--i18n-sub <PATH> Path to the i18n files under the
- \$i18n-base/\$LANGUAGE/messages
- directories. Example:
- extragear-office
-
- -ids|--i18n-docsub <PATH> Path to the i18n docbook files under the
- \$i18n-base/\$LANGUAGE/docs
- directories. Example:
- kdeextragear-2
- Default:
- path of --i18n-sub
-
- --admin <PATH> Path to the /admin/ directory.
- Default:
- trunk/KDE/kde-common/admin
-
- -b|--builddir <DIRNAME> Name of the temporary working directory where
- all files will be put. Default is \"./build\"
-
- -av|--appversion <VERSION> Version of the application (only for correct
- naming of the tar archives).
-
- --nodoc Do not try to get any documentation.
-
- --noi18n Do not search for any translations.
-
- --split Make separate packages for the application and translations.
-
- --package [TYPE] Create tarballs (.tar.gz and/or .tar.bz2).
- You can specify an optional package type: \"gzip\" or \"bzip2\"
- If no type is given, both types will be generated.
-
- --packagedir <TARBALLDIR> Place a copy of the packages into TARBALLDIR.
-
- --postprocess <SCRIPT> Runs SCRIPT on the package, after all data is gathered, but before
- the tarball is generated. This allows packagers to give the
- \"final touch\" to the package.
-
- --pofiles <POFILES> Space seperated list of pofiles this application uses without the extension.
- Defaults to the name of the application.
-
- -l|--languages <LANGUAGES> Space seperated list of languages to search for
- translations. If no languages are specified, all
- available languages will be included.
-
- -el|--exclude-languages <LANGUAGES> Space seperated list of languages not to include
- in the package.
-
- --logfile <FILE> Write all logging information to FILE.
- If FILE is \"no\", no logfile will be created.
-
- --notoplevel Do not create an additional src directory. Do not checkout the top level files.
- Use configure.in.in and Makefile.am from the application's root directory.
-
- -v|--version Version of this script
- -h|--help This Help"
-}
-
-#
-# Some simple helper functions.
-#
-
-function printlog
-{
- if [ -n "$LOGFILE" ]; then
- echo -e "$SCRIPTNAME: $*" >> $LOGFILE
- fi
-}
-
-function printnlog
-{
- if [ -n "$LOGFILE" ]; then
- echo -n -e "$SCRIPTNAME: $*" >> $LOGFILE
- fi
-}
-
-function print
-{
- echo -e "$SCRIPTNAME: $*"
- printlog $*
-}
-
-function printn
-{
- echo -n -e "$SCRIPTNAME: $*"
- printnlog $*
-}
-
-function runCommand
-{
- stdoutlog="$LOGFILE"
- if [ -z "$stdoutlog" ]; then
- stdoutlog="/dev/null"
- fi
- $* >> $stdoutlog 2>&1
- LASTRESULT=$?
- print " [$1 returned $LASTRESULT]"
-}
-
-function runCommandRedirect
-{
- destinationfile=$1
- shift
-
- stdoutlog="$LOGFILE"
- if [ -z "$stdoutlog" ]; then
- stdoutlog="/dev/null"
- fi
- $* > $destinationfile 2>>$stdoutlog
- LASTRESULT=$?
- if [ $LASTRESULT -ne 0 ]; then
- rm $destinationfile
- fi
- print " [$1 returned $LASTRESULT]"
-}
-
-function testParameter
-{
- if [ -z "$2" ]; then
- echo "Please give a value to parameter $1"
- exit 1
- fi
-}
-
-function makeDir
-{
- cd $BUILDDIR
- print " Creating directory $*"
- runCommand mkdir $*
-}
-
-
-#
-# Removes the .svn directories
-#
-function removeVCDirs
-{
- if ! [ -d "$BUILDDIR/$*" ]; then
- return
- fi
- print " Removing VCDirs $*"
- cd $BUILDDIR/$*
- find . -type d -a -name '.svn' | xargs rm -rf
-}
-
-#
-# This is our work-horse. getResource retrieves all
-# data needed to assemble a working package.
-# Available resources:
-# topleveldir, admindir, source, documentation,
-# languagelist, guitranslation, doctranslation
-#
-function getResource
-{
- DESTINATION=$2
- SINGLEFILEHACK="no"
- case $1 in
- topleveldir)
- COMMAND="svn export -N $SVN_CHECKOUT_OPTIONS $SVNROOT/$APPBASE $DESTINATION"
- ;;
- admindir)
- COMMAND="svn export $SVN_CHECKOUT_OPTIONS $SVNROOT/$ADMINDIR $DESTINATION"
- ;;
- source)
- COMMAND="svn export $SVN_CHECKOUT_OPTIONS $SVNROOT/$APPBASE/$APPNAME $DESTINATION"
- ;;
- documentation)
- COMMAND="svn export $SVN_CHECKOUT_OPTIONS $SVNROOT/$APPBASE/doc/$APPNAME $DESTINATION"
- ;;
- languagelist)
- SINGLEFILEHACK="yes"
- COMMAND="svn cat $SVN_CHECKOUT_OPTIONS $SVNROOT/$I18NBASE/subdirs"
- ;;
- guitranslation)
- DESTINATION=$3/$4.po
- SINGLEFILEHACK="yes"
- COMMAND="svn cat $SVN_CHECKOUT_OPTIONS $SVNROOT/$I18NBASE/$2/messages/$I18NSUB/$4.po"
- ;;
- doctranslation)
- DESTINATION=$3
- COMMAND="svn export $SVN_CHECKOUT_OPTIONS $SVNROOT/$I18NBASE/$2/docs/$I18NDOCSUB/$APPNAME $DESTINATION"
- ;;
- *)
- print "ERROR: Unknown resource $1"
- exit 1
- ;;
- esac
-
- print " Retrieving resource: $1"
- printlog " getResource $1: $COMMAND"
-
- cd $BUILDDIR
-
- if [ $SINGLEFILEHACK = "yes" ]; then
- runCommandRedirect $DESTINATION $COMMAND
- else
- runCommand $COMMAND
- fi
-
- if [ $LASTRESULT != "0" ]; then
- print "Warning: Resource \"$1\" is not available."
- fi
- return $LASTRESULT
-}
-
-#
-# Creates the build dir, the dir where the packages
-# are assembled.
-#
-function setupBuildDir
-{
- print "Creating the build directory..."
- print " ($BUILDDIR)"
-
- # clean up first
- if [ -d $BUILDDIR ]; then
- print " Removing the old build directory"
- rm -rf $BUILDDIR
- fi
-
- mkdir $BUILDDIR
-}
-
-#
-# Gather all data in the build dir needed to build
-# the application (without translations).
-#
-function assembleApplicationData
-{
- print "Assembling the source code..."
- APPDIR=$APPNAME-$APPVERSION
- print " ($APPDIR)"
-
- if [ $TOPLEVEL = "yes" ]; then
- getResource "topleveldir" $APPDIR
- fi
-
- getResource "admindir" $APPDIR/admin
-
- if [ $TOPLEVEL = "yes" ]; then
- getResource "source" $APPDIR/src
- else
- getResource "source" $APPDIR
- fi
-}
-
-#
-# Copies the GNU (README, TODO, Changelog, etc.) files.
-#
-function moveGNUFiles
-{
- print " Moving the standard GNU files"
- for file in $GNUFiles
- do
- if [ -f $BUILDDIR/$APPDIR/src/$file ]; then
- mv $BUILDDIR/$APPDIR/src/$file $BUILDDIR/$1
- fi
- done
-}
-
-#
-# Cleanup the application or i18n directory by removing
-# unneccessary files and directories.
-#
-function cleanupDirectory
-{
- dir="$1"
- print "Removing unneccessary files and directories"
- for file in $CLEANUPFILES
- do
- path="$dir/$file"
- if [ -f "$path" ]; then
- rm -f $path
- printlog " Removed file: $path"
- elif [ -d "$path" ]; then
- rm -Rf $path
- printlog " Removed directory: $path"
- fi
- done
-}
-
-#
-# After all data for the app is gathered, some files
-# still need to be shuffled around.
-#
-function postProcessApplicationDir
-{
- print "Post-processing the application directory..."
- if [ $TOPLEVEL = "yes" ]; then
- moveGNUFiles $APPDIR
- fi
-
- if [ ! -z "$POSTPROCESSSCRIPT" ]; then
- print "Running post-processing script..."
- cd $BUILDDIR/$APPDIR
- $POSTPROCESSSCRIPT
- err="$?"
- if [ $err -ne 0 ]; then
- print "ERROR: Post-processing script failed (return status: $err)"
- exit $err
- fi
- print "Post-processing script finished."
- fi
-}
-
-function retrieveDocumentation
-{
- if [ $GETDOC = "no" ]; then
- return
- fi
-
- print "Retrieving the documentation..."
- DOCDIR=$APPDIR/doc
- print " ($DOCDIR)"
-
- getResource "documentation" $DOCDIR
-}
-
-#
-# Determines what languages need to be retrieved.
-# If LANGUAGES was not set using the -l switch,
-# the tde-i18n/subdirs file is used.
-#
-function getLanguageList
-{
- print " Determining which languages to include..."
- if [ -z "$LANGUAGES" ]; then
- getResource "languagelist" languagelist
- if [ -e $BUILDDIR/languagelist ]; then
- LANGUAGES=`cat $BUILDDIR/languagelist`
- rm $BUILDDIR/languagelist
- else
- print "ERROR:"
- print "ERROR: Failed to automatically detect which languages to include."
- print "ERROR:"
- exit 1
- fi
- fi
-
- # Remove the excluded languages from the list
- LANGLIST=""
- for language in $LANGUAGES ; do
- EXCLUDE="false"
- for exclang in $EXCLUDELANGUAGES ; do
- if [ "$exclang" = "$language" ]; then
- EXCLUDE="true"
- break
- fi
- done
- if [ $EXCLUDE = "false" ]; then
- LANGLIST="$LANGLIST $language"
- fi
- done
- LANGUAGES=$LANGLIST
- print "Language list: $LANGUAGES"
-}
-
-#
-# Creates the dir that holds the translations. This is either
-# a "translations" dir in the application build dir, or, if the
-# --split switch is used, the root dir of a separate i18n package.
-#
-function setupI18NDir
-{
- if [ $SPLIT = "yes" ]; then
- I18NDIR="$APPNAME-i18n-$APPVERSION"
-
- getResource "topleveldir" $I18NDIR
- getResource "admindir" $I18NDIR/admin
- moveGNUFiles $I18NDIR
-
- TRANSDIR=$I18NDIR
- else
- I18NDIR=$APPDIR
- TRANSDIR="$I18NDIR/translations"
- makeDir $TRANSDIR
- fi
-}
-
-function createTranslationDirMakefile
-{
- if [ $GETI18N = "no" ]; then
- return
- fi
-
- print " Creating Makefile.am in $1."
- CONTENTS="SUBDIRS=$INCLUDED_LANGUAGES"
- echo $CONTENTS > $1/Makefile.am
-}
-
-function createTranslationMakefile
-{
- print " Creating Makefile.am in $1."
- CONTENTS="SUBDIRS="
- if [ -d "$1/messages" ]; then
- CONTENTS="$CONTENTS messages"
- fi
- if [ -d "$1/doc" ]; then
- CONTENTS="$CONTENTS doc";
- fi
- echo $CONTENTS > $1/Makefile.am
-}
-
-function createTranslationMakefiles
-{
- if [ $GETI18N = "no" ]; then
- return
- fi
-
- for language in $INCLUDED_LANGUAGES ; do
- createTranslationMakefile $BUILDDIR/$TRANSDIR/$language
- done
-}
-
-function createGUITranslationMakefile
-{
- print " Creating Makefile.am in $2."
- echo "KDE_LANG = $1
-SUBDIRS = \$(AUTODIRS)
-POFILES = AUTO" > $2/Makefile.am
-}
-
-function createDocTranslationMakefile
-{
- print " Creating Makefile.am in $2."
- echo "KDE_LANG = $1
-KDE_DOCS=$APPNAME" > $2/Makefile.am
-}
-
-#
-# Get the .po files and put them in xx/messages
-# subdirectories, where xx is the language ISO code.
-#
-function retrieveGUITranslations
-{
- if [ $GETI18N = "no" ]; then
- return
- fi
-
- print "Retrieving GUI translations..."
- setupI18NDir
- print " ($TRANSDIR)"
-
- # determine which languages to get
- getLanguageList
-
- # then get them (its really simple actually)
- INCLUDED_LANGUAGES=""
- for language in $LANGUAGES
- do
- print " Including language $language"
- makeDir $TRANSDIR/$language
- makeDir $TRANSDIR/$language/messages
- INCLUDE_THIS_LANG="yes"
- for pofile in $APP_POFILES; do
- getResource "guitranslation" $language $TRANSDIR/$language/messages $pofile
- if [ ! -e $BUILDDIR/$TRANSDIR/$language/messages/$pofile.po ]; then
- INCLUDE_THIS_LANG="no"
- fi
- done
-
- if [ $INCLUDE_THIS_LANG = "yes" ]; then
- createGUITranslationMakefile $language $BUILDDIR/$TRANSDIR/$language/messages
- INCLUDED_LANGUAGES="$INCLUDED_LANGUAGES $language"
- else
- rm -rf $TRANSDIR/$language
- fi
- done
-}
-
-function retrieveDocTranslations
-{
- if [ $GETI18N = "no" ]; then
- return
- fi
-
- print "Retrieving documentation translations..."
-
- for language in $INCLUDED_LANGUAGES ; do
- print " Including documentation for language $language"
- getResource "doctranslation" $language $TRANSDIR/$language/doc
- if [ -e $BUILDDIR/$TRANSDIR/$language/doc/index.docbook ]
- then
- createDocTranslationMakefile $language $BUILDDIR/$TRANSDIR/$language/doc
- else
- print " No translations for $language docs available."
- rm -rf $TRANSDIR/$language/doc
- fi
- done
-}
-
-#
-# Create the configure script and Makefile.in's.
-#
-function packageApplication
-{
- cd $BUILDDIR
-
- print "Creating configure script and Makefile.in files"
- (cd $APPDIR; runCommand make -f admin/Makefile.common cvs)
-
- cleanupDirectory $APPDIR
-
- TARNAME="$APPNAME-$APPVERSION.tar"
- if [ $PACKAGE = "gzip" ] || [ $PACKAGE = "yes" ]; then
- print "Packaging application ($TARNAME.gz)..."
- $GZIP $TARNAME.gz $APPDIR
- if [ $BUILDDIR != $TARBALLDIR ]; then
- cp $TARNAME.gz $TARBALLDIR
- fi
- fi
- if [ $PACKAGE = "bzip2" ] || [ $PACKAGE = "yes" ]; then
- print "Packaging application ($TARNAME.bz2)..."
- $BZIP2 $TARNAME.bz2 $APPDIR
- if [ $BUILDDIR != $TARBALLDIR ]; then
- cp $TARNAME.bz2 $TARBALLDIR
- fi
- fi
-}
-
-#
-# Create the configure script and Makefile.in's.
-#
-function packageTranslations
-{
- if [ $SPLIT != "yes" ] || [ $GETI18N != "yes" ]; then
- return
- fi
-
- cd $BUILDDIR
-
- print "Creating translations configure script and Makefile.in files"
- (cd $I18NDIR; runCommand make -f admin/Makefile.common cvs)
-
- cleanupDirectory $I18NDIR
-
- TARNAME="$APPNAME-i18n-$APPVERSION.tar"
- if [ $PACKAGE = "gzip" ] || [ $PACKAGE = "yes" ]; then
- print "Packaging translations ($TARNAME.gz)..."
- $GZIP $TARNAME.gz $I18NDIR
- if [ $BUILDDIR != $TARBALLDIR ]; then
- cp $TARNAME.gz $TARBALLDIR
- fi
- fi
- if [ $PACKAGE = "bzip2" ] || [ $PACKAGE = "yes" ]; then
- print "Packaging translations ($TARNAME.bz2)..."
- $BZIP2 $TARNAME.bz2 $I18NDIR
- if [ $BUILDDIR != $TARBALLDIR ]; then
- cp $TARNAME.bz2 $TARBALLDIR
- fi
- fi
-}
-
-#
-# Force the script to quit
-#
-function cancelScript
-{
- errorcode="$1"
- if [ -z "$errorcode" ]
- then
- errorcode="1"
- fi
- print "Script canceled ($errorcode)"
- exit $errorcode
-}
-
-#
-# Do basic parameter checks, print some basic stuff
-# and initialize basic things.
-#
-function initBasic
-{
- trap "cancelScript" SIGINT SIGTERM
-
- if [ -n "$LOGFILE" ]; then
- echo "$SCRIPTNAME revision $SCRIPTVERSION `date`" > $LOGFILE
- fi
-
- if [ -z "$APPBASE" ]; then
- print "You need to specify an application base path (--app-base). See $SCRIPTNAME --help for more info."
- exit 1
- fi
- if [ -t "$APPNAME" ]; then
- print "You need to specify an application name (--app). See $SCRIPTNAME --help for more info."
- exit 1
- fi
- if [ "$GETI18N" = "yes" ] && [ -z "$I18NSUB" ]; then
- print "You need to specify the i18n subdir or disable i18n checkout (--i18n-sub or --noi18n). See $SCRIPTNAME --help for more info."
- exit 1
- fi
- if [ -z "$I18NDOCSUB" ]; then
- I18NDOCSUB="$I18NSUB"
- fi
-
- if [ -z "$APP_POFILES" ]; then
- APP_POFILES="$APPNAME"
- fi
-
- print "Using svn-root: $SVNROOT"
-}
-
-function initVars
-{
- LOGFILE="$PWD/$SCRIPTNAME.log"
-
- APPBASE=""
- APPNAME=""
- SVNROOT="svn://anonsvn.kde.org/home/kde"
- I18NBASE="trunk/l10n"
- I18NSUB=""
- I18NDOCSUB=""
- APP_POFILES=""
- ADMINDIR="trunk/KDE/kde-common/admin"
-
- LASTRESULT="0"
- BUILDDIR="$PWD/build"
- TARBALLDIR=$BUILDDIR
- APPVERSION="`date +%d.%m.%y`"
- GETDOC="yes"
- GETI18N="yes"
- SPLIT="no"
- TOPLEVEL="yes"
- PLAINCONFIGURE="no"
- LISTTAGS="no"
- PACKAGE="no"
- LANGUAGES=""
- EXCLUDELANGUAGES="xx"
- GNUFiles="AUTHORS COPYING ChangeLog INSTALL TODO README README.MacOSX README.cwl kile-remote-control.txt Building-with-cmake.txt"
- CLEANUPFILES="autom4te.cache Makefile.cvs"
- POSTPROCESSSCRIPT=""
-
- SVN_CHECKOUT_OPTIONS=""
-
- BZIP2="tar jcf"
- GZIP="tar zcf"
-}
-
-####################################################################
-## ##
-## Here we start: ##
-## ##
-####################################################################
-
-# Set the default values for options.
-initVars
-
-# Process the options given on the command-line.
-while [ "$#" -gt 0 ]
-do
- case $1 in
- -ab|--app-base)
- testParameter $1 $2
- APPBASE="$2"
- shift
- ;;
- -a|--app)
- testParameter $1 $2
- APPNAME="$2"
- shift
- ;;
- -d|--svnroot)
- testParameter $1 $2
- SVNROOT="$2"
- shift
- ;;
- -ib|--i18n-base)
- testParameter $1 $2
- I18NBASE="$2"
- shift
- ;;
- -is|--i18n-sub)
- testParameter $1 $2
- I18NSUB="$2"
- shift
- ;;
- -ids|--i18n-docsub)
- testParameter $1 $2
- I18NDOCSUB="$2"
- shift
- ;;
- --admin)
- testParameter $1 $2
- ADMINDIR="$2"
- shift
- ;;
- -b|--builddir)
- testParameter $1 $2
- BUILDDIR="$2"
- shift
- ;;
- -av|--appversion)
- testParameter $1 $2
- APPVERSION="$2"
- shift
- ;;
- --pofiles)
- testParameter $1 $2
- APP_POFILES="$APP_POFILES $2"
- shift
- ;;
- --nodoc)
- GETDOC="no"
- ;;
- --noi18n)
- GETI18N="no"
- ;;
- --split)
- SPLIT="yes"
- ;;
- --notoplevel)
- TOPLEVEL="no"
- ;;
- --package)
- PKGTYPE="$2"
- if [ "$PKGTYPE" = "gzip" ] || [ "$PKGTYPE" = "bzip2" ]
- then
- shift
- PACKAGE="$PKGTYPE"
- else
- PACKAGE="yes"
- fi
- ;;
- --packagedir)
- testParameter $1 $2
- TARBALLDIR=$2
- shift
- ;;
- --postprocess)
- testParameter $1 $2
- POSTPROCESSSCRIPT=$2
- shift
- ;;
- -l|--languages)
- testParameter $1 $2
- LANGUAGES="$LANGUAGES $2"
- shift
- ;;
- -el|--exclude-languages)
- testParameter $1 $2
- EXCLUDELANGUAGES="$EXCLUDELANGUAGES $2"
- shift
- ;;
- --logfile)
- testParameter $1 $2
- if [ "$2" = "no" ]
- then
- LOGFILE=""
- else
- if [ "`echo $2 | cut -c1`" = "/" ]
- then
- LOGFILE=$2
- else
- LOGFILE=$PWD/$2
- fi
- fi
- shift
- ;;
- -h|--help)
- showHelp
- exit 0
- ;;
- -v|--version)
- showVersion
- exit 0
- ;;
- *)
- echo "Invalid parameter $1"
- exit 1
- ;;
- esac
- # process the next parameter
- shift
-done
-
-initBasic
-
-# Create the builddir, the place where the package will be assembled.
-# If no builddir is specified is specified "./$APPNAME-build" is used.
-setupBuildDir
-
-assembleApplicationData
-retrieveDocumentation
-
-retrieveGUITranslations
-retrieveDocTranslations
-createTranslationMakefiles
-createTranslationDirMakefile $BUILDDIR/$TRANSDIR
-
-postProcessApplicationDir
-
-packageApplication
-packageTranslations
diff --git a/src/dist/quick_tarball.sh b/src/dist/quick_tarball.sh
deleted file mode 100755
index 1ab037f..0000000
--- a/src/dist/quick_tarball.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-export UNSERMAKE=no
-./createPackage.sh -ab trunk/extragear/office -a kile --noi18n --admin branches/KDE/3.5/kde-common/admin -av 1.9 --package
diff --git a/src/kile/CMakeL10n.txt b/src/kile/CMakeL10n.txt
index 9985596..0af111b 100644
--- a/src/kile/CMakeL10n.txt
+++ b/src/kile/CMakeL10n.txt
@@ -1,6 +1,6 @@
##### create translation templates ##############
tde_l10n_create_template(
- CATALOG "kile"
+ CATALOG "messages/kile"
SOURCES "." "tips"
)
diff --git a/src/kile/CMakeLists.txt b/src/kile/CMakeLists.txt
index 1e3cc68..8a65e26 100644
--- a/src/kile/CMakeLists.txt
+++ b/src/kile/CMakeLists.txt
@@ -1,162 +1,163 @@
-ADD_SUBDIRECTORY( icons )
-ADD_SUBDIRECTORY( pics )
-ADD_SUBDIRECTORY( symbols )
-ADD_SUBDIRECTORY( templates )
-ADD_SUBDIRECTORY( syntax )
-ADD_SUBDIRECTORY( complete )
-ADD_SUBDIRECTORY( help )
-ADD_SUBDIRECTORY( encodings )
-ADD_SUBDIRECTORY( test )
-
-INCLUDE( KDE3Macros )
-INCLUDE( FindPerl )
-
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${TQT_INCLUDE_DIR} )
-
-########### next target ###############
-
-
-# taken from KDE4's KJS CMakeLists.txt file
-
-SET(CREATE_HASH_TABLE ${CMAKE_CURRENT_SOURCE_DIR}/create_hash_table )
-
-MACRO(CREATE_LUT _srcs_LIST _in_FILE _out_FILE _dep_FILE)
- ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
- COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} )
- SET( ${_srcs_LIST} ${${_srcs_LIST}} ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE})
-ENDMACRO(CREATE_LUT)
-
-CREATE_LUT(kile_SRCS kilejscript.cpp kilejscript.lut.h kilejscript.cpp)
-
-SET(kile_SRCS
- ${kile_SRCS}
- latexcmd.cpp
- latexcmddialog.cpp
- texdocdialog.cpp
- userhelp.cpp
- userhelpdialog.cpp
- floatdialog.cpp
- mathenvdialog.cpp
- tabulardialog.cpp
- postscriptdialog.cpp
- previewconfigwidget.cpp
- quickpreview.cpp
- includegraphicsdialog.cpp
- newfilewizard.cpp
- managetemplatesdialog.cpp
- templates.cpp
- usermenudialog.cpp
- kileconfigdialog.cpp
- tabbingdialog.cpp
- symbolview.cpp
- quickdocumentdialog.cpp
- kilefileselect.cpp
- kileapplication.cpp
- docpart.cpp
- kile.cpp
- main.cpp
- kileactions.cpp
- kilestdactions.cpp
- kileinfo.cpp
- kiledocumentinfo.cpp
- kileproject.cpp
- kileprojectdlgs.cpp
- kileprojectview.cpp
- kilelistselector.cpp
- kilelyxserver.cpp
- latexoutputfilter.cpp
- outputinfo.cpp
- latexoutputinfo.cpp
- outputfilter.cpp
- kilegrepdialog.cpp
- kiletool.cpp
- kilelauncher.cpp
- kiletoolmanager.cpp
- kilestdtools.cpp
- kilelogwidget.cpp
- kileoutputwidget.cpp
- kilekonsolewidget.cpp
- kilewizard.cpp
- kilestructurewidget.cpp
- codecompletion.cpp
- configcodecompletion.cpp
- kiletoolconfigwidget.cpp
- kileedit.cpp
- cleandialog.cpp
- kilehelp.cpp
- configstructure.cpp
- convert.cpp
- kiledocmanager.cpp
- kileviewmanager.cpp
- kileeventfilter.cpp
- kileerrorhandler.cpp
- configcheckerdlg.cpp
- configtester.cpp
- kilesidebar.cpp
- plaintolatexconverter.cpp
- kileuntitled.cpp
- kilestatsdlg.cpp
- kilestatswidget.cpp
- previewwidget.cpp
- kilejscript.h
- kilejscript.cpp
- scriptsmanagementwidget.h
- scriptsmanagementwidget.cpp
- editorkeysequencemanager.h
- editorkeysequencemanager.cpp
- kileversion.cpp
- kileabbrevview.cpp
- kileextensions.cpp
- kilemultitabbar.cpp
-)
-KDE3_AUTOMOC(${kile_SRCS})
-
-SET( kile_UI
- helpconfigwidget.ui
- latexconfigwidget.ui
- generalconfigwidget.ui
- configcheckerwidget.ui
- toolconfigwidget.ui
- librarytoolconfigwidget.ui
- processtoolconfigwidget.ui
- quicktoolconfigwidget.ui
- latextoolconfigwidget.ui
- newtoolwizard.ui
- envconfigwidget.ui
- structureconfigwidget.ui
- symbolviewconfig.ui
- scriptingconfigwidget.ui
- graphicsconfigwidget.ui
- newdocumentwidget.ui
+add_subdirectory( icons )
+add_subdirectory( pics )
+add_subdirectory( symbols )
+add_subdirectory( templates )
+add_subdirectory( syntax )
+add_subdirectory( complete )
+add_subdirectory( help )
+add_subdirectory( encodings )
+add_subdirectory( test )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
)
-KDE3_ADD_UI_FILES(kile_SRCS ${kile_UI} )
-
-SET( kile_DCOP_SKEL_SRCS
- kileappIface.h
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
)
-KDE3_ADD_DCOP_SKELS(kile_SRCS ${kile_DCOP_SKEL_SRCS})
-SET( kile_KCFG_SRCS
- kileconfig.kcfgc
+#####
+
+set( _target ${PROJECT_NAME} )
+
+set( ${_target}_SRCS
+ latexcmd.cpp
+ latexcmddialog.cpp
+ texdocdialog.cpp
+ userhelp.cpp
+ userhelpdialog.cpp
+ floatdialog.cpp
+ mathenvdialog.cpp
+ tabulardialog.cpp
+ postscriptdialog.cpp
+ previewconfigwidget.cpp
+ quickpreview.cpp
+ includegraphicsdialog.cpp
+ newfilewizard.cpp
+ managetemplatesdialog.cpp
+ templates.cpp
+ usermenudialog.cpp
+ kileconfigdialog.cpp
+ tabbingdialog.cpp
+ symbolview.cpp
+ quickdocumentdialog.cpp
+ kilefileselect.cpp
+ kileapplication.cpp
+ docpart.cpp
+ kile.cpp
+ main.cpp
+ kileactions.cpp
+ kilestdactions.cpp
+ kileinfo.cpp
+ kiledocumentinfo.cpp
+ kileproject.cpp
+ kileprojectdlgs.cpp
+ kileprojectview.cpp
+ kilelistselector.cpp
+ kilelyxserver.cpp
+ latexoutputfilter.cpp
+ outputinfo.cpp
+ latexoutputinfo.cpp
+ outputfilter.cpp
+ kilegrepdialog.cpp
+ kiletool.cpp
+ kilelauncher.cpp
+ kiletoolmanager.cpp
+ kilestdtools.cpp
+ kilelogwidget.cpp
+ kileoutputwidget.cpp
+ kilekonsolewidget.cpp
+ kilewizard.cpp
+ kilestructurewidget.cpp
+ codecompletion.cpp
+ configcodecompletion.cpp
+ kiletoolconfigwidget.cpp
+ kileedit.cpp
+ cleandialog.cpp
+ kilehelp.cpp
+ configstructure.cpp
+ convert.cpp
+ kiledocmanager.cpp
+ kileviewmanager.cpp
+ kileeventfilter.cpp
+ kileerrorhandler.cpp
+ configcheckerdlg.cpp
+ configtester.cpp
+ kilesidebar.cpp
+ plaintolatexconverter.cpp
+ kileuntitled.cpp
+ kilestatsdlg.cpp
+ kilestatswidget.cpp
+ previewwidget.cpp
+ kilejscript.cpp
+ scriptsmanagementwidget.cpp
+ editorkeysequencemanager.cpp
+ kileversion.cpp
+ kileabbrevview.cpp
+ kileextensions.cpp
+ kilemultitabbar.cpp
+
+ helpconfigwidget.ui
+ latexconfigwidget.ui
+ generalconfigwidget.ui
+ configcheckerwidget.ui
+ toolconfigwidget.ui
+ librarytoolconfigwidget.ui
+ processtoolconfigwidget.ui
+ quicktoolconfigwidget.ui
+ latextoolconfigwidget.ui
+ newtoolwizard.ui
+ envconfigwidget.ui
+ structureconfigwidget.ui
+ symbolviewconfig.ui
+ scriptingconfigwidget.ui
+ graphicsconfigwidget.ui
+ newdocumentwidget.ui
+
+ kileappIface.skel
+
+ kileconfig.kcfgc
)
-KDE3_ADD_KCFG_FILES(kile_SRCS ${kile_KCFG_SRCS})
-
-KDE3_ADD_EXECUTABLE(kile ${kile_SRCS})
+add_custom_command( OUTPUT kilejscript.lut.h
+ COMMAND ${PERL_EXECUTABLE} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/create_hash_table
+ ${CMAKE_CURRENT_SOURCE_DIR}/kilejscript.cpp > kilejscript.lut.h
+ DEPENDS kilejscript.cpp
+)
+set_property( SOURCE kilejscript.cpp APPEND PROPERTY
+ OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/kilejscript.lut.h
+)
-TARGET_LINK_LIBRARIES(kile ${QT_AND_TDECORE_LIBS} kjs tdeprint tdetexteditor katepartinterfaces tdehtml )
+tde_add_executable( ${_target} AUTOMOC
+ SOURCES
+ ${${_target}_SRCS}
+ LINK
+ tdecore-shared
+ tdehtml-shared
+ tdeprint-shared
+ tdetexteditor-shared
+ katepartinterfaces-shared
+ kjs-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
-INSTALL( TARGETS kile DESTINATION bin )
+##### other data
-########### install files ###############
+tde_create_translated_desktop( kile.desktop )
-INSTALL( FILES kile.desktop DESTINATION share/applications/tde )
-INSTALL( FILES kile.kcfg DESTINATION share/config.kcfg )
-INSTALL( FILES kileui.rc docpartui.rc kilestdtools.rc tips DESTINATION share/apps/kile )
+install( FILES kile.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
-KDE3_INSTALL_ICONS( hicolor )
+install(
+ FILES kileui.rc docpartui.rc kilestdtools.rc tips
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
diff --git a/src/kile/complete/CMakeLists.txt b/src/kile/complete/CMakeLists.txt
index 209f0bd..26b9540 100644
--- a/src/kile/complete/CMakeLists.txt
+++ b/src/kile/complete/CMakeLists.txt
@@ -1,3 +1,14 @@
-ADD_SUBDIRECTORY( abbreviation )
-ADD_SUBDIRECTORY( tex )
-ADD_SUBDIRECTORY( dictionary )
+
+file( GLOB _completions RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
+list( SORT _completions )
+
+foreach( _completion IN LISTS _completions )
+ if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_completion} )
+ file( GLOB _files ${_completion}/*.cwl )
+ list( SORT _files )
+ install(
+ FILES ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/complete/${_completion}
+ )
+ endif()
+endforeach()
diff --git a/src/kile/complete/abbreviation/CMakeLists.txt b/src/kile/complete/abbreviation/CMakeLists.txt
deleted file mode 100644
index 1d4ade8..0000000
--- a/src/kile/complete/abbreviation/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-########### install files ###############
-
-INSTALL( FILES
- example.cwl
- fastex.cwl
- DESTINATION share/apps/kile/complete/abbreviation )
diff --git a/src/kile/complete/dictionary/CMakeLists.txt b/src/kile/complete/dictionary/CMakeLists.txt
deleted file mode 100644
index 9954664..0000000
--- a/src/kile/complete/dictionary/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-
-########### install files ###############
-
-INSTALL( FILES example.cwl metapost.cwl DESTINATION share/apps/kile/complete/dictionary )
diff --git a/src/kile/complete/tex/CMakeLists.txt b/src/kile/complete/tex/CMakeLists.txt
deleted file mode 100644
index cf7bb7e..0000000
--- a/src/kile/complete/tex/CMakeLists.txt
+++ /dev/null
@@ -1,109 +0,0 @@
-
-########### install files ###############
-# get this cwl list with "for i in `ls *.cwl -1`; do echo "$i"; done"
-SET(kile_texCompleteFiles
- acronym.cwl
- allrunes.cwl
- amsopn.cwl
- afterpage.cwl
- amsbsy.cwl
- amsfonts.cwl
- amsmath.cwl
- amssymb.cwl
- amsthm.cwl
- array.cwl
- attachfile.cwl
- babel.cwl
- beamerfoils.cwl
- beamerprosper.cwl
- beamerseminar.cwl
- beamertexpower.cwl
- booktabs.cwl
- bm.cwl
- braket.cwl
- calc.cwl
- class-beamer.cwl
- class-letter.cwl
- class-scrartcl,scrreprt,scrbook.cwl
- class-scrlttr2.cwl
- color.cwl
- colortbl.cwl
- coordsys.cwl
- currvita.cwl
- cyrillic.cwl
- diagxy.cwl
- doi.cwl
- enumerate.cwl
- fancybox.cwl
- fancyhdr.cwl
- fancyunits-base.cwl
- fancyunits_big-fractions.cwl
- fancyunits_medium-fractions.cwl
- fancyunits-np.cwl
- fancyunits-per.cwl
- fancyunits_small-fractions.cwl
- fancyvrb.cwl
- float.cwl
- fontspec.cwl
- graphicx.cwl
- glosstex.cwl
- hyperref.cwl
- ifthen.cwl
- import.cwl
- jurabib.cwl
- latex-209.cwl
- latex-dev.cwl
- latex-document.cwl
- latex-l2tabu.cwl
- latex-mathsymbols.cwl
- layout.cwl
- listings.cwl
- logsys.cwl
- longtable.cwl
- lscape.cwl
- manyfoot.cwl
- mdwlist.cwl
- multicol.cwl
- multido.cwl
- nicefrac.sty
- pdfpages.cwl
- psfrag.cwl
- pst-3d.cwl
- pst-blur.cwl
- pst-char.cwl
- pst-coil.cwl
- pst-eps.cwl
- pst-fill.cwl
- pst-node.cwl
- pst-plot.cwl
- pstricks.cwl
- pst-text.cwl
- pst-tree.cwl
- rotating.cwl
- scraddr.cwl
- scrdate.cwl
- scrlfile.cwl
- scrpage2.cwl
- scrtime.cwl
- setspace.cwl
- siunitx.cwl
- siunitx-special.cwl
- subfig.cwl
- supertabular.cwl
- svninfo.cwl
- svn-multi.cwl
- tabularx.cwl
- tex.cwl
- textcomp.cwl
- todonotes.cwl
- url.cwl
- varioref.cwl
- verse.cwl
- virginialake.cwl
- xifthen.cwl
- xltxtra.cwl
- xtab.cwl
- yfonts.cwl
-)
-
-INSTALL( FILES ${kile_texCompleteFiles} DESTINATION share/apps/kile/complete/tex )
diff --git a/src/kile/encodings/CMakeLists.txt b/src/kile/encodings/CMakeLists.txt
index eab0cc2..bdb814b 100644
--- a/src/kile/encodings/CMakeLists.txt
+++ b/src/kile/encodings/CMakeLists.txt
@@ -1,4 +1,10 @@
########### install files ###############
-INSTALL( FILES latin1.enc latin2.enc latin3.enc latin4.enc latin5.enc latin9.enc cp1250.enc cp1252.enc DESTINATION share/apps/kile/encodings )
+file( GLOB _files *.enc )
+list( SORT _files )
+
+install(
+ FILES ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/encodings
+)
diff --git a/src/kile/help/CMakeLists.txt b/src/kile/help/CMakeLists.txt
index 4003afa..7019ff1 100644
--- a/src/kile/help/CMakeLists.txt
+++ b/src/kile/help/CMakeLists.txt
@@ -1,4 +1,10 @@
########### install files ###############
-INSTALL( FILES latex-kile.lst latex-tetex.lst latex-tetex3.lst latex-texlive-3.9.lst DESTINATION share/apps/kile/help )
+file( GLOB _files *.lst )
+list( SORT _files )
+
+install(
+ FILES ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/help
+)
diff --git a/src/kile/icons/CMakeLists.txt b/src/kile/icons/CMakeLists.txt
index 23ff0e4..730c9dc 100644
--- a/src/kile/icons/CMakeLists.txt
+++ b/src/kile/icons/CMakeLists.txt
@@ -1,11 +1,4 @@
-ADD_SUBDIRECTORY( actions )
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${TQT_INCLUDE_DIR} )
-
-INCLUDE(KDE3Macros)
-
-########### install files ###############
-
-
-KDE3_INSTALL_ICONS( hicolor )
+add_subdirectory( actions )
+tde_install_icons( )
diff --git a/src/kile/icons/actions/CMakeLists.txt b/src/kile/icons/actions/CMakeLists.txt
index 9c1c204..4765d15 100644
--- a/src/kile/icons/actions/CMakeLists.txt
+++ b/src/kile/icons/actions/CMakeLists.txt
@@ -1,11 +1,4 @@
-INCLUDE(KDE3Macros)
########### install files ###############
-
-KDE3_INSTALL_ICONS( hicolor )
-
-#original Makefile.am contents follow:
-
-#kileiconsdir = $(kde_datadir)/kile/icons
-#kileicons_ICON = AUTO
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons )
diff --git a/src/kile/pics/CMakeLists.txt b/src/kile/pics/CMakeLists.txt
index 76740c9..60ff6ea 100644
--- a/src/kile/pics/CMakeLists.txt
+++ b/src/kile/pics/CMakeLists.txt
@@ -1,4 +1,10 @@
########### install files ###############
-INSTALL( FILES type_Book.tex.kileicon type_Letter.tex.kileicon type_Scrartcl.tex.kileicon kile_splash_base.png type_Default.png type_Project.png type_Scrbook.tex.kileicon kile_splash.png type_Article.tex.kileicon type_Empty.png type_Prosper.tex.kileicon type_Scrlttr2.tex.kileicon type_Beamer.tex.kileicon type_HA-prosper.tex.kileicon type_Report.tex.kileicon type_Scrreprt.tex.kileicon DESTINATION share/apps/kile/pics )
+file( GLOB _pics *.png *.kileicon )
+list( SORT _pics )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics
+)
diff --git a/src/kile/symbols/CMakeLists.txt b/src/kile/symbols/CMakeLists.txt
index 83c461c..f5ebdb6 100644
--- a/src/kile/symbols/CMakeLists.txt
+++ b/src/kile/symbols/CMakeLists.txt
@@ -1,48 +1,40 @@
-# FILE( GLOB_RECURSE _allFiles * )
-# FOREACH( _file ${_allFiles} )
-# # MESSAGE(STATUS "checking ${_file}")
-# IF( IS_DIRECTORY _file )
-# MESSAGE(STATUS "Installing dir ${_file$}")
-# INSTALL( DIRECTORY _file DESTINATION share/apps/kile/mathsymbols
-# PATTERN ".svn" EXCLUDE
-# PATTERN "Makefile.am" EXCLUDE)
-# ENDIF( IS_DIRECTORY _file )
-# ENDFOREACH( _file )
-
-SET(kile_symbolSubdirs
- arrows
- cyrillic
- delimiters
- greek
- misc-math
- misc-text
- operators
- relation
- special
-)
-# for the future:
-# INSTALL( DIRECTORY ${kile_symbolSubdirs} DESTINATION share/apps/kile/mathsymbols
-# PATTERN ".svn" EXCLUDE
-# PATTERN "Makefile.am" EXCLUDE)
+##### install files
+
+file( GLOB _symbols RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
+list( SORT _symbols )
+
+foreach( _symbol IN LISTS _symbols )
+ if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_symbol} )
+ file( GLOB _files ${_symbol}/*.png )
+ list( SORT _files )
+ install(
+ FILES ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/mathsymbols/${_symbol}
+ )
+ endif()
+endforeach()
-FOREACH( _dir ${kile_symbolSubdirs} )
- ADD_SUBDIRECTORY( ${_dir} )
-ENDFOREACH( _dir )
########### next target ###############
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${TQT_INCLUDE_DIR} )
-INCLUDE( FindKDE3 )
-SET(gesymb_SRCS
- gesymb.cpp
- gesymb.h
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
)
-KDE3_AUTOMOC(${gesymb_SRCS})
-ADD_EXECUTABLE(gesymb EXCLUDE_FROM_ALL ${gesymb_SRCS} )
-TARGET_LINK_LIBRARIES(gesymb ${QT_AND_TDECORE_LIBS} )
-
-########### install files ###############
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+tde_add_executable( gesymb AUTOMOC
+ SOURCES
+ gesymb.cpp
+ LINK
+ ${TQT_LIBRARIES}
+)
diff --git a/src/kile/symbols/arrows/CMakeLists.txt b/src/kile/symbols/arrows/CMakeLists.txt
deleted file mode 100644
index 287edd2..0000000
--- a/src/kile/symbols/arrows/CMakeLists.txt
+++ /dev/null
@@ -1,77 +0,0 @@
-
-SET(symbols
- img001arrows.png
- img002arrows.png
- img003arrows.png
- img004arrows.png
- img005arrows.png
- img006arrows.png
- img007arrows.png
- img008arrows.png
- img009arrows.png
- img010arrows.png
- img011arrows.png
- img012arrows.png
- img013arrows.png
- img014arrows.png
- img015arrows.png
- img016arrows.png
- img017arrows.png
- img018arrows.png
- img019arrows.png
- img020arrows.png
- img021arrows.png
- img022arrows.png
- img023arrows.png
- img024arrows.png
- img025arrows.png
- img026arrows.png
- img027arrows.png
- img028arrows.png
- img029arrows.png
- img030arrows.png
- img031arrows.png
- img032arrows.png
- img033arrows.png
- img034arrows.png
- img035arrows.png
- img036arrows.png
- img037arrows.png
- img038arrows.png
- img039arrows.png
- img040arrows.png
- img041arrows.png
- img042arrows.png
- img043arrows.png
- img044arrows.png
- img045arrows.png
- img046arrows.png
- img047arrows.png
- img048arrows.png
- img049arrows.png
- img050arrows.png
- img051arrows.png
- img052arrows.png
- img053arrows.png
- img054arrows.png
- img055arrows.png
- img056arrows.png
- img057arrows.png
- img058arrows.png
- img059arrows.png
- img060arrows.png
- img061arrows.png
- img062arrows.png
- img063arrows.png
- img064arrows.png
- img065arrows.png
- img066arrows.png
- img067arrows.png
- img068arrows.png
- img069arrows.png
-)
-
-########### install files ###############
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/arrows )
-
diff --git a/src/kile/symbols/cyrillic/CMakeLists.txt b/src/kile/symbols/cyrillic/CMakeLists.txt
deleted file mode 100644
index 55a001e..0000000
--- a/src/kile/symbols/cyrillic/CMakeLists.txt
+++ /dev/null
@@ -1,164 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001cyrillic.png
- img002cyrillic.png
- img003cyrillic.png
- img004cyrillic.png
- img005cyrillic.png
- img006cyrillic.png
- img007cyrillic.png
- img008cyrillic.png
- img009cyrillic.png
- img010cyrillic.png
- img011cyrillic.png
- img012cyrillic.png
- img013cyrillic.png
- img014cyrillic.png
- img015cyrillic.png
- img016cyrillic.png
- img017cyrillic.png
- img018cyrillic.png
- img019cyrillic.png
- img020cyrillic.png
- img021cyrillic.png
- img022cyrillic.png
- img023cyrillic.png
- img024cyrillic.png
- img025cyrillic.png
- img026cyrillic.png
- img027cyrillic.png
- img028cyrillic.png
- img029cyrillic.png
- img030cyrillic.png
- img031cyrillic.png
- img032cyrillic.png
- img033cyrillic.png
- img034cyrillic.png
- img035cyrillic.png
- img036cyrillic.png
- img037cyrillic.png
- img038cyrillic.png
- img039cyrillic.png
- img040cyrillic.png
- img041cyrillic.png
- img042cyrillic.png
- img043cyrillic.png
- img044cyrillic.png
- img045cyrillic.png
- img046cyrillic.png
- img047cyrillic.png
- img048cyrillic.png
- img049cyrillic.png
- img050cyrillic.png
- img051cyrillic.png
- img052cyrillic.png
- img053cyrillic.png
- img054cyrillic.png
- img055cyrillic.png
- img056cyrillic.png
- img057cyrillic.png
- img058cyrillic.png
- img059cyrillic.png
- img060cyrillic.png
- img061cyrillic.png
- img062cyrillic.png
- img063cyrillic.png
- img064cyrillic.png
- img065cyrillic.png
- img066cyrillic.png
- img067cyrillic.png
- img068cyrillic.png
- img069cyrillic.png
- img070cyrillic.png
- img071cyrillic.png
- img072cyrillic.png
- img073cyrillic.png
- img074cyrillic.png
- img075cyrillic.png
- img076cyrillic.png
- img077cyrillic.png
- img078cyrillic.png
- img079cyrillic.png
- img080cyrillic.png
- img081cyrillic.png
- img082cyrillic.png
- img083cyrillic.png
- img084cyrillic.png
- img085cyrillic.png
- img086cyrillic.png
- img087cyrillic.png
- img088cyrillic.png
- img089cyrillic.png
- img090cyrillic.png
- img091cyrillic.png
- img092cyrillic.png
- img093cyrillic.png
- img094cyrillic.png
- img095cyrillic.png
- img096cyrillic.png
- img097cyrillic.png
- img098cyrillic.png
- img099cyrillic.png
- img100cyrillic.png
- img101cyrillic.png
- img102cyrillic.png
- img103cyrillic.png
- img104cyrillic.png
- img105cyrillic.png
- img106cyrillic.png
- img107cyrillic.png
- img108cyrillic.png
- img109cyrillic.png
- img110cyrillic.png
- img111cyrillic.png
- img112cyrillic.png
- img113cyrillic.png
- img114cyrillic.png
- img115cyrillic.png
- img116cyrillic.png
- img117cyrillic.png
- img118cyrillic.png
- img119cyrillic.png
- img120cyrillic.png
- img121cyrillic.png
- img122cyrillic.png
- img123cyrillic.png
- img124cyrillic.png
- img125cyrillic.png
- img126cyrillic.png
- img127cyrillic.png
- img128cyrillic.png
- img129cyrillic.png
- img130cyrillic.png
- img131cyrillic.png
- img132cyrillic.png
- img133cyrillic.png
- img134cyrillic.png
- img135cyrillic.png
- img136cyrillic.png
- img137cyrillic.png
- img138cyrillic.png
- img139cyrillic.png
- img140cyrillic.png
- img141cyrillic.png
- img142cyrillic.png
- img143cyrillic.png
- img144cyrillic.png
- img145cyrillic.png
- img146cyrillic.png
- img147cyrillic.png
- img148cyrillic.png
- img149cyrillic.png
- img150cyrillic.png
- img151cyrillic.png
- img152cyrillic.png
- img153cyrillic.png
- img154cyrillic.png
- img155cyrillic.png
- img156cyrillic.png
- img157cyrillic.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/cyrillic ) \ No newline at end of file
diff --git a/src/kile/symbols/delimiters/CMakeLists.txt b/src/kile/symbols/delimiters/CMakeLists.txt
deleted file mode 100644
index a472c22..0000000
--- a/src/kile/symbols/delimiters/CMakeLists.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001delimiters.png
- img002delimiters.png
- img003delimiters.png
- img004delimiters.png
- img005delimiters.png
- img006delimiters.png
- img007delimiters.png
- img008delimiters.png
- img009delimiters.png
- img010delimiters.png
- img011delimiters.png
- img012delimiters.png
- img013delimiters.png
- img014delimiters.png
- img015delimiters.png
- img016delimiters.png
- img017delimiters.png
- img018delimiters.png
- img019delimiters.png
- img020delimiters.png
- img021delimiters.png
- img022delimiters.png
- img023delimiters.png
- img024delimiters.png
- img025delimiters.png
- img026delimiters.png
- img027delimiters.png
- img028delimiters.png
- img029delimiters.png
- img030delimiters.png
- img031delimiters.png
- img032delimiters.png
- img033delimiters.png
- img034delimiters.png
- img035delimiters.png
- img036delimiters.png
- img037delimiters.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/delimiters ) \ No newline at end of file
diff --git a/src/kile/symbols/greek/CMakeLists.txt b/src/kile/symbols/greek/CMakeLists.txt
deleted file mode 100644
index dcf61b7..0000000
--- a/src/kile/symbols/greek/CMakeLists.txt
+++ /dev/null
@@ -1,72 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001greek.png
- img002greek.png
- img003greek.png
- img004greek.png
- img005greek.png
- img006greek.png
- img007greek.png
- img008greek.png
- img009greek.png
- img010greek.png
- img011greek.png
- img012greek.png
- img013greek.png
- img014greek.png
- img015greek.png
- img016greek.png
- img017greek.png
- img018greek.png
- img019greek.png
- img020greek.png
- img021greek.png
- img022greek.png
- img023greek.png
- img024greek.png
- img025greek.png
- img026greek.png
- img027greek.png
- img028greek.png
- img029greek.png
- img030greek.png
- img031greek.png
- img032greek.png
- img033greek.png
- img034greek.png
- img035greek.png
- img036greek.png
- img037greek.png
- img038greek.png
- img039greek.png
- img040greek.png
- img041greek.png
- img042greek.png
- img043greek.png
- img044greek.png
- img045greek.png
- img046greek.png
- img047greek.png
- img048greek.png
- img049greek.png
- img050greek.png
- img051greek.png
- img052greek.png
- img053greek.png
- img054greek.png
- img055greek.png
- img056greek.png
- img057greek.png
- img058greek.png
- img059greek.png
- img060greek.png
- img061greek.png
- img062greek.png
- img063greek.png
- img064greek.png
- img065greek.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/greek )
diff --git a/src/kile/symbols/misc-math/CMakeLists.txt b/src/kile/symbols/misc-math/CMakeLists.txt
deleted file mode 100644
index 1c8df35..0000000
--- a/src/kile/symbols/misc-math/CMakeLists.txt
+++ /dev/null
@@ -1,105 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001misc-math.png
- img002misc-math.png
- img003misc-math.png
- img004misc-math.png
- img005misc-math.png
- img006misc-math.png
- img007misc-math.png
- img008misc-math.png
- img009misc-math.png
- img010misc-math.png
- img011misc-math.png
- img012misc-math.png
- img013misc-math.png
- img014misc-math.png
- img015misc-math.png
- img016misc-math.png
- img017misc-math.png
- img018misc-math.png
- img019misc-math.png
- img020misc-math.png
- img021misc-math.png
- img022misc-math.png
- img023misc-math.png
- img024misc-math.png
- img025misc-math.png
- img026misc-math.png
- img027misc-math.png
- img028misc-math.png
- img029misc-math.png
- img030misc-math.png
- img031misc-math.png
- img032misc-math.png
- img033misc-math.png
- img034misc-math.png
- img035misc-math.png
- img036misc-math.png
- img037misc-math.png
- img038misc-math.png
- img039misc-math.png
- img040misc-math.png
- img041misc-math.png
- img042misc-math.png
- img043misc-math.png
- img044misc-math.png
- img045misc-math.png
- img046misc-math.png
- img047misc-math.png
- img048misc-math.png
- img049misc-math.png
- img050misc-math.png
- img051misc-math.png
- img052misc-math.png
- img053misc-math.png
- img054misc-math.png
- img055misc-math.png
- img056misc-math.png
- img057misc-math.png
- img058misc-math.png
- img059misc-math.png
- img060misc-math.png
- img061misc-math.png
- img062misc-math.png
- img063misc-math.png
- img064misc-math.png
- img065misc-math.png
- img066misc-math.png
- img067misc-math.png
- img068misc-math.png
- img069misc-math.png
- img070misc-math.png
- img071misc-math.png
- img072misc-math.png
- img073misc-math.png
- img074misc-math.png
- img075misc-math.png
- img076misc-math.png
- img077misc-math.png
- img078misc-math.png
- img079misc-math.png
- img080misc-math.png
- img081misc-math.png
- img082misc-math.png
- img083misc-math.png
- img084misc-math.png
- img085misc-math.png
- img086misc-math.png
- img087misc-math.png
- img088misc-math.png
- img089misc-math.png
- img090misc-math.png
- img091misc-math.png
- img092misc-math.png
- img093misc-math.png
- img094misc-math.png
- img095misc-math.png
- img096misc-math.png
- img097misc-math.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/misc-math )
-
diff --git a/src/kile/symbols/misc-text/CMakeLists.txt b/src/kile/symbols/misc-text/CMakeLists.txt
deleted file mode 100644
index e9a0f3d..0000000
--- a/src/kile/symbols/misc-text/CMakeLists.txt
+++ /dev/null
@@ -1,142 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001misc-text.png
- img002misc-text.png
- img003misc-text.png
- img004misc-text.png
- img005misc-text.png
- img006misc-text.png
- img007misc-text.png
- img008misc-text.png
- img009misc-text.png
- img010misc-text.png
- img011misc-text.png
- img012misc-text.png
- img013misc-text.png
- img014misc-text.png
- img015misc-text.png
- img016misc-text.png
- img017misc-text.png
- img018misc-text.png
- img019misc-text.png
- img020misc-text.png
- img021misc-text.png
- img022misc-text.png
- img023misc-text.png
- img024misc-text.png
- img025misc-text.png
- img026misc-text.png
- img027misc-text.png
- img028misc-text.png
- img029misc-text.png
- img030misc-text.png
- img031misc-text.png
- img032misc-text.png
- img033misc-text.png
- img034misc-text.png
- img035misc-text.png
- img036misc-text.png
- img037misc-text.png
- img038misc-text.png
- img039misc-text.png
- img040misc-text.png
- img041misc-text.png
- img042misc-text.png
- img043misc-text.png
- img044misc-text.png
- img045misc-text.png
- img046misc-text.png
- img047misc-text.png
- img048misc-text.png
- img049misc-text.png
- img050misc-text.png
- img051misc-text.png
- img052misc-text.png
- img053misc-text.png
- img054misc-text.png
- img055misc-text.png
- img056misc-text.png
- img057misc-text.png
- img058misc-text.png
- img059misc-text.png
- img060misc-text.png
- img061misc-text.png
- img062misc-text.png
- img063misc-text.png
- img064misc-text.png
- img065misc-text.png
- img066misc-text.png
- img067misc-text.png
- img068misc-text.png
- img069misc-text.png
- img070misc-text.png
- img071misc-text.png
- img072misc-text.png
- img073misc-text.png
- img074misc-text.png
- img075misc-text.png
- img076misc-text.png
- img077misc-text.png
- img078misc-text.png
- img079misc-text.png
- img080misc-text.png
- img081misc-text.png
- img082misc-text.png
- img083misc-text.png
- img084misc-text.png
- img085misc-text.png
- img086misc-text.png
- img087misc-text.png
- img088misc-text.png
- img089misc-text.png
- img090misc-text.png
- img091misc-text.png
- img092misc-text.png
- img093misc-text.png
- img094misc-text.png
- img095misc-text.png
- img096misc-text.png
- img097misc-text.png
- img098misc-text.png
- img099misc-text.png
- img100misc-text.png
- img101misc-text.png
- img102misc-text.png
- img103misc-text.png
- img104misc-text.png
- img105misc-text.png
- img106misc-text.png
- img107misc-text.png
- img108misc-text.png
- img109misc-text.png
- img110misc-text.png
- img111misc-text.png
- img112misc-text.png
- img113misc-text.png
- img114misc-text.png
- img115misc-text.png
- img116misc-text.png
- img117misc-text.png
- img118misc-text.png
- img119misc-text.png
- img120misc-text.png
- img121misc-text.png
- img122misc-text.png
- img123misc-text.png
- img124misc-text.png
- img125misc-text.png
- img126misc-text.png
- img127misc-text.png
- img128misc-text.png
- img129misc-text.png
- img130misc-text.png
- img131misc-text.png
- img132misc-text.png
- img133misc-text.png
- img134misc-text.png
- img135misc-text.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/misc-text )
diff --git a/src/kile/symbols/operators/CMakeLists.txt b/src/kile/symbols/operators/CMakeLists.txt
deleted file mode 100644
index 589defe..0000000
--- a/src/kile/symbols/operators/CMakeLists.txt
+++ /dev/null
@@ -1,120 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001operators.png
- img002operators.png
- img003operators.png
- img004operators.png
- img005operators.png
- img006operators.png
- img007operators.png
- img008operators.png
- img009operators.png
- img010operators.png
- img011operators.png
- img012operators.png
- img013operators.png
- img014operators.png
- img015operators.png
- img016operators.png
- img017operators.png
- img018operators.png
- img019operators.png
- img020operators.png
- img021operators.png
- img022operators.png
- img023operators.png
- img024operators.png
- img025operators.png
- img026operators.png
- img027operators.png
- img028operators.png
- img029operators.png
- img030operators.png
- img031operators.png
- img032operators.png
- img033operators.png
- img034operators.png
- img035operators.png
- img036operators.png
- img037operators.png
- img038operators.png
- img039operators.png
- img040operators.png
- img041operators.png
- img042operators.png
- img043operators.png
- img044operators.png
- img045operators.png
- img046operators.png
- img047operators.png
- img048operators.png
- img049operators.png
- img050operators.png
- img051operators.png
- img052operators.png
- img053operators.png
- img054operators.png
- img055operators.png
- img056operators.png
- img057operators.png
- img058operators.png
- img059operators.png
- img060operators.png
- img061operators.png
- img062operators.png
- img063operators.png
- img064operators.png
- img065operators.png
- img066operators.png
- img067operators.png
- img068operators.png
- img069operators.png
- img070operators.png
- img071operators.png
- img072operators.png
- img073operators.png
- img074operators.png
- img075operators.png
- img076operators.png
- img077operators.png
- img078operators.png
- img079operators.png
- img080operators.png
- img081operators.png
- img082operators.png
- img083operators.png
- img084operators.png
- img085operators.png
- img086operators.png
- img087operators.png
- img088operators.png
- img089operators.png
- img090operators.png
- img091operators.png
- img092operators.png
- img093operators.png
- img094operators.png
- img095operators.png
- img096operators.png
- img097operators.png
- img098operators.png
- img099operators.png
- img100operators.png
- img101operators.png
- img102operators.png
- img103operators.png
- img104operators.png
- img105operators.png
- img106operators.png
- img107operators.png
- img108operators.png
- img109operators.png
- img110operators.png
- img111operators.png
- img112operators.png
- img113operators.png
-)
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/operators )
-
diff --git a/src/kile/symbols/relation/CMakeLists.txt b/src/kile/symbols/relation/CMakeLists.txt
deleted file mode 100644
index 2854e07..0000000
--- a/src/kile/symbols/relation/CMakeLists.txt
+++ /dev/null
@@ -1,159 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001relation.png
- img002relation.png
- img003relation.png
- img004relation.png
- img005relation.png
- img006relation.png
- img007relation.png
- img008relation.png
- img009relation.png
- img010relation.png
- img011relation.png
- img012relation.png
- img013relation.png
- img014relation.png
- img015relation.png
- img016relation.png
- img017relation.png
- img018relation.png
- img019relation.png
- img020relation.png
- img021relation.png
- img022relation.png
- img023relation.png
- img024relation.png
- img025relation.png
- img026relation.png
- img027relation.png
- img028relation.png
- img029relation.png
- img030relation.png
- img031relation.png
- img032relation.png
- img033relation.png
- img034relation.png
- img035relation.png
- img036relation.png
- img037relation.png
- img038relation.png
- img039relation.png
- img040relation.png
- img041relation.png
- img042relation.png
- img043relation.png
- img044relation.png
- img045relation.png
- img046relation.png
- img047relation.png
- img048relation.png
- img049relation.png
- img050relation.png
- img051relation.png
- img052relation.png
- img053relation.png
- img054relation.png
- img055relation.png
- img056relation.png
- img057relation.png
- img058relation.png
- img059relation.png
- img060relation.png
- img061relation.png
- img062relation.png
- img063relation.png
- img064relation.png
- img065relation.png
- img066relation.png
- img067relation.png
- img068relation.png
- img069relation.png
- img070relation.png
- img071relation.png
- img072relation.png
- img073relation.png
- img074relation.png
- img075relation.png
- img076relation.png
- img077relation.png
- img078relation.png
- img079relation.png
- img080relation.png
- img081relation.png
- img082relation.png
- img083relation.png
- img084relation.png
- img085relation.png
- img086relation.png
- img087relation.png
- img088relation.png
- img089relation.png
- img090relation.png
- img091relation.png
- img092relation.png
- img093relation.png
- img094relation.png
- img095relation.png
- img096relation.png
- img097relation.png
- img098relation.png
- img099relation.png
- img100relation.png
- img101relation.png
- img102relation.png
- img103relation.png
- img104relation.png
- img105relation.png
- img106relation.png
- img107relation.png
- img108relation.png
- img109relation.png
- img110relation.png
- img111relation.png
- img112relation.png
- img113relation.png
- img114relation.png
- img115relation.png
- img116relation.png
- img117relation.png
- img118relation.png
- img119relation.png
- img120relation.png
- img121relation.png
- img122relation.png
- img123relation.png
- img124relation.png
- img125relation.png
- img126relation.png
- img127relation.png
- img128relation.png
- img129relation.png
- img130relation.png
- img131relation.png
- img132relation.png
- img133relation.png
- img134relation.png
- img135relation.png
- img136relation.png
- img137relation.png
- img138relation.png
- img139relation.png
- img140relation.png
- img141relation.png
- img142relation.png
- img143relation.png
- img144relation.png
- img145relation.png
- img146relation.png
- img147relation.png
- img148relation.png
- img149relation.png
- img150relation.png
- img151relation.png
- img152relation.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/relation )
diff --git a/src/kile/symbols/special/CMakeLists.txt b/src/kile/symbols/special/CMakeLists.txt
deleted file mode 100644
index 79c6550..0000000
--- a/src/kile/symbols/special/CMakeLists.txt
+++ /dev/null
@@ -1,185 +0,0 @@
-
-########### install files ###############
-
-SET( symbols
- img001special.png
- img002special.png
- img003special.png
- img004special.png
- img005special.png
- img006special.png
- img007special.png
- img008special.png
- img009special.png
- img010special.png
- img011special.png
- img012special.png
- img013special.png
- img014special.png
- img015special.png
- img016special.png
- img017special.png
- img018special.png
- img019special.png
- img020special.png
- img021special.png
- img022special.png
- img023special.png
- img024special.png
- img025special.png
- img026special.png
- img027special.png
- img028special.png
- img029special.png
- img030special.png
- img031special.png
- img032special.png
- img033special.png
- img034special.png
- img035special.png
- img036special.png
- img037special.png
- img038special.png
- img039special.png
- img040special.png
- img041special.png
- img042special.png
- img043special.png
- img044special.png
- img045special.png
- img046special.png
- img047special.png
- img048special.png
- img049special.png
- img050special.png
- img051special.png
- img052special.png
- img053special.png
- img054special.png
- img055special.png
- img056special.png
- img057special.png
- img058special.png
- img059special.png
- img060special.png
- img061special.png
- img062special.png
- img063special.png
- img064special.png
- img065special.png
- img066special.png
- img067special.png
- img068special.png
- img069special.png
- img070special.png
- img071special.png
- img072special.png
- img073special.png
- img074special.png
- img075special.png
- img076special.png
- img077special.png
- img078special.png
- img079special.png
- img080special.png
- img081special.png
- img082special.png
- img083special.png
- img084special.png
- img085special.png
- img086special.png
- img087special.png
- img088special.png
- img089special.png
- img090special.png
- img091special.png
- img092special.png
- img093special.png
- img094special.png
- img095special.png
- img096special.png
- img097special.png
- img098special.png
- img099special.png
- img100special.png
- img101special.png
- img102special.png
- img103special.png
- img104special.png
- img105special.png
- img106special.png
- img107special.png
- img108special.png
- img109special.png
- img110special.png
- img111special.png
- img112special.png
- img113special.png
- img114special.png
- img115special.png
- img116special.png
- img117special.png
- img118special.png
- img119special.png
- img120special.png
- img121special.png
- img122special.png
- img123special.png
- img124special.png
- img125special.png
- img126special.png
- img127special.png
- img128special.png
- img129special.png
- img130special.png
- img131special.png
- img132special.png
- img133special.png
- img134special.png
- img135special.png
- img136special.png
- img137special.png
- img138special.png
- img139special.png
- img140special.png
- img141special.png
- img142special.png
- img143special.png
- img144special.png
- img145special.png
- img146special.png
- img147special.png
- img148special.png
- img149special.png
- img150special.png
- img151special.png
- img152special.png
- img153special.png
- img154special.png
- img155special.png
- img156special.png
- img157special.png
- img158special.png
- img159special.png
- img160special.png
- img161special.png
- img162special.png
- img163special.png
- img164special.png
- img165special.png
- img166special.png
- img167special.png
- img168special.png
- img169special.png
- img170special.png
- img171special.png
- img172special.png
- img173special.png
- img174special.png
- img175special.png
- img176special.png
- img177special.png
- img178special.png
-)
-
-INSTALL( FILES ${symbols} DESTINATION share/apps/kile/mathsymbols/special )
diff --git a/src/kile/syntax/CMakeLists.txt b/src/kile/syntax/CMakeLists.txt
index 9fb2a47..e93f69e 100644
--- a/src/kile/syntax/CMakeLists.txt
+++ b/src/kile/syntax/CMakeLists.txt
@@ -1,4 +1,10 @@
########### install files ###############
-INSTALL( FILES latex.xml bibtex.xml DESTINATION share/apps/katepart/syntax )
+file( GLOB _files *.xml )
+list( SORT _files )
+
+install(
+ FILES ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax
+)
diff --git a/src/kile/templates/CMakeLists.txt b/src/kile/templates/CMakeLists.txt
index dbb6e11..ec1baa1 100644
--- a/src/kile/templates/CMakeLists.txt
+++ b/src/kile/templates/CMakeLists.txt
@@ -1,4 +1,10 @@
########### install files ###############
-INSTALL( FILES template_Article.tex template_Book.tex template_Letter.tex template_Report.tex template_Beamer.tex template_Scrartcl.tex template_Scrreprt.tex template_HA-prosper.tex template_Scrbook.tex template_Prosper.tex template_Scrlttr2.tex DESTINATION share/apps/kile/templates )
+file( GLOB _files *.tex )
+list( SORT _files )
+
+install(
+ FILES ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/templates
+)
diff --git a/src/kile/test/CMakeLists.txt b/src/kile/test/CMakeLists.txt
index c5a28e1..369119c 100644
--- a/src/kile/test/CMakeLists.txt
+++ b/src/kile/test/CMakeLists.txt
@@ -1,13 +1,17 @@
########### install files ###############
-SET( testFiles
- runTests.sh
- test.tex
- test_plain.tex
- test.bib
- test_bib.tex
- test_index.tex
+install(
+ PROGRAMS runTests.sh
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/test
)
-INSTALL( FILES ${testFiles} DESTINATION share/apps/kile/test )
+install(
+ FILES
+ test.tex
+ test_plain.tex
+ test.bib
+ test_bib.tex
+ test_index.tex
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/test
+)
diff --git a/src/patches/.gitignore b/src/patches/.gitignore
deleted file mode 100644
index e69de29..0000000
--- a/src/patches/.gitignore
+++ /dev/null