update helper scripts

This commit is contained in:
Adrian Ulrich 2018-02-11 14:34:00 +01:00
parent b371b16bf6
commit 7a822a24a1
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
gen() {
name=`basename "$1" .svgz`
png="res/drawable-$2/$name.png"
png="app/src/main/res/drawable-$2/$name.png"
if [ "$1" -nt "$png" -o ! -e "$png" ]; then
inkscape --without-gui --export-area-page --export-dpi=$3 --export-png="$png" $1
echo

View File

@ -23,7 +23,7 @@ foreach my $src_file (glob("translations/vanilla-music-1.en-strings/*.xml")) {
if ($src_file =~ /\/([a-zA-Z_]+)\.xml/) {
my $locale = $1;
$locale = $LMAP->{$locale} if exists $LMAP->{$locale};
my $dst_file = "res/values-$locale/translatable.xml";
my $dst_file = "app/src/main/res/values-$locale/translatable.xml";
warn "+ $src_file -> $dst_file\n";
die "Unknown locale: '$locale', target=$dst_file\n" unless -f $dst_file;