Skip to content

Instantly share code, notes, and snippets.

@jcfr
Created February 2, 2012 13:11
Show Gist options
  • Save jcfr/1723398 to your computer and use it in GitHub Desktop.
Save jcfr/1723398 to your computer and use it in GitHub Desktop.
This script allows to clean the CLI build directory following an update to revision >= 19202
#!/bin/bash
#
# 1) Save this file in <Slicer-Superbuild/Slicer-build>.
# 2) Chmod u+x CleanCLIModuleBuildDirectory.sh
# 3) Run the script
# 4) Rebuild
#
cliBinSubDirectory=./lib/Slicer-4.0/cli-modules/
for moduleName in \
Realign \
Add \
Cast \
CheckerBoard \
ImageReadDicomWrite \
DiffusionTensorMathematics \
DiffusionTensorEstimation \
RegisterImagesSlicer \
AffineRegistration \
BSplineDeformableRegistration \
RigidRegistration \
TransformFromFiducials \
jointLMMSE \
DiffusionWeightedMasking \
Mask \
SparseFieldLevelSetContour \
Multiply \
OrientImage \
PolyDataToLabelmap \
ResampleDTI \
ResampleVolume2 \
ResampleVolume \
dwiNoiseFilter \
RegisterImagesMultiRes \
ConfidenceConnected \
Subtract \
ComputeSUVBodyWeight \
Threshold \
Seeding \
dwiUNLM
do
echo ">> Removing $cliBinSubDirectory*$moduleName* ..."
rm -rfv $cliBinSubDirectory*$moduleName*
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment