summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-06-09 18:03:06 +0200
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-06-09 18:03:06 +0200
commit8154fb27f7156116d39e3658a0b9abeb9d502c57 (patch)
tree9655891266266c7e4ad82ee7fd84faaaadc6e696
parentso users don't have to stay on a single page for 300 seconds for an update (diff)
downloadbeziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.tar
beziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.tar.gz
beziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.tar.bz2
beziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.tar.lz
beziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.tar.xz
beziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.tar.zst
beziapp-8154fb27f7156116d39e3658a0b9abeb9d502c57.zip
-rw-r--r--Makefile39
-rwxr-xr-xconfigure4
-rwxr-xr-xinstall3
3 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..141eca1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,39 @@
+default:
+ @echo "*** BežiApp Makefile ***"
+ @echo "targets:"
+ @echo " make prepare installs dependencies, cleans after itself, requires sudo permissions and debian/ubuntu for apt"
+ @echo " make install installs BežiApp to dist/"
+ @echo "no target specified, exiting ..."
+
+prepare:
+ #!/bin/bash
+ sudo apt install git
+ mkdir tmp
+ cd tmp
+ rm -rf bverbose
+ git clone https://github.com/sijanec/bverbose
+ cd bverbose
+ make prepare
+ make install
+ mv bin ../../bin
+ cd ..
+ rm -rf bverbose
+ cd ..
+
+install:
+ #!/bin/bash
+ ./bin/bvr-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/bvr-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/bvr-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/bvr-jsmin assets/js/\"\$FILE\" \"\$FILE_DST\""
+
+ cp -r assets/root/.well-known dist/
+
diff --git a/configure b/configure
index 13d7a7f..6aaed20 100755
--- a/configure
+++ b/configure
@@ -1,4 +1,8 @@
#!/bin/bash
+
+echo " I think that install and configure should be deprecated."
+echo " use sudo make prepare and make install instead and fix any of yours git-pre-add hooks or whatever."
+echo " --sijanec"
mkdir tmp
cd tmp
rm -rf bverbose
diff --git a/install b/install
index 06fc8bc..103a454 100755
--- a/install
+++ b/install
@@ -1,4 +1,7 @@
#!/bin/bash
+echo " I think that install and configure should be deprecated."
+echo " use sudo make prepare and make install instead and fix any of yours git-pre-add hooks or whatever."
+echo " --sijanec"
./bin/compose-html assets/pages-src/ dist/pages/ .html
cp -r assets/css dist/
cp -r assets/fonts dist/