Skip to content

Instantly share code, notes, and snippets.

@Anthchirp
Last active October 6, 2016 15:39
Show Gist options
  • Save Anthchirp/698bbb38dfb21e99048aaf01f9cb56df to your computer and use it in GitHub Desktop.
Save Anthchirp/698bbb38dfb21e99048aaf01f9cb56df to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -rf base.old build.old
if [ -d base ]; then
mv base base.old
fi
if [ -d build ]; then
mv build build.old
fi
if [ -d base_tmp ]; then
cd base_tmp
for f in *; do
if [ -d "$f" ] && [ "$f" != "python_extra" ]; then
echo "Cleaning base_tmp/$f"
rm -rf -- "$f"
fi
done
rm -rf *_log
if [ -d "python_extra" ]; then
rm -rf python_extra/*_log
fi
cd ..
fi
python modules/cctbx_project/libtbx/auto_build/bootstrap.py --builder=dials base build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment