summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-17 13:49:56 +0200
committerrstular <rok@stular.eu>2020-05-17 13:49:56 +0200
commit96dd81ddf1188377bf1402e866c4b263dbd55d1c (patch)
treed981d7d5822c8c56b3071176fd85dc1127b3a21f /install
parentRemoved duplicate files (diff)
downloadbeziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.gz
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.bz2
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.lz
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.xz
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.zst
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.zip
Diffstat (limited to '')
-rwxr-xr-xinstall12
1 files changed, 6 insertions, 6 deletions
diff --git a/install b/install
index a563698..20d6480 100755
--- a/install
+++ b/install
@@ -1,9 +1,9 @@
#!/bin/bash
./bin/compose-html assets/pages-src/ dist/pages/ .html
# mkdir dist # dist itak naredi compose-html
-cp -r assets/css dist/css
-cp -r assets/fonts dist/fonts
-cp -r assets/img dist/img
-cp -r assets/js dist/js
-find assets/root/ \( ! -name "*.bvr" \) -exec cp "{}" dist/ \;
-find assets/root/* -exec ./bin/compose-single "{}" dist/"{}" \;
+cp -r assets/css dist/
+cp -r assets/fonts dist/
+cp -r assets/img dist/
+cp -r assets/js 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\""