aboutsummaryrefslogtreecommitdiff
path: root/files/translation_migration.sh
blob: d1372d12d60d40d3c81e638fa6a793d4e22364d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

MODULE=KAU

cd ..

current=${PWD##*/}

if [[ "$current" != "$MODULE" ]]; then
    echo "Not in $MODULE";
else
    # DANGEROUS! Removes all files matching regex
    grep -Lir "</string>" --include="strings*.xml" "." | tr '\n' '\0' | xargs -0 -n1 rm
    # Delete empty directories
    find . -type d -empty -delete
fi

echo "Finished cleanieckng files"