archive : archive_name to use parse_camel.

This commit is contained in:
Dmitry Voronin 2023-12-01 01:40:06 +03:00
parent 184b05a85c
commit 3f28585d50
2 changed files with 3 additions and 1 deletions

View file

@ -289,7 +289,7 @@ archive_name()
# simplify name by default.
if [[ "${name}" = "" || ${count} -gt 1 ]]; then
name="${target%_*}"
name="$(parse_alnum ${name})"
name="$(parse_camel ${name})"
fi
# remove old name.

View file

@ -11,6 +11,8 @@ parse_simplify()
-e "s/^_//" -e "s/_$//"
}
# Parse to CamelCase.
# Usage: parse_camel <STRING>
parse_camel()
{
local IFS=${IFS}_-