gen-pkgsize revision 10139
2N/A# Script to generate file system usage information files (.pkgsize) 2N/A# for use of the install-jds script to calculate the disk space 2N/Aif [ $# =
0 -o
"x$1" =
"x--help" -o
"x$1" =
"x-h" ];
then 2N/A echo "Usage: $0 directory..." 2N/A echo "Calculate file system usage information files for the given directories" 2N/A if [ $? != 0 ]; then 2N/A du -sk */* | sed -e "s%^\([0-9]*\)[ ]*\(.*\)%$1 \1 $2/\2%" 2N/A du -sk * | sed -e "s%^\([0-9]*\)[ ]*\(.*\)%$1 \1 $2/\2%" 2N/A pname=`echo "$1" | sed -e 's/\.tar\.gz$//' -e 's/\.tgz$//'` 2N/A echo "Generating .pkgsize in $1"