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

MODULE=Frost-for-Facebook

cd ..

current=${PWD##*/}

if [ "$current" != "$MODULE" ]; then
    echo "Not in $MODULE";
    return;
fi

# DANGEROUS! Removes all files matching regex

egrep -lir --include="*.xml" "<resources.*></resources>" "./" | tr '\n' '\0' | xargs -0 -n1 rm

# Delete empty directories

find . -type d -empty -delete