t* hacker news on gopher
URI git clone git://git.codevoid.de/hn-gopher
DIR Log
DIR Files
DIR Refs
---
thn-archiver.sh (759B)
---
1 #!/bin/sh
2
3 # lazy ass archiving tool..
4
5 DIR="/srv/codevoid-gopher/hn"
6 printf "
7 _______ __ _______
8 | | |.---.-..----.| |--..-----..----. | | |.-----..--.--.--..-----.
9 | || _ || __|| < | -__|| _| | || -__|| | | ||__ --|
10 |___|___||___._||____||__|__||_____||__| |__|____||_____||________||_____|
11 on Gopher (inofficial)
12 [h|Visit Hacker News on the Web|URL:https://news.ycombinator.com|server|port]
13
14 ARTICLE ARCHIVE SORTED BY ID (highest on top)
15
16 " > $DIR/archive.gph
17
18 for i in $(find $DIR/story_* | sort -r | xargs); do
19 cat $i >> $DIR/archive.gph;
20 done
21
22 printf "[1| Back to Hacker News live feed |/hn|server|port]" >> $DIR/archive.gph
23