X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/b7e33cdc29352afbad1e5d945d797fe0295c189e..22a3c929f1cd09efbe0dbd14f845331391e9d9cc:/build.sh?ds=inline diff --git a/build.sh b/build.sh index 229bb6d..f77b8a3 100755 --- a/build.sh +++ b/build.sh @@ -18,8 +18,8 @@ rsync --quiet node_modules/leaflet-minimap/dist/Control.MiniMap.min.css dist/ass rsync --quiet node_modules/leaflet-minimap/dist/images/* dist/assets/css/images/ rsync --quiet node_modules/bootstrap/dist/js/bootstrap.min.js dist/assets/js/ -rsync --quiet node_modules/bootstrap/dist/css/bootstrap.min.css dist/assets/css/ -rsync --quiet node_modules/bootstrap/dist/css/bootstrap-theme.min.css dist/assets/css/ +rsync --quiet node_modules/bootstrap/dist/css/bootstrap.min.css* dist/assets/css/ +rsync --quiet node_modules/bootstrap/dist/css/bootstrap-theme.min.css* dist/assets/css/ rsync --quiet node_modules/handlebars/dist/handlebars.min.js dist/assets/js/ rsync --quiet node_modules/@ungap/url-search-params/min.js dist/assets/js/url-search-params.js @@ -28,9 +28,31 @@ rsync --quiet src/templates/*.hbs dist/ rsync --quiet src/*.js dist/ -cat src/layout.html | perl -pe'use File::Slurper qw(read_text); s/\@include\((.+?)\)/read_text($1)/eg' > /tmp/included.html +# replaced the Perl one-liner with shell logic to remove the dependency +# cat src/layout.html | perl -pe'use File::Slurper qw(read_text); s/\@include\((.+?)\)/read_text($1)/eg' > /tmp/included.html + +cat src/layout.html | grep -v '' | grep -v '' | sed -e 's/BODYID/search-page/' > dist/search.html +echo '' >> dist/search.html +echo '' >> dist/search.html +echo '' >> dist/search.html + +cat src/layout.html | grep -v '' | grep -v '' | sed -e 's/BODYID/reverse-page/' > dist/reverse.html +echo '' >> dist/reverse.html +echo '' >> dist/reverse.html +echo '' >> dist/reverse.html + +cat src/layout.html | grep -v '' | grep -v '' | sed -e 's/BODYID/details-page/' > dist/details.html +echo '' >> dist/details.html +echo '' >> dist/details.html +echo '' >> dist/details.html +echo '' >> dist/details.html -cat /tmp/included.html | perl -pe's/BODYID/search-page/g' > dist/search.html -cat /tmp/included.html | perl -pe's/BODYID/reverse-page/g' > dist/reverse.html -cat /tmp/included.html | perl -pe's/BODYID/details-page/g' > dist/details.html cp src/index.html dist/