User:Steko/Automated CVS compiling
Jump to navigation
Jump to search
This is a shell script of mine that I use to automate the procedure of CVS updating and compiling from the fresh sources.
Please note that includes paths work well on Ubuntu Dapper Drake and most probably on Debian, too. They might not work on other distributions. Installing is not executed by default, to let me double check for errors in the make results. I don't want to install a buggy GRASS!
Use at your risk, I put it here in the hope it is helpful.
#!/bin/sh # GRASS 6.1 CVS Lazy updater script cd src/grass6/ make clean make distclean cd .. export CVSROOT=:pserver:grass-guest@intevation.de:/home/grass/grassrepository cvs login cvs up -dP cd grass6 CFLAGS="-O2 -march=pentium-m -Wall" LDFLAGS="-s" ./configure \ --with-tcltk-includes=/usr/include/tcl8.4 --with-postgres-includes=/usr/include/postgresql \ --with-sqlite --with-cxx --with-fftw --with-freetype-includes=/usr/includes/freetype2/ \ --with-readline --with-opengl-includes=/usr/include/GL \ --with-mysql-includes=/usr/include/mysql --with-mysql time make cd src/grass6 echo "If you don't see errors above, you can install GRASS with `sudo make install`"