From 5cc7cb52b9205a89e1370b32c973580b1536558d Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 00:05:26 +0200 Subject: [PATCH 1/4] remove new.sh --- new.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 new.sh diff --git a/new.sh b/new.sh deleted file mode 100755 index 3a05034..0000000 --- a/new.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -EDITOR=nvim -TEMPFILE=/tmp/blog_entry.md - -$EDITOR $TEMPFILE - -NAME=entries/$(head -1 $TEMPFILE | cut -d" " -f2-).html - -cp $TEMPFILE "$NAME" -rm $TEMPFILE - -chmod +x $NAME From ce018d219373b675fe1e63c323eaf06e65713f75 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 11:05:15 +0200 Subject: [PATCH 2/4] move non-executables to site subdir --- {entries => site/entries}/entries.sh | 0 {entries => site/entries}/git_compile.html | 0 {entries => site/entries}/librex.html | 0 {entries => site/entries}/pci_passthrough.html | 0 {entries => site/entries}/ssh_forwarding.html | 0 {entries => site/entries}/welcome.html | 0 {images => site/images}/bg.gif | 0 {images => site/images}/bg.png | Bin {images => site/images}/gif.py | 0 {images => site/images}/remotecontrol-small.png | Bin {images => site/images}/remotecontrol.gif | 0 {images => site/images}/remotecontrol.png | Bin index.html => site/index.html | 0 mononoki.woff => site/mononoki.woff | Bin page.sh => site/page.sh | 0 rss.xml => site/rss.xml | 0 style.css => site/style.css | 0 17 files changed, 0 insertions(+), 0 deletions(-) rename {entries => site/entries}/entries.sh (100%) rename {entries => site/entries}/git_compile.html (100%) rename {entries => site/entries}/librex.html (100%) rename {entries => site/entries}/pci_passthrough.html (100%) rename {entries => site/entries}/ssh_forwarding.html (100%) rename {entries => site/entries}/welcome.html (100%) rename {images => site/images}/bg.gif (100%) rename {images => site/images}/bg.png (100%) rename {images => site/images}/gif.py (100%) rename {images => site/images}/remotecontrol-small.png (100%) rename {images => site/images}/remotecontrol.gif (100%) rename {images => site/images}/remotecontrol.png (100%) rename index.html => site/index.html (100%) rename mononoki.woff => site/mononoki.woff (100%) rename page.sh => site/page.sh (100%) rename rss.xml => site/rss.xml (100%) rename style.css => site/style.css (100%) diff --git a/entries/entries.sh b/site/entries/entries.sh similarity index 100% rename from entries/entries.sh rename to site/entries/entries.sh diff --git a/entries/git_compile.html b/site/entries/git_compile.html similarity index 100% rename from entries/git_compile.html rename to site/entries/git_compile.html diff --git a/entries/librex.html b/site/entries/librex.html similarity index 100% rename from entries/librex.html rename to site/entries/librex.html diff --git a/entries/pci_passthrough.html b/site/entries/pci_passthrough.html similarity index 100% rename from entries/pci_passthrough.html rename to site/entries/pci_passthrough.html diff --git a/entries/ssh_forwarding.html b/site/entries/ssh_forwarding.html similarity index 100% rename from entries/ssh_forwarding.html rename to site/entries/ssh_forwarding.html diff --git a/entries/welcome.html b/site/entries/welcome.html similarity index 100% rename from entries/welcome.html rename to site/entries/welcome.html diff --git a/images/bg.gif b/site/images/bg.gif similarity index 100% rename from images/bg.gif rename to site/images/bg.gif diff --git a/images/bg.png b/site/images/bg.png similarity index 100% rename from images/bg.png rename to site/images/bg.png diff --git a/images/gif.py b/site/images/gif.py similarity index 100% rename from images/gif.py rename to site/images/gif.py diff --git a/images/remotecontrol-small.png b/site/images/remotecontrol-small.png similarity index 100% rename from images/remotecontrol-small.png rename to site/images/remotecontrol-small.png diff --git a/images/remotecontrol.gif b/site/images/remotecontrol.gif similarity index 100% rename from images/remotecontrol.gif rename to site/images/remotecontrol.gif diff --git a/images/remotecontrol.png b/site/images/remotecontrol.png similarity index 100% rename from images/remotecontrol.png rename to site/images/remotecontrol.png diff --git a/index.html b/site/index.html similarity index 100% rename from index.html rename to site/index.html diff --git a/mononoki.woff b/site/mononoki.woff similarity index 100% rename from mononoki.woff rename to site/mononoki.woff diff --git a/page.sh b/site/page.sh similarity index 100% rename from page.sh rename to site/page.sh diff --git a/rss.xml b/site/rss.xml similarity index 100% rename from rss.xml rename to site/rss.xml diff --git a/style.css b/site/style.css similarity index 100% rename from style.css rename to site/style.css From a3e77b130dd9605fd226249e972833d28687dad8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 11:12:52 +0200 Subject: [PATCH 3/4] add build and new scripts --- build.sh | 6 ++++++ new.sh | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 build.sh create mode 100644 new.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..d0b8a2e --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +[ -d dist ] && rm -r dist +mkdir dist + +shblg -i site -o dist diff --git a/new.sh b/new.sh new file mode 100644 index 0000000..2493cff --- /dev/null +++ b/new.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +EDITOR=nvim +TEMPFILE=/tmp/blog_entry.md + +$EDITOR $TEMPFILE + +NAME=site/entries/$(head -1 $TEMPFILE | cut -d" " -f2- | tr " " "-" | tr "[:upper:]" "[:lower:]").html + +cp $TEMPFILE "$NAME" +rm $TEMPFILE + +chmod +x $NAME From f3684961d71e6ae58fe10cf75a73e4c5089af1e9 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 11:13:47 +0200 Subject: [PATCH 4/4] Fixed permissions on scripts --- build.sh | 0 new.sh | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 build.sh mode change 100644 => 100755 new.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/new.sh b/new.sh old mode 100644 new mode 100755