#!/bin/sh
#
#  This script removes blank lines from
#  $ROOTDIR/var/sadm/pkg/SUNWcsr/install/space.  Although the
#  space file is only used during initial SunOS installation, presence
#  of blank lines interfere with installation of SUNWcsr patches.
#
	Date=`date +%m%d%y%M`
	if test -f $ROOTDIR/var/sadm/pkg/SUNWcsr/install/space
        then
	    cd $ROOTDIR/var/sadm/pkg/SUNWcsr/install
	       if `ls space.* > /dev/null 2>&1 `; then
	       rm space.* 
               fi
            sed '/^$/d' space > space.$Date
	    cp -p space.$Date space
	fi
exit 0
