From a619c16fa72c3c15a198b452e512a08f18251930 Mon Sep 17 00:00:00 2001 From: wbx Date: Tue, 9 Feb 2010 00:17:46 +0100 Subject: add support for netbsd. just minor fixes needed. --- scripts/cpio | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts/cpio') diff --git a/scripts/cpio b/scripts/cpio index 2a12d4ffe..85c12ed18 100755 --- a/scripts/cpio +++ b/scripts/cpio @@ -2,4 +2,14 @@ # This file is part of the OpenADK project. OpenADK is copyrighted # material, please see the LICENCE file in the top-level directory. -/bin/cpio --quiet "$@" +os=$(uname) +case $os in + NetBSD|MirBSD) + quiet="" + ;; + *) + quiet="--quiet" + ;; +esac + +/bin/cpio $quiet "$@" -- cgit v1.2.3 From 91e7244abc54001dc7b1063cd1b9818d46128bba Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 9 Feb 2010 00:25:56 +0100 Subject: freebsd cpio is in /usr/bin --- scripts/cpio | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/cpio') diff --git a/scripts/cpio b/scripts/cpio index 2a12d4ffe..fc671ca48 100755 --- a/scripts/cpio +++ b/scripts/cpio @@ -2,4 +2,8 @@ # This file is part of the OpenADK project. OpenADK is copyrighted # material, please see the LICENCE file in the top-level directory. -/bin/cpio --quiet "$@" +if [ -x /usr/bin/cpio ];then + /usr/bin/cpio --quiet "$@" +else + /bin/cpio --quiet "$@" +fi -- cgit v1.2.3