#!/bin/bash

set -e

mkdir -p out
./rndf2osm.py data/m2_mod.txt data/m22rn.txt out/m2_result.xml
xmllint --format out/m2_result.xml >out/m2_result.xml.new
mv out/m2_result.xml.new out/m2_result.xml
./osm2rndf.py out/m2_result.xml out/m2_result.txt
$ZOOX_WORKSPACE_ROOT/bazel-bin/packages/planner/rndf_edit/rndf_edit out/m2_result.txt
