PATCH_CCP4 (CCP4: Basic)
NAME
patch_ccp4.sh
- automatically patch CCP4 source code files
SYNOPSIS
patch_ccp4.sh
DESCRIPTION
PATCH_CCP4 is a shell script will which will attempt to automatically
download and apply all the available source code patches for the current
release.
Note that:
- The script doesn't have to be run in any special location as
it uses the CCP4 environment variables to correctly locate the
files that are to be updated.
- If you have a binary distribution then only data files and scripts
(such as CCP4i) will be updated.
- The script applies the fixes but does not recompile the programs,
this must still be done by hand - see the relevant section of the
CCP4 installation documentation.
- This will only work for UNIX-like systems.
- The user running the patching script needs to have write permission
on the $CCP4 directory plus the files that are going to be
patched.
DETAILS
The script operates in the directory $CCP4/.patches (which will
be created if it doesn't already exist), and uses the wget command
to download the available patches plus an index file from the CCP4 FTP
server.
Each patch (ending with a .diff extension) is then checked
to see if it has been applied by previous runs of the script - if not then
an attempt is made to apply it using the patch program, and a
record is made of the attempt.
AUTHORS
Peter Briggs
SEE ALSO
ccp4_installation
EXAMPLES
To invoke the script, do e.g.:
| > cd $CETC |
| > ./patch_ccp4.sh |