| 123456789101112131415161718192021 | #!/bin/bash# delete stale grandalfrm -rf ./grandalf# oddly, github can convert to svn and then I can checkout the folder as an svn repo...?# get itsvn checkout https://github.com/bdcht/grandalf/trunk/grandalf/# delete the .svn stuff and the __pycache__ if they existrm -rf ./grandalf/.svnif [[ -d "./grandalf/__pycache__" ]]then    rm -r ./grandalf/__pycache__fiif [[ -d "./grandalf/utils/__pycache__" ]]then    rm -r ./grandalf/utils/__pycache__fi# fix the imports, they need to be made relative to Mantis.sed -i 's/grandalf\.utils/.utils/g' ./grandalf/*.py # annoyingly, it isn't consistent in the reposed -i 's/\.utils/mantis.grandalf.utils/g' ./grandalf/*.py# this works
 |