Skip to content

Commit

Permalink
Fix customize.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Mar 21, 2024
1 parent cdcb65c commit 01cca6d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions utils/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,10 @@ echo "Conversion of $module_Oldname to $module_Newname"
echo "Conversion of $module_OLDNAME to $module_NEWNAME"
echo "Conversion of $module_oldname to $module_newname"

# docstring test depends on module name size
new_size=`echo "${module_newname}" | wc -m`
dots_len=`expr 60 - ${new_size}`
dots=`head -c "${dots_len}" < /dev/zero | tr '\0' '.'`
sed -i "s|ottemplate ................................................. 0 tests failed|${module_newname} ${dots} 0 tests failed|g" python/test/t_docstring.expout

case $# in
2)

filelist_1="README.rst cmake/OTTemplateConfig.cmake.in CMakeLists.txt lib/CMakeLists.txt lib/include/CMakeLists.txt lib/include/ottemplate/OTTemplateprivate.hxx lib/include/ottemplate/OTTemplate.hxx lib/src/ottemplate/MyClass.hxx lib/src/MyClass.cxx lib/src/CMakeLists.txt lib/test/t_MyClass_std.cxx lib/test/t_MyClass_std.expout lib/test/CMakeLists.txt python/test/t_MyClass_std.py python/test/CMakeLists.txt python/src/__init__.py python/src/MyClass.i python/src/MyClass_doc.i.in python/src/CMakeLists.txt python/src/ottemplate_module.i distro/debian/changelog distro/debian/control distro/debian/rules distro/windows/installer.nsi distro/windows/README.txt python/doc/index.rst python/doc/conf.py.in python/doc/user_manual/user_manual.rst python/doc/developer_guide/architecture/architecture.rst distro/rpm/ottemplate.spec python/test/t_docstring.py python/test/t_docstring.expout"
filelist_1="README.rst cmake/OTTemplateConfig.cmake.in CMakeLists.txt lib/CMakeLists.txt lib/include/CMakeLists.txt lib/include/ottemplate/OTTemplateprivate.hxx lib/include/ottemplate/OTTemplate.hxx lib/src/ottemplate/MyClass.hxx lib/src/MyClass.cxx lib/src/CMakeLists.txt lib/test/t_MyClass_std.cxx lib/test/CMakeLists.txt python/test/t_MyClass_std.py python/test/CMakeLists.txt python/src/__init__.py python/src/MyClass.i python/src/MyClass_doc.i.in python/src/CMakeLists.txt python/src/ottemplate_module.i distro/debian/changelog distro/debian/control distro/debian/rules distro/windows/installer.nsi distro/windows/README.txt python/doc/index.rst python/doc/conf.py.in python/doc/user_manual/user_manual.rst python/doc/developer_guide/architecture/architecture.rst distro/rpm/ottemplate.spec python/test/t_docstring.py"
for file in $filelist_1
do
if test -f "$file"
Expand Down Expand Up @@ -100,7 +94,7 @@ case $# in



filelist_1="python/src/${module_newname}_module.i CMakeLists.txt python/src/MyClass.i python/src/MyClass_doc.i.in python/src/CMakeLists.txt lib/src/${module_newname}/MyClass.hxx lib/src/MyClass.cxx lib/include/${module_newname}/${module_Newname}.hxx lib/src/CMakeLists.txt lib/test/CMakeLists.txt lib/test/t_MyClass_std.cxx lib/test/t_MyClass_std.expout python/test/CMakeLists.txt python/test/t_MyClass_std.py python/doc/user_manual/user_manual.rst python/test/t_MyClass_std.expout"
filelist_1="python/src/${module_newname}_module.i CMakeLists.txt python/src/MyClass.i python/src/MyClass_doc.i.in python/src/CMakeLists.txt lib/src/${module_newname}/MyClass.hxx lib/src/MyClass.cxx lib/include/${module_newname}/${module_Newname}.hxx lib/src/CMakeLists.txt lib/test/CMakeLists.txt lib/test/t_MyClass_std.cxx python/test/CMakeLists.txt python/test/t_MyClass_std.py python/doc/user_manual/user_manual.rst"

for file in $filelist_1
do
Expand All @@ -114,7 +108,7 @@ case $# in
fi
done

filelist_2="python/src/MyClass.i python/src/MyClass_doc.i.in lib/src/MyClass.cxx lib/src/${module_newname}/MyClass.hxx lib/test/t_MyClass_std.cxx lib/test/t_MyClass_std.expout python/test/t_MyClass_std.py python/test/t_MyClass_std.expout"
filelist_2="python/src/MyClass.i python/src/MyClass_doc.i.in lib/src/MyClass.cxx lib/src/${module_newname}/MyClass.hxx lib/test/t_MyClass_std.cxx python/test/t_MyClass_std.py"

for file in $filelist_2
do
Expand Down

0 comments on commit 01cca6d

Please sign in to comment.