blob: c37986301710b88d6d0eab5b179eba534b512e3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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)"
|