Re: Make world?
From: Jeff Bailey <jbailey@nisa.net>
Subject: Re: Make world?
Date: Sat, 15 Jul 2000 17:14:56 -0700
> IIRC, that's supposed to be possible somehow with autoconf. I know that
> if "configure" scripts are chained together, they will share
> information.
If you just want to execute "cvs update", "configure", "make" and
"make install" in a batch manner, a simple shell script would be
enough.
#! /bin/sh
SUBDIRS="hurd gnumach mig grub"
CVS="/usr/local/bin/cvs"
MAKE="/usr/local/bin/make"
SHELL="/bin/sh"
AUTOCONF="/usr/local/bin/autoconf"
CVSROOT=":pserver:anoncvs@subversions.gnu.org:/home/cvs"
export CVSROOT
if grep $CVSROOT ~/.cvspass 2>&1 >/dev/null; then
:
else
echo | $CVS login
fi
for d in $SUBDIRS; do
if test -d $d; then
(cd $d && $CVS -z6 update -P -d)
else
$CVS -z6 checkout -P $d
fi
cd $d
if test -f ./configure; then
:
else
$AUTOCONF
fi
$SHELL ./configure
$MAKE
$MAKE install
cd ..
done
Reply to: