Hi, On Wed, 3 Oct 2001 15:32:36 +0200 (CEST) "Peter H. L. Christiansen" <pchristi@nbi.dk> wrote concerning "Re: aclocal and root.m4": > Hi guys > > There might be othe people like me who are discouraged half way through > not even so long emails so here is my modified script to update my brat on > afs. You disbeliever! > cd afshome/brat Start with #!/bin/bash prefix=${HOME} srcdir=${HOME}/brat while test $# -gt 0 ; do case $1 in --help|-h) echo "Usage `basename $0` [options]" echo "" echo " --prefix=<prefix> " echo " --srcdir=<source tree> " exit 0 ;; --prefix=*) prefix=`sed $1 | sed 's,--prefix=,,'` ;; --srcdir=*) srcdir=`sed $1 | sed 's,--srcdir=,,'` ;; *) confargs="$confargs $1" ;; esac shift done and then cd $srcdir > pwd Uh? > cvs update -A -d -P What happened to checking conflicts and so on? I suggest you do cvs update > update.log 2> update.err if test $? -ne 0 ; then echo "Update failed" exit 1 fi > mv ~/afshome/brat/config/root.m4 ~/root.m4 > mv ~/afshome/brat/config/xpm.m4 ~/xpm.m4 Yeah, I know ugly. > aclocal -I config > automake -a > autoconf > ./configure --prefix=/afs/rhic/brahms/users/pchristi These four steps can be accomplished with ./autogen --prefix=$prefix $confargs > configure.log 2> configure.err and ofcourse you should check for errors if test $? -ne 0 ; then echo "Configuring source tree failed" exit 0 fi > make clean A waste of time. Do make clean-dict > clean.log 2> clean.err if test $? -ne 0 ; then echo "Cleaning dictonaries failed" exit 1 fi > mv ~/root.m4 ~/afshome/brat/config/root.m4 > mv ~/xpm.m4 ~/afshome/brat/config/xpm.m4 Yeah, I know ugly. > make install We like to keep a log make install > build.log 2> install.err Yours, Christian Holm Christensen ------------------------------------------- Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 DK-2200 Copenhagen N Cell: (+45) 28 82 16 23 Denmark Office: (+45) 353 25 305 Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b30 : Wed Oct 03 2001 - 13:50:41 EDT