[ptx] (appendix) How to compile hugin cvs on debian GNU linux sarge/SID?

Andreas Hirczy ahi at itp.tugraz.at
Mon Nov 8 19:10:45 GMT 2004


Franck SICARD <franck.sicard at 3demi.net> writes:

> i use this little script:

cvs diff - very clever
 
> ############
> export EMAIL="Franck Sicard <franck.sicard at 3demi.net>"
> 
> lineChanged=forceBuild
> test -f forceBuild || lineChanged=`cvs -q diff -r HEAD | grep -v "^? .*" | wc -l`
> echo there is "$lineChanged" line changes
> test "$lineChanged" = 0 && echo sources not updated && exit 0
> 
> cvs update

I prefer "cvs update -Pd", but didn't protect me from those old config.h
files  :)

Maybe "./bootstrap" should hunt and delete them?

> HUGIN_VERSION=0.4pre`date +%Y%m%d`
> dch -v $HUGIN_VERSION "new upstream dev version"

> ./bootstrap
> #aclocal -I m4
> autoconf
> dpkg-buildpackage -nc -ICVS -rfakeroot -e"$EMAIL" && dpkg-buildpackage -S -ICVS -rfakeroot -e"$EMAIL" && cp ../hugin_"$HUGIN_VERSION"* ~/Web/3demi/www.3demi.net/htdocs/debian/debs/ && rm -f forceBuild
> ############

I use a shell script "~/bin/bootstrap" for a quick test installation
now and then:

-----------------
#!/bin/sh

DIR=`pwd`
PKG=`basename $DIR`

if [ -d CVS ]; then
    cvs update -Pd
fi
    
if [ -x ./bootstrap ]; then
    ./bootstrap
fi

make distclean         # might fail (no Makefile present)

./configure --prefix=/tmp/$PKG \
    && make clean \
    && make \
    && make install
-----------------


ciao,
Andraes
-- 
Andreas Hirczy <ahi at itp.tugraz.at>                   http://itp.tugraz.at/~ahi/
Graz University of Technology                          phone: +43/316/873-81 90
Institute of Theoretical and Computational Physics       fax: +43/316/873-86 78
Petersgasse 16, A-8010 Graz                         mobile: +43/699/19 14 24 60


More information about the ptX mailing list