From: <smi...@us...> - 2003-11-01 21:18:16
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv28088/scripts Added Files: kbd Log Message: initial checkin --- NEW FILE: kbd --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/kbd,v $ # $Revision: 1.1 $ # $Date: 2003/11/01 21:18:13 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: kbd # 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 source $MYDIR/functions case $1 in build ) if [ ! -f kbd-patches.done ]; then bzcat $DL_DIR/src/kbd-1.08.patch.bz2 | patch -p1 || exit 1 touch kbd-patches.done fi ./configure --prefix=/usr --mandir=/usr/share/man || exit 1 make $PMAKE all || exit 1 strip_debug ;; install ) rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp/usr DATADIR=$WORKDIR/tmp/usr/share/kbd MANDIR=$WORKDIR/tmp/usr/share/man || exit 1 rm -rf $WORKDIR/tmp/usr/share/locale || exit 1 copy_docs $WORKDIR/tmp cp -dpR $WORKDIR/tmp/usr $CDDIR/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |