#!/bin/csh -f
mkdir clipper
cd clipper
wget ftp://ftp.ccp4.ac.uk/pjx/ccp4-onlylibs-5_0.tar.gz
wget http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper.latest.tar.gz
wget http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper-kiss.latest.tar.gz
tar xvfz ccp4-onlylibs-5_0.tar.gz
setenv CCP4_MASTER      $PWD
setenv CCP4             $CCP4_MASTER/ccp4-onlylibs-5_0/
setenv CCP4_SCR         /tmp/$USER
setenv BINSORT_SCR      $CCP4_SCR
setenv CCP4_OPEN        UNKNOWN
setenv CLIB             $CCP4/lib
setenv CLIBD            $CCP4/lib/data
setenv CLIBS            $CCP4/lib/src
setenv CINCL            $CCP4/include
setenv PUBLIC_FONT84    $CLIB/font84.dat
cd $CCP4
./configure --disable-ccif --onlylib linux
gmake -k install
cp lib/src/mmdb/*.h lib/src/*.h include
cd $CCP4_MASTER
tar xvfz clipper.latest.tar.gz
tar xvfz clipper-kiss.latest.tar.gz
./configure --ccp4dir=$CCP4
gmake examples
