extra-deps 346 B

123456789101112131415
  1. #!/bin/sh
  2. # Outputs the extra dependencies of a doc.
  3. #
  4. # Must be run from the website directory.
  5. cat ${1%.html}.md |
  6. awk '/^@module/{ if (NF == 3) { print $3 } else { print "pkg/mods/" $2 } }' |
  7. sed 's/-//g' |
  8. while read dir; do
  9. echo ../$dir ../$dir/*
  10. done
  11. cat ${1%.html}.md |
  12. awk '$1 == "@ttyshot" { print $2 ".ttyshot.html" }'