mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
python-tools.mk: Fix __init__.py generation
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3f782d3f3f
commit
ba314df490
1 changed files with 8 additions and 4 deletions
|
|
@ -12,7 +12,9 @@ usage()
|
||||||
|
|
||||||
cmd_create_init()
|
cmd_create_init()
|
||||||
{
|
{
|
||||||
local f files base extracted module_path
|
local e f files base extracted module_path
|
||||||
|
local del="-------------------------- generated by $myname"
|
||||||
|
echo "# >> $del >>"
|
||||||
files="$*"
|
files="$*"
|
||||||
for f in $files; do
|
for f in $files; do
|
||||||
base=${f##*/}
|
base=${f##*/}
|
||||||
|
|
@ -25,11 +27,13 @@ cmd_create_init()
|
||||||
if [ "$sed_extract_command" ]; then
|
if [ "$sed_extract_command" ]; then
|
||||||
#echo running $sed_extract_command on $f
|
#echo running $sed_extract_command on $f
|
||||||
extracted=`sed "$sed_extract_command" $f`
|
extracted=`sed "$sed_extract_command" $f`
|
||||||
if [ "$extracted" ]; then
|
#extracted="$sed_extract_command"
|
||||||
echo "from $module_path import $extracted"
|
for e in $extracted; do
|
||||||
fi
|
echo "from $module_path import $e"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "# << $del <<"
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------------------- here we go
|
# --------------------- here we go
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue