Update of /cvsroot/devil-linux/build/scripts
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7839
Added Files:
resource-agents
Log Message:
added resource-agents
added docbook-xsl dependency
--- NEW FILE: resource-agents ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/resource-agents,v $
# $Revision: 1.4 $
# $Date: 2016/12/17 23:18:23 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
if [ "$CONFIG_PACEMAKER" = "y" ]; then
./autogen.sh || exit 1
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1
make MANPAGES_STYLESHEET=$(find_src_dir docbook-xsl)/manpages/docbook.xsl \
HTML_STYLESHEET=$(find_src_dir docbook-xsl)/xhtml/docbook.xsl \
FO_STYLESHEET=$(find_src_dir docbook-xsl)/fo/docbook.xsl \
$PMAKE all || exit 1
fi
;;
install )
if [ "$CONFIG_PACEMAKER" = "y" ]; then
rm -rf $TMPDIR
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR
rm -rf $TMPDIR/usr/share/doc || exit 1
copy_docs $TMPDIR
rm -rf $TMPDIR/usr/include || exit 1
cp -dvpR $TMPDIR/etc $ETCDIR/ || exit 1
cp -dvpR $TMPDIR/usr $CDDIR/ || exit 1
cp -dvpR $TMPDIR/var $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
|