Commit f980fd91 authored by Jan Schmidt's avatar Jan Schmidt

Revert "gst-autogen.sh: Handle multiword arguments better"

This reverts commit b18d8206.

Causes problems for distros with /bin/sh = dash
parent b18d8206
......@@ -49,7 +49,7 @@ elif test "x$package" = "xgst-plugins-bad"; then
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-player-tests"
fi
autogen_options "$@"
autogen_options $@
printf "+ check for build tools"
if test -z "$NOCHECK"; then
......
......@@ -6,11 +6,7 @@ if [ -f "autoregen.sh" ]; then
rm autoregen.sh
fi
echo "#!/bin/sh" > autoregen.sh
echo -n "./autogen.sh " >> autoregen.sh
for v in "$@"; do
echo -n "\"$v\" " >> autoregen.sh
done
echo "\$@" >> autoregen.sh
echo "./autogen.sh $@ \$@" >> autoregen.sh
chmod +x autoregen.sh
# helper functions for autogen.sh
......@@ -81,13 +77,13 @@ autogen_options ()
--) shift ; break ;;
*)
echo "+ passing argument $1 to configure"
CONFIGURE_EXT_OPT=("$CONFIGURE_EXT_OPT" "$1")
CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $1"
shift
;;
esac
done
for arg do CONFIGURE_EXT_OPT=("$CONFIGURE_EXT_OPT" "$arg"); done
for arg do CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $arg"; done
if test ! -z "$CONFIGURE_EXT_OPT"
then
echo "+ options passed to configure: $CONFIGURE_EXT_OPT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment