diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-09-28 20:01:54 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-09-28 20:01:54 +0200 |
commit | 04e14174274d70fb69ed9bb1717ee80cf7f8ad65 (patch) | |
tree | 008a971d2a06c40e5c41decde20ec90a5e4a25f6 /phlogmap | |
parent | 3ee2fd5b7645a559c3257f52949286265d299358 (diff) | |
download | scripts-04e14174274d70fb69ed9bb1717ee80cf7f8ad65.tar.gz scripts-04e14174274d70fb69ed9bb1717ee80cf7f8ad65.tar.bz2 scripts-04e14174274d70fb69ed9bb1717ee80cf7f8ad65.zip |
update
Diffstat (limited to 'phlogmap')
-rwxr-xr-x | phlogmap | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phlogmap b/phlogmap new file mode 100755 index 0000000..211eb28 --- /dev/null +++ b/phlogmap @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# build gophermap + +cd $HOME/src/gopher/phlog + +echo "+-----------------------------------+" > gophermap +echo "| Phil's Phlog |" >> gophermap +echo "+-----------------------------------+" >> gophermap +echo "" >> gophermap +echo "0[Rss feed] /phlog/rss.xml spike.nagatha.fr 70" >> gophermap +echo "" >> gophermap + +dirs=($(ls -dr */)) +for dir in "${dirs[@]}"; do + dt=$(echo $dir| cut -c 1-10) + title="$(head -n 1 $dir/gophermap)" + echo -e "1$dt $title\t/phlog/$dir\tspike.nagatha.fr\t70" >> gophermap +done + +exit 0 |