SMOLNET PORTAL home about changes
mk-db-entries.sh - gopher-lawn - The gopher lawn gopher directory project.
(URL) git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ (git://bitreich.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
mk-db-entries.sh (556B)
---
1 #!/bin/sh
2
3 lawndb="/br/gopher/lawn/db"
4 cd "${lawndb}"
5
6 while read -r line;
7 do
8 [ -z "${line}" ] && continue
9
10 server="$(printf "%s\n" "${line}" | cut -d' ' -f 1)"
11 linkfile="fediverse-${server}.link"
12 {
13 printf "Type: link\n"
14 printf "Selector: \n"
15 printf "Host: %s\n" "${server}"
16 printf "Port: 9999\n"
17 printf "LinkName: Pleroma at %s\n" "${server}"
18 printf "Description: Pleroma interface running at %s\n" "${server}"
19 printf "Keywords: fediverse\n"
20 printf "Category: fediverse\n"
21 printf "\n"
22 } > "${linkfile}"
23 git add "${linkfile}"
24 done
25
Response: application/gopher-menu
Original URLgopher://bitreich.org/1/scm/gopher-lawn/file/fediverse/mk...
Content-Typeapplication/gopher-menu; charset=utf-8