DATE=`date +"%d%b%y"`
#RELEASE=`cat src/sourcenumber`
#ELFFILE=bed-$VERSION-1.i586.rpm
function argsize() {
ls  -s --human-readable $DISTPATH/$1|cut -d ' ' -f 1
}
function pgpfile() {
echo -n $1.asc
}
function pgpsize() {
ls -l $DISTPATH/$1| cut -d ' ' -f 23
}

ELFFILE=$NONSTATICARGFILE
ELFSIZE=`ls -s --human-readable $DISTPATH/$ELFFILE|cut -d ' ' -f 1`

PGPELFFILE=$ELFFILE.asc
PGPELFSIZE=`ls -l $DISTPATH/$PGPELFFILE| cut -d ' ' -f 23`

SRCFILE=$SRCBASE.tar.gz
SRCSIZE=`ls  -s --human-readable $DISTPATH/$SRCFILE|cut -d ' ' -f 1`

PGPSRCFILE=$SRCFILE.asc
PGPSRCSIZE=`ls -l $DISTPATH/$PGPSRCFILE| cut -d ' ' -f 23`

#WIN32SIZE=`ls  -s --human-readable $DISTPATH/$WIN32ARGFILE|cut -d ' ' -f 1`
#PGPWIN32ARGFILE=$WIN32ARGFILE.asc
#PGPWIN32ARGSIZE=`ls -l $DISTPATH/$PGPWIN32ARGFILE| cut -d ' ' -f 23`

WIN32SIZE=`argsize $WIN32ARGFILE`
PGPWIN32ARGFILE=`pgpfile $WIN32ARGFILE`
PGPWIN32ARGSIZE=`pgpsize $PGPWIN32ARGFILE`

FREEBSDSIZE=`argsize $FREEBSDARGFILE`
PGPFREEBSDARGFILE=`pgpfile $FREEBSDARGFILE`
PGPFREEBSDARGSIZE=`pgpsize $PGPFREEBSDARGFILE`

STATICSIZE=`argsize $STATICARGFILE`
PGPSTATICARGFILE=`pgpfile $STATICARGFILE`
PGPSTATICARGSIZE=`pgpsize $PGPSTATICARGFILE`

cat <<!
Begin3
Title: bed - Binary editor
Version: $VERSION
Entered-date: $DATE
Description:
!
cat description
cat <<!
Keywords: bed hex editor binary menu ascii decimal octal hexedecimal patch
Author: jkaltes@hotmail.com (Jaap Korthals Altes)
Primary-site: sunsite.unc.edu /pub/Linux/apps/editors/terminal/
		$SRCSIZE $SRCFILE (Source)
		$PGPSRCSIZE $PGPSRCFILE
		$ELFSIZE $ELFFILE (Binary)
		$PGPELFSIZE $PGPELFFILE
Alternate-site: http://bedlinux.tripod.com
		$SRCSIZE $SRCFILE (Source)
		$ELFSIZE $ELFFILE (Linux Binary)
		$FREEBSDSIZE $FREEBSDARGFILE (FreeBSD 4.4 Binary)
		$WIN32SIZE $WIN32ARGFILE (Windows 95 cygwin 1.3.10 Binary)
Platforms:	Source: FreeBSD 4.4, RedHat 9, Debian 2.2r6, Windows 95
		Binary: Debian 2.2r6/RedHat 7.1/9 i386
Copying-policy: GPL
End
!
