diff options
author | rstular <rok@stular.eu> | 2020-05-20 21:47:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 21:47:41 +0200 |
commit | 9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2 (patch) | |
tree | c96e2c622aeb56000d4736ba1932269f2dfd217b /install | |
parent | Merge pull request #8 from beziapp/dev (diff) | |
parent | Merge branch 'dev' of ssh://github.com/beziapp/beziapp.github.io into dev (diff) | |
download | beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.tar beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.tar.gz beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.tar.bz2 beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.tar.lz beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.tar.xz beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.tar.zst beziapp-9e63ad7fd187b5eea9f2e3d3a1e1fa9a2d1ec1d2.zip |
Diffstat (limited to 'install')
-rwxr-xr-x | install | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#!/bin/bash +./bin/compose-html assets/pages-src/ dist/pages/ .html +cp -r assets/css dist/ +cp -r assets/fonts dist/ +cp -r assets/img dist/ +find assets/root/ -type f \( ! -name "*.bvr" \) -exec cp -r "{}" dist/ \; +find assets/root/ -name "*.bvr" -printf "%f\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/\${FILE/.bvr/}"; ./bin/compose-single \"assets/root/\$FILE\" \"\$FILE_DST\"" + +# js bvr fajli +mkdir -p dist/js +# js ne znam te magije +find assets/js/ -name "*.bvr" -printf "%f\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/js/\${FILE/.bvr/}"; ./bin/compose-single \"assets/js/\$FILE\" \"\$FILE_DST\"" +find assets/js/ -name "*.js" -printf "%P\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/js/\${FILE/.bvr/}"; ./bin/jsmin assets/js/\"\$FILE\" \"\$FILE_DST\"" |