From 8c28c84ffaa6a8b1891b5703f5292f3990d990ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 26 Jul 2021 13:18:27 +0200 Subject: Use common rules for build and install documentation and translations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 8 +- doc/CMakeLists.txt | 12 --- doc/configure.png | Bin 20234 -> 0 bytes doc/en/CMakeLists.txt | 1 - doc/hi48-app-klcddimmer.png | Bin 2620 -> 0 bytes doc/html/CMakeLists.txt | 10 +++ doc/html/configure.png | Bin 0 -> 20234 bytes doc/html/hi48-app-klcddimmer.png | Bin 0 -> 2620 bytes doc/html/klcddimmer-screenshot.png | Bin 0 -> 20979 bytes doc/html/klcddimmer.html | 156 +++++++++++++++++++++++++++++++++++ doc/klcddimmer-screenshot.png | Bin 20979 -> 0 bytes doc/klcddimmer.html | 156 ----------------------------------- translations/CMakeLists.txt | 1 - translations/messages/CMakeLists.txt | 14 ---- 14 files changed, 172 insertions(+), 186 deletions(-) delete mode 100644 doc/CMakeLists.txt delete mode 100644 doc/configure.png delete mode 100644 doc/en/CMakeLists.txt delete mode 100644 doc/hi48-app-klcddimmer.png create mode 100644 doc/html/CMakeLists.txt create mode 100644 doc/html/configure.png create mode 100644 doc/html/hi48-app-klcddimmer.png create mode 100644 doc/html/klcddimmer-screenshot.png create mode 100644 doc/html/klcddimmer.html delete mode 100644 doc/klcddimmer-screenshot.png delete mode 100644 doc/klcddimmer.html delete mode 100644 translations/CMakeLists.txt delete mode 100644 translations/messages/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index d6819dd..329937e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,8 +69,12 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### directories add_subdirectory( src ) -tde_conditional_add_subdirectory( BUILD_DOC doc ) -tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) + + +##### other data ################################ + +tde_conditional_add_project_docs( BUILD_DOC ) +tde_conditional_add_project_translations( BUILD_TRANSLATIONS ) ##### write configure files diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt deleted file mode 100644 index 5a5fbaf..0000000 --- a/doc/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -INSTALL( - - FILES - configure.png - hi48-app-klcddimmer.png - klcddimmer.html - klcddimmer-screenshot.png - - DESTINATION ${HTML_INSTALL_DIR}/en/${PROJECT_NAME} -) - -add_subdirectory( en ) diff --git a/doc/configure.png b/doc/configure.png deleted file mode 100644 index c4406e1..0000000 Binary files a/doc/configure.png and /dev/null differ diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt deleted file mode 100644 index ba3ef3e..0000000 --- a/doc/en/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_handbook( DESTINATION ${PROJECT_NAME} ) diff --git a/doc/hi48-app-klcddimmer.png b/doc/hi48-app-klcddimmer.png deleted file mode 100644 index 41fe9e6..0000000 Binary files a/doc/hi48-app-klcddimmer.png and /dev/null differ diff --git a/doc/html/CMakeLists.txt b/doc/html/CMakeLists.txt new file mode 100644 index 0000000..cbd26e0 --- /dev/null +++ b/doc/html/CMakeLists.txt @@ -0,0 +1,10 @@ +INSTALL( + + FILES + configure.png + hi48-app-klcddimmer.png + klcddimmer.html + klcddimmer-screenshot.png + + DESTINATION ${HTML_INSTALL_DIR}/en/${PROJECT_NAME} +) diff --git a/doc/html/configure.png b/doc/html/configure.png new file mode 100644 index 0000000..c4406e1 Binary files /dev/null and b/doc/html/configure.png differ diff --git a/doc/html/hi48-app-klcddimmer.png b/doc/html/hi48-app-klcddimmer.png new file mode 100644 index 0000000..41fe9e6 Binary files /dev/null and b/doc/html/hi48-app-klcddimmer.png differ diff --git a/doc/html/klcddimmer-screenshot.png b/doc/html/klcddimmer-screenshot.png new file mode 100644 index 0000000..9c83012 Binary files /dev/null and b/doc/html/klcddimmer-screenshot.png differ diff --git a/doc/html/klcddimmer.html b/doc/html/klcddimmer.html new file mode 100644 index 0000000..e7525e6 --- /dev/null +++ b/doc/html/klcddimmer.html @@ -0,0 +1,156 @@ + + + + + + KLcdDimmer - A KDE Applet to adjust LCD brightness + + + + + + + +

KLcdDimmer icon KLcdDimmer

+ + + +

A KDE Applet to adjust LCD brightness

