diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-03-03 21:42:42 +0100 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-03-05 10:42:12 +0900 |
commit | 38c6a406f3b082bcd57edf1c477564d26a9cb6c8 (patch) | |
tree | 7c418ed8bff0857ac221ce748a576a57a2f08ddf /doc | |
parent | 02835b2f5219a8eb8c6c9477bd6dd7ce7d54ac0e (diff) | |
download | kstreamripper-38c6a406f3b082bcd57edf1c477564d26a9cb6c8.tar.gz kstreamripper-38c6a406f3b082bcd57edf1c477564d26a9cb6c8.zip |
Drop scons build support.
Deleted empty file ChangeLog.
Update some cmake files with latest macros.
Add basic cmake build instructions.
Few cosmetics.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 48deaabecefea835f81c9e6e8ba73ee8881c314c)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/SConscript | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/doc/SConscript b/doc/SConscript deleted file mode 100644 index 9c3bbe5..0000000 --- a/doc/SConscript +++ /dev/null @@ -1,83 +0,0 @@ -#! /usr/bin/env python -## This script demonstrates to build and install -## the documentation of a kde program with scons -## -## Thomas Nagy, 2005 - -## This file can be reused freely for any project (see COPYING) - -## First load the environment set in the top-level SConstruct file -Import( 'env' ) -myenv=env.Clone() - -## The following looks complicated but it is not -## We first define a function to install all files as documentation -## The documentation is of course lying in subfolders from here -## * normal files are installed under KDEDOC/destination -## * meinproc files are not installed, but processed into a single -## index.cache.bz2 which is installed afterwards - -## This is far more maintainable to have *one* file than -## having lots of almost empty SConscript in several folders - -import os -import sys -import glob -import SCons.Util - -## Define this to 1 if you are writing documentation else to 0 :) -i_am_a_documentation_writer = 0 - -## This function uses env imported above -def processfolder(folder, lang, destination=""): - # folder is the folder to process - # lang is the language - # destination is the subdirectory in KDEDOC - - docfiles = glob.glob(folder+"/???*.*") # file files that are at least 4 chars wide :) - - # warn about errors - #if len(lang) != 2: - # print "error, lang must be a two-letter string, like 'en'" - - # when the destination is not given, use the folder - if len(destination) == 0: - destination=folder - - docbook_list = [] - for file in docfiles: - - # do not process folders - if not os.path.isfile(file): - continue - # do not process the cache file - if file == 'index.cache.bz2': - continue - # ignore invalid files (TODO??) - if len( SCons.Util.splitext( file ) ) <= 1 : - continue - - ext = SCons.Util.splitext( file )[1] - - # docbook files are processed by meinproc - if ext == '.docbook': - docbook_list.append( file ) - continue - - myenv.KDEinstall('KDEDOC', lang+'/'+destination, file) - - # Now process the index.docbook files .. - if len(docbook_list) == 0: - return - if not os.path.isfile( folder+'index.docbook' ): - print("Error, index.docbook was not found in "+folder+'/index.docbook') - return - if i_am_a_documentation_writer: - for file in docbook_list: - myenv.Depends( folder+'index.cache.bz2', file ) - myenv.Meinproc( folder+'/index.cache.bz2', folder+'/index.docbook' ) - myenv.KDEinstall( 'KDEDOC', lang+'/'+destination, folder+'/index.cache.bz2' ) - -## Use processfolder for each documentation directory -processfolder('en/', 'en', 'kstreamripper') - |