makedocs.sh 342 B

1234567891011121314
  1. #!/bin/bash
  2. topdir=$(pwd)
  3. [ -f "$topdir/build/makedocs.sh" -a -n "$1" ] || {
  4. echo "Please execute as ./build/makedocs.sh [output directory]" >&2
  5. exit 1
  6. }
  7. (
  8. cd "$topdir/build/luadoc/"
  9. find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
  10. xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$1"
  11. )