clean_sync_leftovers.sh
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 22 Jun 2020 23:46:21 +0200
changeset 4757 f5f8da7627e9
parent 4603 1312267a908a
permissions -rwxr-xr-x
Merged in ENGINE-757
     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 ..
     7 branch=`hg branch`
     8 if [ "$branch" = "sync" ]; then
     9     rm -f src/TrustSync_fsm.c src/TrustSync_fsm.h src/KeySync_fsm.c src/KeySync_fsm.h src/Sync_actions.c src/Sync_event.c src/Sync_event.h src/Sync_func.c src/Sync_func.h src/Sync_impl.c src/Sync_impl.h src/sync_codec.c src/sync_codec.h
    10 fi