summaryrefslogtreecommitdiff
path: root/pages/avatar.sh
blob: 477ce1caee76c38b255a507a0484cbd01152f710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#compile the index.html

. ~/.config/b4rcms/basics.sh 

avatar_database.sh


printf "$(

header avatar.html;

printf \ "
";

for LINE in $( tac $DB/avatar.txt ) ; do
	DATE=$(date -d @$(echo $LINE | cut -c -10) "+%d %b %Y, %a")
	FILE=$(echo $LINE| cut -c 12-)
	echo "<a href=\"/OC/normal/$FILE\"><img src=\"/OC/small/$FILE\"></a>"
done

footer
)" >| $SOURCE/avatar.html