~ubuntu-branches/ubuntu/lucid/fslview/lucid

« back to all changes in this revision

Viewing changes to fsl/fslio/imrm

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2009-02-06 12:13:24 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090206121324-pib80tw725kqxe45
Tags: 3.0.2+4.1.2-2
* Compile internal libraries as shared libs and install them under
  /usr/lib/fsl/lib, so FSL itself can use them as well.
* Expose FSL's internal libs via RPATH to the included binaries.
  That should be appropriate, since they are built from the same package
  and are not intended to be used by other packages than FSL (hence, no -dev
  package).
* Added patch to prevent fslview from crashing with images that have dim4=0.
  Thanks to Wim Otte.
* Build package with -Wl,--no-undefined.
* Added 'XS-DM-Upload-Allowed: yes' to debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
#   imrm - remove image files
 
4
#
 
5
#   Stephen Smith and Mark Jenkinson, FMRIB Image Analysis Group
 
6
#
 
7
#   Copyright (C) 1999-2004 University of Oxford
 
8
#
 
9
#   SHCOPYRIGHT
 
10
 
 
11
if [ $# -lt 1 ] ; then
 
12
  echo "Usage: $0 <list of image names to remove>"
 
13
  echo "NB: filenames can be basenames or not"
 
14
  exit 1;
 
15
fi
 
16
 
 
17
for f in $@ ; do
 
18
  fn=`${FSLDIR}/bin/remove_ext $f`;
 
19
  # do the rm silently
 
20
  /bin/rm -f ${fn}.img ${fn}.hdr ${fn}.hdr.gz ${fn}.img.gz ${fn}.nii ${fn}.nii.gz ${fn}.mnc ${fn}.mnc.gz
 
21
done
 
22