summaryrefslogtreecommitdiff
path: root/scripts/tsort
blob: d4b176f6f24a41ae054d1de24a1114117bd6ea7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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)
		/usr/bin/tsort -r
		;;
	*)
		/usr/bin/tsort | tac
		;;
esac