openbsd-ports/lang/mono/patches/patch-mono_arch_arm_dpiops_sh
robert d3f436429f - update to the latest stable version: 2.6.3
- move to autoconf
- regen patches

ok ajacoutot@, jasper@
2010-03-20 17:16:44 +00:00

19 lines
468 B
Plaintext

$OpenBSD: patch-mono_arch_arm_dpiops_sh,v 1.2 2010/03/20 17:16:44 robert Exp $
--- mono/arch/arm/dpiops.sh.orig Fri Sep 25 16:58:13 2009
+++ mono/arch/arm/dpiops.sh Sat Mar 20 11:03:12 2010
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
OPCODES="AND EOR SUB RSB ADD ADC SBC RSC ORR BIC"
CMP_OPCODES="TST TEQ CMP CMN"
@@ -6,7 +6,7 @@ MOV_OPCODES="MOV MVN"
# $1: opcode list
# $2: template
-function gen() {
+gen() {
for i in $1; do
sed "s/<Op>/$i/g" $2.th
done