+ + + +by Lorenzo +Bettini
+ + + +
+ + + +KLcdDimmer Screenshot
+ + + +
+ + + +To adjust the brightness simply click with the mouse left +button and use the slider
+ + + +
+ + + +Notice that this applet relies on an external program to get/set the +brightness.
+ + + +
+ + + +For instance, I've used
+ + + +
+ + + +SmartDimmer http://www.acc.umu.se/~erikw/program/
+ + + +NVclock http://www.linuxhardware.org/nvclock/
+ + + +
+ + + +but it is supposed to work also with others, since you can configure +the applet. In order to do this, click with the mouse right button and +choose configure:
+ + + +
+ + + +The configuration dialog
+ + + +
+ + +You have to set the right command line argument for setting and +getting the brightness (you have to check the documentation of the +program you're using for setting the brightness).  If the program +you're using does not support the "get" argument (e.g., nvclock), just +leave that field empty. As for the minimum, maximum and step values, +again, you have to check the documentation of the program (you'll +already find all the correct values for smartdimmer).
+ + +
+ + +If you check the "Save the current brightness value", the current value will be saved, and restored when you enter kde again.
+ + + +

Download (License: GNU GPL)

+ + + +KlcdDimmer's Sources can be downloaded from http://sourceforge.net/projects/klcddimmer.
+
+ +You can also find details about new features on my blog, in this area: http://tronprog.blogspot.com/search/label/klcddimmer. + +

Installation

+ + + +When you run configure, you should pass the KDE root directory as +--prefix (in my system it is /usr). If you don't know about this directory, you can get the right value by running:
+ +
tde-config --prefix
+ + +

The steps to perform for the +installation are standard for packages +in source form: once you have unpacked the sources in a directory, `cd' +to the directory containing the package's source code and execute the +following steps:

+ + + +
./configure --prefix=<your KDE directory>
+ +Or, to automatically get the KDE root directory (notice it is ` and not '): +
./configure --prefix=`tde-config --prefix`
+ +

and then:

+ +
make
make install (as root)
+ + + +

Then you'll be able to add the applet to the panel, by using your +KDE panel.

+ + + + + + diff --git a/doc/klcddimmer-screenshot.png b/doc/klcddimmer-screenshot.png deleted file mode 100644 index 9c83012..0000000 Binary files a/doc/klcddimmer-screenshot.png and /dev/null differ diff --git a/doc/klcddimmer.html b/doc/klcddimmer.html deleted file mode 100644 index e7525e6..0000000 --- a/doc/klcddimmer.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - KLcdDimmer - A KDE Applet to adjust LCD brightness - - - - - - - -

KLcdDimmer icon KLcdDimmer

- - - -

A KDE Applet to adjust LCD brightness

- - - -by Lorenzo -Bettini
- - - -
- - - -KLcdDimmer Screenshot
- - - -
- - - -To adjust the brightness simply click with the mouse left -button and use the slider
- - - -
- - - -Notice that this applet relies on an external program to get/set the -brightness.
- - - -
- - - -For instance, I've used
- - - -
- - - -SmartDimmer http://www.acc.umu.se/~erikw/program/
- - - -NVclock http://www.linuxhardware.org/nvclock/
- - - -
- - - -but it is supposed to work also with others, since you can configure -the applet. In order to do this, click with the mouse right button and -choose configure:
- - - -
- - - -The configuration dialog
- - - -
- - -You have to set the right command line argument for setting and -getting the brightness (you have to check the documentation of the -program you're using for setting the brightness).  If the program -you're using does not support the "get" argument (e.g., nvclock), just -leave that field empty. As for the minimum, maximum and step values, -again, you have to check the documentation of the program (you'll -already find all the correct values for smartdimmer).
- - -
- - -If you check the "Save the current brightness value", the current value will be saved, and restored when you enter kde again.
- - - -

Download (License: GNU GPL)

- - - -KlcdDimmer's Sources can be downloaded from http://sourceforge.net/projects/klcddimmer.
-
- -You can also find details about new features on my blog, in this area: http://tronprog.blogspot.com/search/label/klcddimmer. - -

Installation

- - - -When you run configure, you should pass the KDE root directory as ---prefix (in my system it is /usr). If you don't know about this directory, you can get the right value by running:
- -
tde-config --prefix
- - -

The steps to perform for the -installation are standard for packages -in source form: once you have unpacked the sources in a directory, `cd' -to the directory containing the package's source code and execute the -following steps:

- - - -
./configure --prefix=<your KDE directory>
- -Or, to automatically get the KDE root directory (notice it is ` and not '): -
./configure --prefix=`tde-config --prefix`
- -

and then:

- -
make
make install (as root)
- - - -

Then you'll be able to add the applet to the panel, by using your -KDE panel.

- - - - - - diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt deleted file mode 100644 index 42b186a..0000000 --- a/translations/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_auto_add_subdirectories() diff --git a/translations/messages/CMakeLists.txt b/translations/messages/CMakeLists.txt deleted file mode 100644 index 75c89f8..0000000 --- a/translations/messages/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) -string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) - -foreach( _po ${po_files} ) - get_filename_component( _lang ${_po} NAME_WE ) - if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" ) - if( "${_po}" MATCHES "^([^/]*)/.*" ) - string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" ) - else( ) - set( _component "${PROJECT_NAME}" ) - endif( ) - tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} ) - endif( ) -endforeach( ) -- cgit v1.2.3