tsort 308 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # This file is part of the OpenADK project. OpenADK is copyrighted
  3. # material, please see the LICENCE file in the top-level directory.
  4. os=$(uname)
  5. case $os in
  6. MirBSD|OpenBSD)
  7. /usr/bin/tsort -r
  8. ;;
  9. NetBSD|FreeBSD)
  10. /usr/bin/tsort | tail -r
  11. ;;
  12. *)
  13. /usr/bin/tsort | tac
  14. ;;
  15. esac