logo

gemini-tickets

Unnamed repository; edit this file 'description' to name the repository. git clone https://anongit.hacktivis.me/git/gemini-tickets.git/

gen-statuses.sh (255B)


  1. #!/bin/sh
  2. workdir=$PWD
  3. for dir in $(find * -type d -maxdepth 1)
  4. do
  5. cd "${workdir}/${dir}" || exit
  6. for bug in *-*-*T*
  7. do
  8. echo "=> ${bug// /%20} ${bug%%.gmi}"
  9. echo '```'
  10. sed '/^$/Q' "$bug"
  11. echo '```'
  12. done > "${workdir}/${dir}/index.gmi"
  13. done