5 cat udiprops.txt | sed 's/ *#.*//' | grep -v '^$' | tr '\t' ' ' | grep -v 'source_files\|source_requires\|compile_options' | tr '\n' '\0' > .udiprops.bin
7 shortname=`grep 'shortname ' udiprops.txt | head -n 1 | awk '{print $2}'`
8 firstmodule=`grep 'module ' udiprops.txt | head -n 1 | awk '{print $2}'`
12 objcopy bin/$ABI/$firstmodule --add-section .udiprops=.udiprops.bin .primodule
16 outdir="udi-pkg.1/$shortname/2/$shortname"
18 tar -cf $shortname.udi bin/$ABI/* --transform 's~.*~'$outdir'/\0~'
19 tar --delete -f $shortname.udi $outdir/bin/$ABI/$firstmodule
20 tar -uf $shortname.udi .primodule --transform s~.*~$outdir/bin/$ABI/$firstmodule~