clean_sync_leftovers.sh
author Krista Bennett <krista@pep-project.org>
Thu, 29 Nov 2018 09:22:30 +0100
changeset 3165 0d3e23fbdaec
child 3471 3e68b40d3978
permissions -rwxr-xr-x
Added cheesy little script that will remove any damaging leftovers without a full hg clean in the src/asn.1/sync directories
     1 #!/bin/bash
     2 
     3 cd src; hg status . | sed '/?\ /!d' | sed 's/?\ //' | xargs rm
     4 cd ../asn.1; hg status . | sed '/?\ /!d' | sed 's/?\ //' |  xargs rm
     5 cd ../sync; hg status . | sed '/?\ /!d' | sed 's/?\ //' |  xargs rm
     6 cd ..