~ols/ols.wtf

3796d012023effa7a0bf8860ae67e2ce93d98358 — Oliver Leaver-Smith 6 months ago ff02e13
Use openbsd for build
2 files changed, 2 insertions(+), 4 deletions(-)

M .build.yml
M bin/twitter
M .build.yml => .build.yml +1 -4
@@ 1,7 1,4 @@
image: alpine/latest
packages:
  - rsync
  - perl
image: openbsd/latest
sources:
  - https://git.sr.ht/~ols/ols.wtf
environment:

M bin/twitter => bin/twitter +1 -0
@@ 5,4 5,5 @@ echo $file
	title=$(grep "<title>" $file | sed -e 's/.*<title>\(.*\)<\/title>.*/\1/' | sed "s/\&/\\\&/")
	description=$(grep "<h2>" $file | sed -e 's/.*<h2>\(.*\)<\/h2>.*/\1/')
	sed -ibak "s/{{TITLE}}/$title/; s/{{DESCRIPTION}}/$description/" $file
  rm ${file}bak
done