4 rsync --quiet --recursive src/assets/css/ dist/assets/css/
5 rsync --quiet --recursive src/assets/images/ dist/assets/images/
7 mkdir -p dist/assets/js/
8 cat src/assets/js/base.js src/assets/js/detailpage.js src/assets/js/searchpage.js src/assets/js/deletable.js src/assets/js/polygons.js > dist/assets/js/nominatim-ui.js
10 rsync --quiet node_modules/jquery/dist/jquery.min.js dist/assets/js/
11 rsync --quiet node_modules/leaflet/dist/leaflet.js dist/assets/js/
12 rsync --quiet node_modules/leaflet/dist/leaflet.js.map dist/assets/js/
13 rsync --quiet node_modules/leaflet/dist/leaflet.css dist/assets/css/
14 rsync --quiet node_modules/leaflet/dist/images/* dist/assets/css/images/
16 rsync --quiet node_modules/leaflet-minimap/dist/Control.MiniMap.min.js dist/assets/js/
17 rsync --quiet node_modules/leaflet-minimap/dist/Control.MiniMap.min.css dist/assets/css/
18 rsync --quiet node_modules/leaflet-minimap/dist/images/* dist/assets/css/images/
20 rsync --quiet node_modules/bootstrap/dist/js/bootstrap.bundle.min.js* dist/assets/js/
21 rsync --quiet node_modules/bootstrap/dist/css/bootstrap.min.css dist/assets/css/
23 rsync --quiet node_modules/handlebars/dist/handlebars.min.js dist/assets/js/
24 rsync --quiet node_modules/@ungap/url-search-params/min.js dist/assets/js/url-search-params.js
25 rsync --quiet src/templates/*.hbs dist/
27 rsync --quiet src/*.js dist/
31 sed -e 's/BODYID/search-page/' src/layout.html | grep -v '</body>' | grep -v '</html>'
32 echo '<script id="searchpage-template" type="text/x-handlebars-template">'
33 cat src/templates/searchpage.hbs
40 sed -e 's/BODYID/reverse-page/' src/layout.html | grep -v '</body>' | grep -v '</html>'
41 echo '<script id="reversepage-template" type="text/x-handlebars-template">'
42 cat src/templates/reversepage.hbs
49 sed -e 's/BODYID/details-page/' src/layout.html | grep -v '</body>' | grep -v '</html>'
50 echo '<script id="detailspage-template" type="text/x-handlebars-template">'
51 cat src/templates/detailspage.hbs
53 echo '<script id="detailspage-index-template" type="text/x-handlebars-template">'
54 cat src/templates/detailspage-index.hbs
61 sed -e 's/BODYID/deletable-page/' src/layout.html | grep -v '</body>' | grep -v '</html>'
62 echo '<script id="deletable-template" type="text/x-handlebars-template">'
63 cat src/templates/deletable.hbs
67 } > dist/deletable.html
70 sed -e 's/BODYID/polygons-page/' src/layout.html | grep -v '</body>' | grep -v '</html>'
71 echo '<script id="polygons-template" type="text/x-handlebars-template">'
72 cat src/templates/polygons.hbs
76 } > dist/polygons.html
78 cp src/index.html dist/