Bug 468916 - make modifyLogin() smarter than just remove+add. r=zpao, r=gavin
[wine-gecko.git] / tools / build / gnome-tip-nightly
blob15e0e5df85402a0a474a9b83e18506ca17d89fcf
1 #!/bin/tcsh -f
2 # Original Author: Alec Flett <alecf@netscape.com>
3 # Shameless Modifier: leaf nunes <leaf@mozilla.org>
4 # Last checked in: $Date: 1999/02/09 08:09:58 $
5 # Last checked in by: $Author: leaf%mozilla.org $
7 test $# -gt 2 || echo "Usage: $0 package builddir prefix [options]" && exit
9 set package=$1
10 set builddir=$2
11 set prefix=$3
12 set options=$4
15 # add any special bin directories for the build here
16 set path = ( $path )
18 setenv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:/usr/openwin/lib:/tools/contrib/lib
21 cd $builddir
23 cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome checkout $package
26 cd $package
27 # find the version from the RPM spec file
29 set ver = `grep '%define.*\<ver\>' $package.spec | awk '{print $3}'`
31 # combine package and version to get the package-specific destination
32 set packagever = $package-$ver
33 set dest = $prefix/$packagever
37 # build
38 echo installing in $dest
39 rm config.cache
40 rm config.status
41 ./autogen.sh $options --prefix=$dest # --with-threads=posix
43 # clean up last night's build
44 find . -name '.deps' -exec rm -rf {} \; >& /dev/null
45 find . -name '.libs' -exec rm -rf {} \; >& /dev/null
46 gmake clean
48 # now build
49 gmake
50 gmake install
52 # remove the old installation of this version
53 (find $dest -type l && find $dest -type f) | \
54 sed s%$dest/%% | xargs -i% rm $prefix/%
56 # symlink in the new installation
57 pushd `pwd`
58 cd $prefix
59 lndir -ignorelinks $packagever
60 popd
63 # maybe add some tests to see if the build was successful.