summaryrefslogtreecommitdiff
path: root/scripts/tsort
blob: 45bd2bc24c617d29d443f8f6148d198f09692c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

os=$(uname)
case $os in
	NetBSD|MirBSD|OpenBSD)
		targ="-r"
		;;
	*)
		targ="|tac"
		;;
esac
if [ -x /usr/bin/tsort ];then
        /usr/bin/tsort $targ "$@"
fi