clean_sync_leftovers.sh
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 05 Jul 2019 14:13:48 +0200
branchsync
changeset 3902 7eb39c8f2f94
parent 3471 3e68b40d3978
child 4603 1312267a908a
permissions -rwxr-xr-x
ENGINE-588: put strnstr into the keycount for pgp_sequoia.c - because of this count, the strstr in the function which uses it is ok and doesn't have to depend on null termination (it will terminate with the count)
krista@3165
     1
#!/bin/bash
krista@3165
     2
krista@3165
     3
cd src; hg status . | sed '/?\ /!d' | sed 's/?\ //' | xargs rm
krista@3165
     4
cd ../asn.1; hg status . | sed '/?\ /!d' | sed 's/?\ //' |  xargs rm
krista@3165
     5
cd ../sync; hg status . | sed '/?\ /!d' | sed 's/?\ //' |  xargs rm
krista@3165
     6
cd ..
krista@3471
     7
branch=`hg branch`
krista@3471
     8
if [ "$branch" = "sync" ]; then
krista@3471
     9
    rm 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
krista@3471
    10
fi