archive : archive_name to use parse_camel.
This commit is contained in:
parent
184b05a85c
commit
3f28585d50
|
@ -289,7 +289,7 @@ archive_name()
|
||||||
# simplify name by default.
|
# simplify name by default.
|
||||||
if [[ "${name}" = "" || ${count} -gt 1 ]]; then
|
if [[ "${name}" = "" || ${count} -gt 1 ]]; then
|
||||||
name="${target%_*}"
|
name="${target%_*}"
|
||||||
name="$(parse_alnum ${name})"
|
name="$(parse_camel ${name})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove old name.
|
# remove old name.
|
||||||
|
|
|
@ -11,6 +11,8 @@ parse_simplify()
|
||||||
-e "s/^_//" -e "s/_$//"
|
-e "s/^_//" -e "s/_$//"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Parse to CamelCase.
|
||||||
|
# Usage: parse_camel <STRING>
|
||||||
parse_camel()
|
parse_camel()
|
||||||
{
|
{
|
||||||
local IFS=${IFS}_-
|
local IFS=${IFS}_-
|
||||||
|
|
Reference in a new issue