diff options
author | rillig <rillig@pkgsrc.org> | 2006-10-11 19:15:19 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-10-11 19:15:19 +0000 |
commit | 5ade40731fc990240069b33798fe2688af094fff (patch) | |
tree | e44289759b37c53a521c5a42a3d72d8980a80016 /net/net-snmp/patches/patch-et | |
parent | 00f10af6660a59795fccc8799274b160f4134cff (diff) | |
download | pkgsrc-5ade40731fc990240069b33798fe2688af094fff.tar.gz |
Fixed "test ==".
Diffstat (limited to 'net/net-snmp/patches/patch-et')
-rw-r--r-- | net/net-snmp/patches/patch-et | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net/net-snmp/patches/patch-et b/net/net-snmp/patches/patch-et new file mode 100644 index 00000000000..c3798630171 --- /dev/null +++ b/net/net-snmp/patches/patch-et @@ -0,0 +1,43 @@ +$NetBSD: patch-et,v 1.1 2006/10/11 19:15:19 rillig Exp $ + +Removed bashisms. + +--- local/mib2c-update.orig 2005-09-27 18:01:36.000000000 +0200 ++++ local/mib2c-update 2006-10-11 21:13:41.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # + # $Id: patch-et,v 1.1 2006/10/11 19:15:19 rillig Exp $ + # +@@ -96,7 +96,7 @@ check_setup() + # rc=0 + # fi + +- if [[ $rc -eq 0 && $UPDATE_NOPROBE -ne 1 ]]; then ++ if [ $rc -eq 0 ] && [ $UPDATE_NOPROBE -ne 1 ]; then + mib2c -c unknown > /dev/null 2>&1 + if [ $? -eq 0 ]; then + error "WARNING: mib2c returns 0 on error conditions!" +@@ -131,7 +131,7 @@ do_diff() + diff -U $FUZZ -p -b -w --show-c-function \ + -I "$""Id:" $f $DD_CURR/$f >> $DD_OUTPUT + rc=$? +- (( rcs = $rcs + $rc )) ++ rcs=`expr $rcs + $rc` + if [ $rc -eq 1 ]; then + echo " $f is different" + fi +@@ -330,10 +330,10 @@ if [ -f .M2C-UPDATE-MERGE-FAILED ]; then + echo "[q)uit]" + echo "(c|r|q) ?" + read ans +- if [ "x$ans" == "xr" ]; then ++ if [ "x$ans" = "xr" ]; then + rm .M2C-UPDATE-MERGE-FAILED + break +- elif [ "x$ans" == "xc" ]; then ++ elif [ "x$ans" = "xc" ]; then + echo "Have you have manually merged all the" + echo "changes into the merged directory?" + echo "(y|n)" |