X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/cb5c9a8f77ae6e220a4565d43ef6f182b7831844..10d011cbada9eeb5fc8f489f4690f797dd9f2853:/build.sh diff --git a/build.sh b/build.sh index 96fc13b..9ecf435 100755 --- a/build.sh +++ b/build.sh @@ -27,45 +27,52 @@ rsync --quiet src/templates/*.hbs dist/ rsync --quiet src/*.js dist/ -# 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 +{ + sed -e 's/BODYID/search-page/' src/layout.html | grep -v '' | grep -v '' + echo '' + echo '' + echo '' +} > dist/search.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 +{ + sed -e 's/BODYID/reverse-page/' src/layout.html | grep -v '' | grep -v '' + echo '' + echo '' + echo '' +} > dist/reverse.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 +{ + sed -e 's/BODYID/details-page/' src/layout.html | grep -v '' | grep -v '' + echo '' + echo '' + echo '' + echo '' +} > dist/details.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 +{ + sed -e 's/BODYID/deletable-page/' src/layout.html | grep -v '' | grep -v '' + echo '' + echo '' + echo '' +} > dist/deletable.html -cat src/layout.html | grep -v '' | grep -v '' | sed -e 's/BODYID/deletable-page/' > dist/deletable.html -echo '' >> dist/deletable.html -echo '' >> dist/deletable.html -echo '' >> dist/deletable.html - -cat src/layout.html | grep -v '' | grep -v '' | sed -e 's/BODYID/polygons-page/' > dist/polygons.html -echo '' >> dist/polygons.html -echo '' >> dist/polygons.html -echo '' >> dist/polygons.html +{ + sed -e 's/BODYID/polygons-page/' src/layout.html | grep -v '' | grep -v '' + echo '' + echo '' + echo '' +} > dist/polygons.html cp src/index.html dist/