225 |
size_kb=`du -sk $d | cut -f 1` |
size_kb=`du -sk $d | cut -f 1` |
226 |
entries_count=`find . | wc -l` |
entries_count=`find . | wc -l` |
227 |
cp ../linuxsampler.unpkg/$d/PackageInfo ../linuxsampler.prepkg/$d |
cp ../linuxsampler.unpkg/$d/PackageInfo ../linuxsampler.prepkg/$d |
228 |
xmltxt=`xmlstarlet ed -u '/pkg-info/payload/@numberOfFiles' -v $entries_count ../linuxsampler.prepkg/$d/PackageInfo | xmlstarlet ed -u '/pkg-info/payload/@installKBytes' -v $size_kb -` |
xmltxt=`xmlstarlet ed -u '/pkg-info/payload/@numberOfFiles' -v $entries_count ../linuxsampler.prepkg/$d/PackageInfo | xmlstarlet ed -u '/pkg-info/payload/@installKBytes' -v $size_kb` |
229 |
echo $xmltxt > ../linuxsampler.prepkg/$d/PackageInfo |
echo $xmltxt > ../linuxsampler.prepkg/$d/PackageInfo |
230 |
identifier=`xmlstarlet sel -t -v '/pkg-info/@identifier' ../linuxsampler.prepkg/$d/PackageInfo` |
identifier=`xmlstarlet sel -t -v '/pkg-info/@identifier' ../linuxsampler.prepkg/$d/PackageInfo` |
231 |
xmltxt=`xmlstarlet ed -u "/installer-gui-script/pkg-ref[@id='$identifier']/@installKBytes" -v $size_kb ../linuxsampler.prepkg/Distribution` |
xmltxt=`xmlstarlet ed -u "/installer-gui-script/pkg-ref[@id='$identifier']/@installKBytes" -v $size_kb ../linuxsampler.prepkg/Distribution` |