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()
|
||||
{
|
||||
local f files base extracted module_path
|
||||
local e f files base extracted module_path
|
||||
local del="-------------------------- generated by $myname"
|
||||
echo "# >> $del >>"
|
||||
files="$*"
|
||||
for f in $files; do
|
||||
base=${f##*/}
|
||||
|
|
@ -25,11 +27,13 @@ cmd_create_init()
|
|||
if [ "$sed_extract_command" ]; then
|
||||
#echo running $sed_extract_command on $f
|
||||
extracted=`sed "$sed_extract_command" $f`
|
||||
if [ "$extracted" ]; then
|
||||
echo "from $module_path import $extracted"
|
||||
fi
|
||||
#extracted="$sed_extract_command"
|
||||
for e in $extracted; do
|
||||
echo "from $module_path import $e"
|
||||
done
|
||||
fi
|
||||
done
|
||||
echo "# << $del <<"
|
||||
}
|
||||
|
||||
# --------------------- here we go
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue