Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25322/scripts
Added Files:
mt-st
Log Message:
added mt-st (Thomas Eder)
--- NEW FILE: mt-st ---
#!/bin/bash
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: mt
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: description
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=MT-ST
case $1 in
build )
if [ "$CONFIG_MT_ST" = "y" ]; then
make $PMAKE all || exit 1
#make all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_MT_ST" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp || exit 1
make install DESTDIR=$WORKDIR/tmp || exit 1
copy_docs $WORKDIR/tmp
mkdir -p $CDDIR/usr/bin
cp -p mt $CDDIR/usr/sbin
cp -p stinit $CDDIR/usr/sbin
rm -rf $WORKDIR/tmp || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|