]> git.openstreetmap.org Git - nominatim-ui.git/blob - build.sh
first commit
[nominatim-ui.git] / build.sh
1 #!/bin/bash
2
3 # mkdir dist/
4
5 rsync --quiet --recursive src/assets dist/
6 rsync --quiet --recursive src/templates dist/
7 rsync --quiet --recursive src/partials dist/
8
9 rsync --quiet src/*.js dist/
10
11
12 cat src/layout.html | perl -pe'use File::Slurper qw(read_text); s/\@include\((.+?)\)/read_text($1)/eg' > /tmp/included.html
13
14 cat /tmp/included.html | perl -pe's/BODYID/search-page/g' > dist/search.html
15 cat /tmp/included.html | perl -pe's/BODYID/reverse-page/g' > dist/reverse.html
16 cat /tmp/included.html | perl -pe's/BODYID/details-page/g' > dist/details.html
17