Using bash is problematic on non-linux plattforms, Matthias use NetBSD.

Original commit message from CVS:
moving GStreamer from Bash to sh. Patch from Matthias Friedrich <matt@mafr.de>
Using bash is problematic on non-linux plattforms, Matthias use NetBSD.

Matthias message:
I appended the promised fix to autogen.sh and friends. That way, only
plain /bin/sh is needed as it is present on all Unices.

The problems were non-portable pushd/popd functions and the usage of a
'==' comparison which is non-standard in test(1). The standard is '=',
although C programmers never believe it.
This commit is contained in:
Matthias Friedrich 2003-04-13 13:38:35 +00:00 committed by Christian Schaller
parent f4f0a51890
commit d5ec52c3dd

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
DIE=0
@ -71,13 +71,14 @@ tool_run "$automake" "-a -c"
echo
echo "+ running autogen.sh --noconfigure $@ in libs/ext/cothreads..."
pushd libs/ext/cothreads > /dev/null
OLDDIR=`pwd`
cd libs/ext/cothreads
echo
./autogen.sh --noconfigure $@ || {
echo "autogen in cothreads failed."
exit 1
}
popd > /dev/null
cd "$OLDDIR"
echo
test -n "$NOCONFIGURE" && {