From 8d6255b84d9fb6a585d010119f289baff0794df9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 18 Sep 2024 14:21:27 +0900 Subject: [PATCH] Added indenter examples Signed-off-by: Michele Calgaro --- indenters/CMakeLists.txt | 34 +++++-------------- indenters/{__TODO => examples}/JsDecoder.js | 0 indenters/{__TODO => examples}/example.cbl | 0 indenters/{__TODO => examples}/example.css | 0 indenters/{__TODO => examples}/example.f90 | 0 indenters/{__TODO => examples}/example.html | 0 indenters/{__TODO => examples}/example.js | 0 indenters/{__TODO => examples}/example.php | 0 indenters/{__TODO => examples}/example.pl | 0 indenters/{__TODO => examples}/example.py | 0 indenters/{__TODO => examples}/example.rb | 0 indenters/{__TODO => examples}/example.sh | 0 indenters/{__TODO => examples}/example.sql | 0 indenters/{__TODO => examples}/example.vb | 0 indenters/{__TODO => examples}/example.xml | 0 indenters/{__TODO => examples}/hindent | 0 indenters/{__TODO => examples}/hindent.html | 0 indenters/{__TODO => examples}/perltidy | 0 indenters/{__TODO => examples}/phpStylist.php | 0 indenters/{__TODO => examples}/phpStylist.txt | 0 indenters/{__TODO => examples}/pindent.py | 0 indenters/{__TODO => examples}/pindent.txt | 0 indenters/{__TODO => examples}/rbeautify.rb | 0 .../{__TODO => examples}/ruby_formatter.rb | 0 .../{__TODO => examples}/shellindent.awk | 0 25 files changed, 8 insertions(+), 26 deletions(-) rename indenters/{__TODO => examples}/JsDecoder.js (100%) rename indenters/{__TODO => examples}/example.cbl (100%) rename indenters/{__TODO => examples}/example.css (100%) rename indenters/{__TODO => examples}/example.f90 (100%) rename indenters/{__TODO => examples}/example.html (100%) rename indenters/{__TODO => examples}/example.js (100%) rename indenters/{__TODO => examples}/example.php (100%) rename indenters/{__TODO => examples}/example.pl (100%) rename indenters/{__TODO => examples}/example.py (100%) rename indenters/{__TODO => examples}/example.rb (100%) rename indenters/{__TODO => examples}/example.sh (100%) rename indenters/{__TODO => examples}/example.sql (100%) rename indenters/{__TODO => examples}/example.vb (100%) rename indenters/{__TODO => examples}/example.xml (100%) rename indenters/{__TODO => examples}/hindent (100%) rename indenters/{__TODO => examples}/hindent.html (100%) rename indenters/{__TODO => examples}/perltidy (100%) rename indenters/{__TODO => examples}/phpStylist.php (100%) rename indenters/{__TODO => examples}/phpStylist.txt (100%) rename indenters/{__TODO => examples}/pindent.py (100%) rename indenters/{__TODO => examples}/pindent.txt (100%) rename indenters/{__TODO => examples}/rbeautify.rb (100%) rename indenters/{__TODO => examples}/ruby_formatter.rb (100%) rename indenters/{__TODO => examples}/shellindent.awk (100%) diff --git a/indenters/CMakeLists.txt b/indenters/CMakeLists.txt index 2fc3cb0..b5062c9 100644 --- a/indenters/CMakeLists.txt +++ b/indenters/CMakeLists.txt @@ -1,29 +1,11 @@ +file( GLOB _indenters RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.ini *.cpp) install( - FILES - example.cpp - uigui_astyle.ini - uigui_bcpp.ini - uigui_CblBeau.ini - uigui_csstidy.ini - uigui_f90ppr.ini - uigui_gnuindent.ini - uigui_greatcode.ini - uigui_hindent.ini - uigui_htb.ini - uigui_jsdecoder.ini - uigui_jsppp.ini - uigui_perltidy.ini - uigui_php_Beautifier.ini - uigui_phpCB.ini - uigui_phpStylist.ini - uigui_pindent.ini - uigui_psti.ini - uigui_rbeautify.ini - uigui_rubyformatter.ini - uigui_shellindent.ini - uigui_tidy.ini - uigui_uncrustify.ini - uigui_vbsbeaut.ini - uigui_xmlindent.ini + FILES ${_indenters} DESTINATION ${SHARE_INSTALL_PREFIX}/universal-indent-gui-tqt/indenters ) + +file( GLOB _indenters_examples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} examples/* ) +install( + FILES ${_indenters_examples} + DESTINATION ${SHARE_INSTALL_PREFIX}/universal-indent-gui-tqt/indenters/examples +) diff --git a/indenters/__TODO/JsDecoder.js b/indenters/examples/JsDecoder.js similarity index 100% rename from indenters/__TODO/JsDecoder.js rename to indenters/examples/JsDecoder.js diff --git a/indenters/__TODO/example.cbl b/indenters/examples/example.cbl similarity index 100% rename from indenters/__TODO/example.cbl rename to indenters/examples/example.cbl diff --git a/indenters/__TODO/example.css b/indenters/examples/example.css similarity index 100% rename from indenters/__TODO/example.css rename to indenters/examples/example.css diff --git a/indenters/__TODO/example.f90 b/indenters/examples/example.f90 similarity index 100% rename from indenters/__TODO/example.f90 rename to indenters/examples/example.f90 diff --git a/indenters/__TODO/example.html b/indenters/examples/example.html similarity index 100% rename from indenters/__TODO/example.html rename to indenters/examples/example.html diff --git a/indenters/__TODO/example.js b/indenters/examples/example.js similarity index 100% rename from indenters/__TODO/example.js rename to indenters/examples/example.js diff --git a/indenters/__TODO/example.php b/indenters/examples/example.php similarity index 100% rename from indenters/__TODO/example.php rename to indenters/examples/example.php diff --git a/indenters/__TODO/example.pl b/indenters/examples/example.pl similarity index 100% rename from indenters/__TODO/example.pl rename to indenters/examples/example.pl diff --git a/indenters/__TODO/example.py b/indenters/examples/example.py similarity index 100% rename from indenters/__TODO/example.py rename to indenters/examples/example.py diff --git a/indenters/__TODO/example.rb b/indenters/examples/example.rb similarity index 100% rename from indenters/__TODO/example.rb rename to indenters/examples/example.rb diff --git a/indenters/__TODO/example.sh b/indenters/examples/example.sh similarity index 100% rename from indenters/__TODO/example.sh rename to indenters/examples/example.sh diff --git a/indenters/__TODO/example.sql b/indenters/examples/example.sql similarity index 100% rename from indenters/__TODO/example.sql rename to indenters/examples/example.sql diff --git a/indenters/__TODO/example.vb b/indenters/examples/example.vb similarity index 100% rename from indenters/__TODO/example.vb rename to indenters/examples/example.vb diff --git a/indenters/__TODO/example.xml b/indenters/examples/example.xml similarity index 100% rename from indenters/__TODO/example.xml rename to indenters/examples/example.xml diff --git a/indenters/__TODO/hindent b/indenters/examples/hindent similarity index 100% rename from indenters/__TODO/hindent rename to indenters/examples/hindent diff --git a/indenters/__TODO/hindent.html b/indenters/examples/hindent.html similarity index 100% rename from indenters/__TODO/hindent.html rename to indenters/examples/hindent.html diff --git a/indenters/__TODO/perltidy b/indenters/examples/perltidy similarity index 100% rename from indenters/__TODO/perltidy rename to indenters/examples/perltidy diff --git a/indenters/__TODO/phpStylist.php b/indenters/examples/phpStylist.php similarity index 100% rename from indenters/__TODO/phpStylist.php rename to indenters/examples/phpStylist.php diff --git a/indenters/__TODO/phpStylist.txt b/indenters/examples/phpStylist.txt similarity index 100% rename from indenters/__TODO/phpStylist.txt rename to indenters/examples/phpStylist.txt diff --git a/indenters/__TODO/pindent.py b/indenters/examples/pindent.py similarity index 100% rename from indenters/__TODO/pindent.py rename to indenters/examples/pindent.py diff --git a/indenters/__TODO/pindent.txt b/indenters/examples/pindent.txt similarity index 100% rename from indenters/__TODO/pindent.txt rename to indenters/examples/pindent.txt diff --git a/indenters/__TODO/rbeautify.rb b/indenters/examples/rbeautify.rb similarity index 100% rename from indenters/__TODO/rbeautify.rb rename to indenters/examples/rbeautify.rb diff --git a/indenters/__TODO/ruby_formatter.rb b/indenters/examples/ruby_formatter.rb similarity index 100% rename from indenters/__TODO/ruby_formatter.rb rename to indenters/examples/ruby_formatter.rb diff --git a/indenters/__TODO/shellindent.awk b/indenters/examples/shellindent.awk similarity index 100% rename from indenters/__TODO/shellindent.awk rename to indenters/examples/shellindent.awk