From e522cbff7a7c5f3b5faa09b0e7254032ae80ae71 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 18 Feb 2010 19:05:22 +0100 Subject: on Linux use tsort and reverse with tac, On BSD use tsort -r --- scripts/tsort | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/tsort (limited to 'scripts/tsort') 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 + -- cgit v1.2.3 From 1d0c46287d508236506ee59417e8da05c0cee3e5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 19 Feb 2010 00:54:12 +0100 Subject: avoid autotools usage on host system There are to many combinations of autotools on host systems. If you need to patch the autotool buildsystem of a package always add a autotool.patch and regenerate configure on your host. That is the most portable way. --- scripts/tsort | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'scripts/tsort') diff --git a/scripts/tsort b/scripts/tsort index 45bd2bc24..d4b176f6f 100755 --- a/scripts/tsort +++ b/scripts/tsort @@ -5,13 +5,9 @@ os=$(uname) case $os in NetBSD|MirBSD|OpenBSD) - targ="-r" + /usr/bin/tsort -r ;; *) - targ="|tac" + /usr/bin/tsort | tac ;; esac -if [ -x /usr/bin/tsort ];then - /usr/bin/tsort $targ "$@" -fi - -- cgit v1.2.3