From eca4ba77f9e96061f4438979f5b43fa22af13c1b Mon Sep 17 00:00:00 2001 From: Aleksey Dobrunov Date: Mon, 29 Apr 2024 21:57:43 +0500 Subject: [PATCH] update cmake scheme; add gen script from Pavel Pleva --- CHANGELOG.md | 1 + hrc/hrc/scripts/cmake/LICENSE | 1 + hrc/hrc/scripts/cmake/README.md | 75 - hrc/hrc/scripts/cmake/cmake-auto.ent.hrc | 1731 ++++++++++++++-------- hrc/hrc/scripts/cmake/cmake.ent.hrc | 346 ++--- hrc/hrc/scripts/cmake/cmake.hrc | 24 +- hrc/hrc/scripts/cmake/gen-cmake.sh | 193 +++ 7 files changed, 1461 insertions(+), 910 deletions(-) delete mode 100644 hrc/hrc/scripts/cmake/README.md create mode 100644 hrc/hrc/scripts/cmake/gen-cmake.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index ee7b0f06..5d1e7b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ - [cobolfr] many changes - [jcl] many changes - [pl1] many changes +- [cmake] updated for cmake version 3.29.2; add gen script for cmake ## [1.2.0] - 2021-09-12 diff --git a/hrc/hrc/scripts/cmake/LICENSE b/hrc/hrc/scripts/cmake/LICENSE index edad6c5a..351b073b 100644 --- a/hrc/hrc/scripts/cmake/LICENSE +++ b/hrc/hrc/scripts/cmake/LICENSE @@ -1,6 +1,7 @@ MIT License Copyright (c) 2018 Extrunder + 2024 Pavel Pleva Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/hrc/hrc/scripts/cmake/README.md b/hrc/hrc/scripts/cmake/README.md deleted file mode 100644 index 3e668aa0..00000000 --- a/hrc/hrc/scripts/cmake/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# CMake.hrc -Colorer cmake.hrc scheme. - -## Installation - -### Using 'proto.hrc' file (fast way) - -1. Download repository into somewhere -2. Add the following lines into proto.hrc and correct `location link` - -``` - - - /(\.cmake)$/i - /(^CMakeLists\.txt)$/i - /^cmake_minimum_required/xi - -``` - - -### Using 'auto' folder (simple way) - -1. `cd \Plugins\FarColorer\base\hrc\auto` -2. `git clone https://github.com/Extrunder/CMake.hrc.git scripts\cmake` - * `rmdir /S /Q scripts\cmake\.git` (it saves some space) -3. Create file `\Plugins\FarColorer\base\hrc\auto\proto.hrc` with following lines: - -``` - - - - - - - - /(\.cmake)$/i - /(^CMakeLists\.txt)$/i - /^cmake_minimum_required/xi - - -``` - -### Using custom directory (compatible way) - -1. `cd ` -2. `git clone https://github.com/Extrunder/CMake.hrc.git cmake` - * `rmdir /S /Q cmake\.git` (it saves some space) -3. Create file `\proto.hrc` -``` - - - - - - - - /(\.cmake)$/i - /(^CMakeLists\.txt)$/i - /^cmake_minimum_required/xi - - -``` -4. _**F9** -> **O**ptions -> Pl**u**gins configuration -> Fa**r**Colorer -> Users **f**ile of schemes_ -5. Type there `\proto.hrc` - - -### Using catalog.xml (correct way) - -... TODO ... diff --git a/hrc/hrc/scripts/cmake/cmake-auto.ent.hrc b/hrc/hrc/scripts/cmake/cmake-auto.ent.hrc index 57ca7b83..95a7caf2 100644 --- a/hrc/hrc/scripts/cmake/cmake-auto.ent.hrc +++ b/hrc/hrc/scripts/cmake/cmake-auto.ent.hrc @@ -1,8 +1,8 @@ @@ -11,19 +11,21 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + - + @@ -47,9 +49,18 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + @@ -65,12 +76,27 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + @@ -89,9 +115,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - @@ -107,6 +130,12 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + @@ -151,25 +180,9 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - - - - - - - - - + + + @@ -191,15 +204,40 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + @@ -218,16 +256,34 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + + + + @@ -236,6 +292,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + @@ -246,14 +303,17 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + @@ -262,84 +322,116 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + - + + + + + + + - - - - + + + + + + + + + + + + + + + + + - - - - + + + + + + + + - @@ -350,11 +442,26 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + @@ -363,28 +470,52 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + @@ -393,6 +524,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + @@ -406,6 +538,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + @@ -415,9 +548,15 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + + + + + + + @@ -429,13 +568,22 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + @@ -456,6 +604,11 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + @@ -470,46 +623,69 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + - + + + + + + + + + + + + + + + + + + + + + + @@ -530,6 +706,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + @@ -554,6 +731,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + @@ -561,29 +739,48 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + + + + + + + + + - + + + + + + + + + + + + @@ -593,23 +790,114 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -637,7 +925,8 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + + @@ -667,10 +956,14 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + @@ -680,12 +973,14 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + - - + + + @@ -700,9 +995,11 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + @@ -720,7 +1017,8 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + + @@ -731,15 +1029,19 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + @@ -822,7 +1124,10 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + @@ -836,20 +1141,11 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - @@ -859,24 +1155,21 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - + - + + - - - + @@ -889,14 +1182,12 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - + + @@ -907,18 +1198,11 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - @@ -926,19 +1210,8 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - @@ -947,47 +1220,25 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - + @@ -995,26 +1246,41 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + - - - - + + + + + + + + + + + + + + + + + + + + + - - + @@ -1023,10 +1289,18 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + - - - + + + + + + @@ -1034,43 +1308,44 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1078,9 +1353,8 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + @@ -1088,26 +1362,56 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1115,15 +1419,13 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - + - - + + @@ -1131,55 +1433,44 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + - - + - - + - + + + + + + - - - - - - - - - - - - - + - @@ -1192,8 +1483,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - @@ -1208,7 +1497,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - @@ -1217,17 +1505,49 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1237,16 +1557,16 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + - - - - + - - @@ -1254,17 +1574,18 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - + + + + - + @@ -1275,25 +1596,27 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - + + + + + + + @@ -1304,7 +1627,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + @@ -1325,14 +1648,13 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + @@ -1343,97 +1665,271 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + - - - + - - - - - - + - - - - - - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + - - - - - + + + + + @@ -1441,46 +1937,34 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - + + + + + - - - - - - - - - - - - - - - + - + + - - - - - + + + + + @@ -1488,44 +1972,26 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - + + - - + @@ -1537,26 +2003,12 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - - - - + + - - - + @@ -1564,41 +2016,33 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - + + + + + - - - - - - - - - - - - + - + + - - - - - + + + + + @@ -1606,62 +2050,62 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - + + + + + - - - - - - - - - + - + + - - - - - + + + + + + + + + + - + + + + + + + + + + - - - - - - - - @@ -1670,7 +2114,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - @@ -1678,21 +2121,10 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - @@ -1707,11 +2139,11 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + @@ -1721,30 +2153,21 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - + + - - - - - - - - + @@ -1752,9 +2175,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - @@ -1767,9 +2187,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - @@ -1779,11 +2196,8 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - @@ -1791,20 +2205,21 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + + + + + - - @@ -1812,11 +2227,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - @@ -1824,8 +2235,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - @@ -1834,7 +2243,51 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1852,19 +2305,26 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + + + + + + + + + + + - - @@ -1873,59 +2333,40 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -1939,14 +2380,23 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + + + - - - - - - + + @@ -1954,16 +2404,35 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1971,7 +2440,9 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + @@ -1987,16 +2458,21 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + - @@ -2005,10 +2481,63 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2016,7 +2545,6 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - @@ -2025,10 +2553,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - @@ -2038,11 +2563,7 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - @@ -2053,13 +2574,9 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - @@ -2067,14 +2584,9 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + - - - - - - @@ -2083,38 +2595,47 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -2122,11 +2643,13 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + - - + @@ -2134,52 +2657,33 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - + + + + + + + + + @@ -2187,24 +2691,34 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + + + + - - - - - - - - + + + + + + + + + + + + - - + + + + + + @@ -2221,26 +2735,20 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). - - + - - - - - @@ -2250,12 +2758,19 @@ CMake suite maintained and supported by Kitware (kitware.com/cmake). + + + + + + + + + + - - - diff --git a/hrc/hrc/scripts/cmake/cmake.ent.hrc b/hrc/hrc/scripts/cmake/cmake.ent.hrc index e0de45c7..d72ddb54 100644 --- a/hrc/hrc/scripts/cmake/cmake.ent.hrc +++ b/hrc/hrc/scripts/cmake/cmake.ent.hrc @@ -1,50 +1,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + @@ -56,225 +34,147 @@ + - - - + + + - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + - - - - - - - - - - - - - - - + + + + + + + + + + + - diff --git a/hrc/hrc/scripts/cmake/cmake.hrc b/hrc/hrc/scripts/cmake/cmake.hrc index cee60b83..7b11994e 100644 --- a/hrc/hrc/scripts/cmake/cmake.hrc +++ b/hrc/hrc/scripts/cmake/cmake.hrc @@ -9,7 +9,7 @@ + xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd"> @@ -106,8 +106,19 @@ + + + + + + + + + + - @@ -118,6 +129,9 @@ + + @@ -135,7 +149,6 @@ - @@ -156,8 +169,11 @@ + - /dev/null + if ! [ -f $in_vers ] && [ -f $in_vars ] && [ -f $in_cmds ]; then + echo "create script's input with generate=N!" + exit + fi +else + rm -rf $work + mkdir $work + cd $work > /dev/null + + echo "retrieving cmake help" + $cmake --version > $in_vers + $cmake --help-variable-list > $in_vars + $cmake --help-manual cmake-modules | grep '\.\. variable:: CPACK' | sed -e 's/^.\+:: //' >> $in_vars + $cmake --help-command-list > $in_cmds + for i in `cat $in_cmds`; do + $cmake --help-command $i > _$i.txt + done + echo "run generator with generate=Y" + exit +fi + + +### print header + +echo " +\n\n\n" >> $out + + +### expand variables + +echo "expanding variables" +vars=`cat $in_vars | tr 'a-zA-Z' 'A-Za-z' | sort | tr 'a-zA-Z' 'A-Za-z' | uniq` +for i in $vars; do + vars_exp="$vars_exp $i" + # special handling if variable contains <...> + if echo "$i" | grep -q '<' ; then + : + else + continue + fi + if echo "$i" | grep -q '' ; then + : + elif echo "$i" | grep '' | grep -q '' ; then + vars_exp="$vars_exp `echo $i | sed -e 's//C/' -e 's//DEFAULT/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//CXX/' -e 's//DEFAULT/'`" + elif echo "$i" | grep '' | grep -q '' ; then + vars_exp="$vars_exp `echo $i | sed -e 's//C/' -e 's//Debug/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//C/' -e 's//Release/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//C/' -e 's//RelWithDebInfo/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//CXX/' -e 's//Debug/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//CXX/' -e 's//Release/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//CXX/' -e 's//RelWithDebInfo/'`" + elif echo "$i" | grep -q '' ; then + vars_exp="$vars_exp `echo $i | sed -e 's//C/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//CXX/'`" + elif echo "$i" | grep -q '' ; then + vars_exp="$vars_exp `echo $i | sed -e 's//Debug/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//Release/'`" + vars_exp="$vars_exp `echo $i | sed -e 's//RelWithDebInfo/'`" + elif echo "$i" | grep -q '' ; then + for n in {0..9} ; do + vars_exp="$vars_exp `echo $i | sed -e "s//$n/"`" + done + fi +done +vars="$vars_exp" + + +### print variables + +echo "printing variables" +echo "" >> $out +echo -e "\t" >> $out +for i in $vars; do + # skip variable expansion operators + if [ "$i" = "CACHE" ] || [ "$i" = "ENV" ]; then + continue + fi + + if echo "$i" | grep -q '<' ; then + echo -e "\t\t" >> $out + else + echo -e "\t\t" >> $out + fi +done +echo -e "\t" >> $out +echo -e "\n\n" >> $out + + +### print commands entity + +echo "processing commands" +cmds=`cat $in_cmds | sort` + +# pair commands are handled in cmake.hrc - do not generate block rules for them +cmds1=`echo "$cmds" | grep -v '^\(if\|endif\|while\|endwhile\|block\|endblock\|foreach\|endforeach\|function\|endfunction\|macro\|endmacro\)$'` +echo -e "\n" >> $out + + +### print commands blocks + +echo "" >> $out +for i in $cmds1; do + echo -e -n "\t" >> $out + echo "" >> $out +done +echo -e "\n" >> $out + + +### print commands keywords + +# keywords for some commands are written in cmake.ent.hrc - do not generate it +cmds2=`echo "$cmds" | grep -v '^\(if\|install\|message\)$'` +for i in $cmds2; do + echo -e "\n" >> $out + + # parse commands descriptions to get keywords + if [ -f _$i.txt ]; then + keyw="" + # cut only definitions, expect format "keyword(...)" (allow "(...)" inside too) + defs=`cat _$i.txt | tr '\n' ' ' | sed -e "s/$i[\ (]/\n\0/g" | sed -n -e "s/.*\($i\ *(\(([^)]*)\|[^)]\)*)\).*/\1/pg"` + # to skip examples require some "syntactical" element or just one or two values + defs=`echo "$defs" | grep -e '[<[]' -e '\.\.\.' -e '([A-Z][A-Z0-9_]\+)' -e '([A-Z][A-Z0-9_]\+ [A-Z][A-Z0-9_]\+)'` + # decompose "" into "key1|key2|..." + defs=`echo "$defs" | sed -e 's/<\([A-Z][A-Z0-9_]\+\(\ *|\ *[A-Z][A-Z0-9_]\+\)\+\)>/\1/g'` + # cut to lines, remove "...", expand , remove leading <, select only keywords + keyw=`echo $defs | sed -e 's/\.\.\.\([][]\)/\1/g' -e 's/[|() ]/\n/g' | tr -d '[]' | sed -e 's/^\(.\+\)/C\1\nCXX\1/g' -e 's/^" >> $out + for j in $keyw; do + echo -e "\t\t" >> $out + done + echo -e "\t" >> $out + fi + fi + + # specials... + if [ "$i" = "file" ] || [ "$i" = "string" ]; then + echo -e "\t" >> $out + fi + if [ "$i" = "enable_language" ] || [ "$i" = "project" ]; then + echo -e "\t" >> $out + fi + + echo -e "\t" >> $out + echo -e "\n" >> $out +done + + +### finish + +cd - > /dev/null + +echo "generated file: $work/$out" +