#!/bin/csh # Copyright (C) Orekhov VYu, Jaravine VA (2006), Swedish NMR Centre, Gothenburg set un=`uname` set Linuxes=( Linux64 Linux32 Linux32a Linux32b ) set platform=unknown if( $un == Linux ) then foreach plfm ( $Linuxes ) set exe=./bin{$plfm}/mddnmr1.2c echo "trying $exe" $exe >& /dev/null if( $status ) continue set platform=$plfm echo "Install $exe" break end if( $platform == unknown ) then echo Unknown Linux platform; exit 1; endif endif if( $un == Darwin ) then if( `uname -p` == 'i386' ) then set platform=MAC_86 else set platform=MAC_G5 endif endif if( $un == unknown ) then echo Unknown platform; exit 1; else echo Installing for platform $platform endif set bin=bin{$platform}/ if( -l bin ) rm bin if( -d bin ) mv bin bin.bk if( -e bin ) rm -rf bin ln -s $bin bin set cdir=`pwd` echo '########## Installation of mddnmr is complete, however' echo '1 Please read the text in the file Copyright and Readme files.' echo "2. Assuming that the package is installed in $cdir (full path), add the following lines into .cshrc" echo " setenv MDD_NMR $cdir" echo ' set path=( $path . ${MDD_NMR}/bin ${MDD_NMR}/com )' echo '3. Note: To run this software you must have functioning nmrPipe package ' echo ' (Delaglio, F., et al., 1995, J. Biomol. NMR, 6, 277-293).' echo