#!/bin/sh - # DLIFE (C) 2000 Richard W.M. Jones # and other authors listed in the ``AUTHORS'' file. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # $Id: Build.local,v 1.2 2002/04/05 17:02:25 rich Exp $ # This is a highly specialized build script for my machine. You will # probably need to change this substantially to be appropriate for # your environment. # # Please note also that you normally only ever run this script if you # have changed something about the build process itself -- for example # if you have changed ``configure.in'' or one of the ``Makefile.am'' # files. If you just want to do a normal rebuild after changing a # source file, all you need to do is: # # make && make install # # - RWMJ 1999/12/27. set -e set -v : Make clean make distclean ||: : Rebuilding autoconf/automake files aclocal autoheader automake autoconf mkdir -p $HOME/.build/{usr/share/doc,etc/cron.d,etc/init.d,var} ||: : Configure. CFLAGS="-O" \ ./configure \ --prefix=$HOME/.build/usr \ --sysconfdir=$HOME/.build/etc \ --localstatedir=$HOME/.build/var : Build. make : Install in local build directory make NO_CHOWN=1 install : Now run it with: $HOME/.build/usr/bin/dlife_soup