2
0
Fork 0

osm-garmin: add renaming of output map files

main
Ducky 2023-10-02 20:43:44 +01:00
parent 48a261d03c
commit 3a91128f30
1 changed files with 4 additions and 5 deletions

View File

@ -65,17 +65,16 @@ function build_gmap() {
if [[ $build_failed == "false" ]]; then
rm -f $generated_map_dir/*
mv "$build_dir/gmapsupp.img" "$generated_map_dir/"
mv "$build_dir/osmmap.img" "$generated_map_dir/"
mv "$build_dir/osmmap.tdb" "$generated_map_dir/"
mv "$build_dir/gmapsupp.img" "$generated_map_dir/${region_shortname}_gmapsupp.img"
mv "$build_dir/osmmap.img" "$generated_map_dir/${region_shortname}_osmmap.img"
mv "$build_dir/osmmap.tdb" "$generated_map_dir/${region_shortname}_osmmap.tdb"
echo "$version" > "$version_path"
rm -f $build_dir/*
rm -f "$styles_dir/x$style.TYP"
else
rm -f $build_dir/*
fi
rm -f "$styles_dir/x$style.TYP"
fi
}