diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-19 00:37:57 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-19 00:37:57 +0100 |
commit | db287e1579a46cdc8d8d6e1ef10455d2b1f10f22 (patch) | |
tree | 818b93556ba68db136962d00b622dc76b6d68327 /scripts/tsort | |
parent | aa4ab58940fe84dfd79b230407b0eac2fd10a80b (diff) | |
parent | 27d6b2fd1084efa18e71e42441f04a83319317b9 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts/tsort')
-rwxr-xr-x | scripts/tsort | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/tsort b/scripts/tsort new file mode 100755 index 000000000..45bd2bc24 --- /dev/null +++ b/scripts/tsort @@ -0,0 +1,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 + |