From: Jan-Benedict G. <jb...@us...> - 2007-07-07 17:16:58
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv17201 Modified Files: _Patch Log Message: * Fix braino. Index: _Patch =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/_Patch,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- _Patch 30 Dec 2005 21:15:32 -0000 1.2 +++ _Patch 7 Jul 2007 17:16:53 -0000 1.3 @@ -1,7 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh -case "`uname -s`" in - Linux) exec patch "$@";; - *) exec gpatch "$@";; -esac +command -v gpatch > /dev/null 2>&1 && exec gpatch "$@" +command -v patch > /dev/null 2>&1 && exec patch "$@" +exit 1 |