|
From: Serge L. <sma...@us...> - 2005-12-10 10:07:27
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23696/scripts Added Files: unionfs Log Message: - added unionfs --- NEW FILE: unionfs --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/unionfs,v $ # $Revision: 1.2 $ # $Date: 2005/12/10 10:07:15 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: unionfs # Required-Start: $basebuildtools $libs linux # 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 case $1 in build ) if [ "$CONFIG_UNIONFS" = "y" ]; then replace_str Makefile "/usr/local" "/usr" || exit 1 # parallel build failes, do not use $PMAKE cat >> fistdev.mk <<-EOF TOPINC=-I/usr/src/linux/include EXTRACFLAGS=-DUNIONFS_NDEBUG EOF make || exit 1 strip_debug || exit 1 fi ;; install ) if [ "$CONFIG_UNIONFS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp/usr/sbin mkdir -p $WORKDIR/tmp/usr/share/man/man{4,8} || exit 1 cp union{ctl,dbg,imap} $WORKDIR/tmp/usr/sbin mkdir $CDDIR/lib/modules/`uname -r`/kernel/fs/unionfs cp unionfs.o $CDDIR/lib/modules/`uname -r`/kernel/fs/unionfs/ cp man/union{ctl,dbg,imap}.8 $WORKDIR/tmp/usr/share/man/man8 cp man/unionfs.4 $WORKDIR/tmp/usr/share/man/man4 copy_docs $WORKDIR/tmp || exit 1 copy_files $WORKDIR/tmp/usr/sbin $CDDIR/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |