Additional fixes

This commit is contained in:
Pierre Pronchery 2012-06-14 23:53:58 +00:00
parent baa9980d14
commit 19ae99682b
2 changed files with 12 additions and 3 deletions

View File

@ -5,6 +5,8 @@
#environment
umask 022
#variables
[ -z "$ARCH" ] && ARCH=`uname -m`
case "$ARCH" in
@ -59,7 +61,9 @@ deforaos_build()
{
#configure cvs if necessary
$MKDIR "$HOME" || exit 2
[ ! -f "$HOME/.cvspass" ] && $TOUCH "$HOME/.cvspass"
if [ ! -f "$HOME/.cvspass" ]; then
$TOUCH "$HOME/.cvspass" || exit 2
fi
#checkout tree
$RM -r "$SRC"

View File

@ -5,11 +5,14 @@
#environment
umask 022
#variables
[ -z "$CVSROOT" ] && CVSROOT=":pserver:anonymous@anoncvs.defora.org:/home/cvs"
#private
DATE=`date '+%Y%m%d'`
DESTDIR="/var/www"
DEVNULL="/dev/null"
EMAIL="devel@lists.defora.org"
MODULE="DeforaOS"
SRC="$HOME/$MODULE"
@ -32,7 +35,9 @@ deforaos_update()
{
#configure cvs if necessary
$MKDIR "$HOME" || exit 2
([ ! -f "$HOME/.cvspass" ] && $TOUCH "$HOME/.cvspass") || exit 2
if [ ! -f "$HOME/.cvspass" ]; then
$TOUCH "$HOME/.cvspass" || exit 2
fi
#checkout tree if necessary
if [ ! -d "$SRC" ]; then
@ -52,7 +57,7 @@ deforaos_update()
$FIND "$SRC/System" "$SRC/Apps" -name "doc" | while read path; do
[ -x "$path/docbook.sh" ] || continue
for i in $path/*.xml; do
(cd "$path" && $MAKE install DESTDIR="$DESTDIR" PREFIX="/")
(cd "$path" && $MAKE install DESTDIR="$DESTDIR" PREFIX="/") 2> "$DEVNULL"
done
done