Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv8464/scripts
Added Files:
bonnie++
Log Message:
- added bonnie++ 1.03a
--- NEW FILE: bonnie++ ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/bonnie++,v $
# $Revision: 1.2 $
# $Date: 2006/09/08 22:23:56 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: bonnie++
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: bonnie++ harddisk benchmark
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=AIDE
case $1 in
build )
if [ "$CONFIG_BONNIEPP" = "y" ]; then
./configure --prefix=/usr || exit 1
make $PMAKE || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_BONNIEPP" = "y" ]; then
rm -rf $TMPDIR
mkdir -p $TMPDIR/usr || exit 1
make install prefix=$TMPDIR/usr || exit 1
copy_docs $TMPDIR
copy_files $TMPDIR/usr $CDDIR || exit 1
rm -rf $TMPDIR || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|