TEMPDIR=$1
BUILD=`pwd`
umask 022
cd ${TEMPDIR}
# get the directory sizes in blocks
do
done
cd ${TEMPDIR}/..
cat - <<EOF >>$template
Package Name: ${package}.${NAME}
Package VRMF: ${vrmf}.0
Update: N
Fileset
Fileset Name: ${package}.${NAME}.rte
Fileset VRMF: ${vrmf}.0
Fileset Description: ${descr}
USRLIBLPPFiles
EOUSRLIBLPPFiles
Bosboot required: N
License agreement acceptance required: N
Include license files in this package: N
Requisites:
Upsize: /usr/share/man ${szman};
Upsize: /etc/${NAME} $szetc;
Upsize: /opt/${NAME} $szopt;
Upsize: /var/${NAME} $szvar;
USRFiles
EOF
cat - <<EOF >>$template
EOUSRFiles
ROOT Part: N
ROOTFiles
EOROOTFiles
Relocatable: N
EOFileset
EOF
# use mkinstallp to create the fileset. result is in ${TEMPDIR}/tmp
inutoc .
installp -d . -L