summaryrefslogtreecommitdiff
path: root/scripts/tsort
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
commit5042ac8e5927d0089d3902b1c37e5bcc1565d053 (patch)
treecd2be3085808c5ac59dd70f9c610c6a40bfe3ffd /scripts/tsort
parent401dabf66529cfb5ab47b4c78d5e25fd493eef1f (diff)
parent4d569ed1a3305c7b7abe8fa4273cea3b559cc85a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: BUGS package/autoconf/Makefile
Diffstat (limited to 'scripts/tsort')
-rwxr-xr-xscripts/tsort13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/tsort b/scripts/tsort
new file mode 100755
index 000000000..d4b176f6f
--- /dev/null
+++ b/scripts/tsort
@@ -0,0 +1,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