all repos — eureka @ 439619fd297237592815b8f6dbc0e6564fd88af0

static site generator based on the 100r.co engine

tw.sh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

twtxt=../www/twtxt.txt

twt(){
  self=$(mktemp)
  new=$(mktemp)
  echo "$(date -Is)\t$@" > ${self}
  cat ${self} ${twtxt} > ${new}
  cp ${new} ${twtxt}
  rm ${new}
  rm ${self}
}

twt $@