From 68e139f29357d530eb0b0eaf18a437f2dd77e5c9 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 13 Sep 2005 04:50:28 +0000 Subject: Get installed size right. --- dist/debian/mkpkg | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'dist') diff --git a/dist/debian/mkpkg b/dist/debian/mkpkg index d8877e76..830d8b2c 100755 --- a/dist/debian/mkpkg +++ b/dist/debian/mkpkg @@ -48,18 +48,6 @@ for(i)@{ deb=$package^_$date^_$arch.deb rm -rf $i $deb mkdir $i $i/DEBIAN - { - echo Package: $package - echo Version: $date - echo Architecture: $arch - comma Depends: $depends - comma Suggests: $suggests - comma Conflicts: $conflicts - echo Source: plan9port-src - echo Installed-Size: $size - echo Maintainer: 'Russ Cox ' - echo Description: $desc - } >$i/DEBIAN/control whatis grepfor awk -v'grepfor='$grepfor -v 'pkg='$i -v 'plan9='$TREE9 ' BEGIN { print "grep for " grepfor >"/dev/stderr" } @@ -73,6 +61,19 @@ for(i)@{ if($1 !~ /\/$/) printf("cp ''%s'' ''%s''\n", plan9 "/" $1, pkg "/usr/local/plan9/" $1) }' $TREE9/dist/filelist | rc + size=`{du -sk $i | awk '{print $1}'} + { + echo Package: $package + echo Version: $date + echo Architecture: $arch + comma Depends: $depends + comma Suggests: $suggests + comma Conflicts: $conflicts + echo Source: plan9port-src + echo Installed-Size: $size + echo Maintainer: 'Russ Cox ' + echo Description: $desc + } >$i/DEBIAN/control if(test -d $i/usr){ @{ cd $i -- cgit v1.2.3