Remove bashisms and use /bin/sh instead of /bin/bash.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Remove bashisms and use /bin/sh instead of /bin/bash.
manifest hash: 25560e04ff8ac33a6d8b82d2328b4e90578bee4c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCxOEjW7P1GVgWeRoRAm9XAJ9IjlbMerPYEhKQQu7Ufcm6630cDwCfdXJ3
865XH6YVMuCYNjf3eibwQaM=
=r3gh
-----END PGP SIGNATURE-----
--- a/hgeditor
+++ b/hgeditor
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# This is an example of using HGEDITOR to automate the signing of
# commits and so on.
--- a/hgmerge
+++ b/hgmerge
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# hgmerge - default merge helper for Mercurial
#
--- a/tests/fish-merge
+++ b/tests/fish-merge
@@ -1,3 +1,5 @@
+#!/bin/sh
+
set -e
set -x
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -1,6 +1,4 @@
-#!/bin/bash
-
-set -e
+#!/bin/sh -e
export LANG=C
export LC_CTYPE="C"
@@ -47,7 +45,7 @@ function run_one
rm -f $1.err
export TZ=GMT
D=`mktemp -d`
- if [ "$D" == "" ] ; then
+ if [ "$D" = "" ] ; then
echo mktemp failed!
fi
@@ -77,7 +75,7 @@ function run_one
}
TESTS=$@
-if [ "$TESTS" == "" ] ; then
+if [ "$TESTS" = "" ] ; then
TESTS=`ls test-* | grep -Ev "\.|~"`
fi
--- a/tests/test-bad-pull
+++ b/tests/test-bad-pull
@@ -1,4 +1,4 @@
-#!/bin/bash -x
+#!/bin/sh -x
hg clone http://localhost:20059/ copy
echo $?
--- a/tests/test-basic
+++ b/tests/test-basic
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -x
mkdir t
@@ -10,4 +10,4 @@ hg commit -t "test" -u test -d "0 0"
hg history
hg manifest
hg cat a
-hg verify
\ No newline at end of file
+hg verify
--- a/tests/test-conflict
+++ b/tests/test-conflict
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -x
hg init
--- a/tests/test-copy
+++ b/tests/test-copy
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -x
hg init
--- a/tests/test-help
+++ b/tests/test-help
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -x
--- a/tests/test-pull
+++ b/tests/test-pull
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
mkdir test
cd test
--- a/tests/test-simple-update
+++ b/tests/test-simple-update
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -ex
--- a/tests/test-tags
+++ b/tests/test-tags
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -x
mkdir t
--- a/tests/test-undo
+++ b/tests/test-undo
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -x
mkdir t
--- a/tests/test-up-local-change
+++ b/tests/test-up-local-change
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
export HGMERGE=true