######################################################
#
# BYLD: Build Your Linux Disk
# License: GPL2 (see LICENSE)
#
# (C) 1999-2000, Erich Roncarolo <erich@roncarolo.eu.org>
#

######################################################
#
# This is the Buildfile for the 'Joe' package.
# Usually Joe is linked as Editor.
#

function bf_log { echo "$@" >> $RLOG ; }

bf_log "--- DiskUtils Package Buildfile ---"

######################
#
# Needed binary
#

# This command look for a file and put it in directory sbin
bf_log "source Take root.root sbin gpm"
source Take root.root sbin gpm

# This command look for a file and put it in directory sbin
bf_log "source Take root.root opt/sbin mouseconfig"
source Take root.root opt/sbin mouseconfig

##############
#
# RCs
#

test -f etc/rc.d/.rcs && KC=$(grep mouseconfig etc/rc.d/.rcs)
if [ -z "$KC" ] ; then
	echo "" >> etc/rc.d/.rcs
	echo "# Mouse configuration" >> etc/rc.d/.rcs
	echo "mouseconfig" >> etc/rc.d/.rcs
fi
bf_log "Mouse RCs"
bf_log $(cat etc/rc.d/.rcs)

