Compare commits
1 commit
80248dec88
...
9039dc7e40
| Author | SHA1 | Date | |
|---|---|---|---|
|
9039dc7e40 |
1 changed files with 5 additions and 0 deletions
|
|
@ -59,6 +59,11 @@ cmd_create_init()
|
||||||
if [ "$sed_extract_cmd" ]; then
|
if [ "$sed_extract_cmd" ]; then
|
||||||
local src_type types=$(sed "$sed_extract_cmd" $f)
|
local src_type types=$(sed "$sed_extract_cmd" $f)
|
||||||
for src_type in $types; do
|
for src_type in $types; do
|
||||||
|
if [ -z "$sed_symbol_filter_cmd" ]; then
|
||||||
|
dst_type="$src_type"
|
||||||
|
else
|
||||||
|
dst_type=$(echo $base $src_type | sed "$sed_symbol_filter_cmd")
|
||||||
|
fi
|
||||||
[ "$sed_symbol_filter_cmd" ] && dst_type=$(echo $base $src_type | sed "$sed_symbol_filter_cmd")
|
[ "$sed_symbol_filter_cmd" ] && dst_type=$(echo $base $src_type | sed "$sed_symbol_filter_cmd")
|
||||||
echo "from `module_path $base` import $src_type as $dst_type"
|
echo "from `module_path $base` import $src_type as $dst_type"
|
||||||
__add_seen $dst_type
|
__add_seen $dst_type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue