add script to reset all segment files

This commit is contained in:
vcoppe 2022-08-15 16:07:41 +02:00
parent e4a0cac8b6
commit 872c88b268
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
out_dir="../segments4" out_dir="tmp/segments4"
curl http://brouter.de/brouter/segments4/ --silent | grep "[EW][0-9]*_[NS][0-9]*\.rd5" -o | uniq > segments curl http://brouter.de/brouter/segments4/ --silent | grep "[EW][0-9]*_[NS][0-9]*\.rd5" -o | uniq > segments

7
misc/scripts/reset_segments.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
./download_segments.sh # downloads segments in tmp/segments4
mv ../segments4 tmp/segments4_old && mv tmp/segments4 ../segments4
rm -rf tmp