Commit 1fb282c6 authored by Sam Hocevar's avatar Sam Hocevar

* vlc-config.in.in: Used printf instead of a sed construct, just in case

    we reach 200 plugins one day, because Solaris (did I mention it sucked?)
    has a crap sed.
parent e2d69c72
...@@ -243,17 +243,19 @@ if test "${echo_target}" = yes; then ...@@ -243,17 +243,19 @@ if test "${echo_target}" = yes; then
for module in `echo "${plugins}"`; do for module in `echo "${plugins}"`; do
register_targets "${module}" register_targets "${module}"
done done
echo "${list}" | sed -e 's/[^ ][^ ]*/&_plugin/g' for target in `echo ${list}`; do printf "${target}_plugin "; done
printf '\n'
fi fi
if test "${echo_builtin}"; then if test "${echo_builtin}"; then
for module in `echo "${builtins}"`; do for module in `echo "${builtins}"`; do
register_targets "${module}" register_targets "${module}"
done done
if test "${echo_pic}"; then if test "${echo_pic}"; then
echo "${list}" | sed -e 's/[^ ][^ ]*/&_pic.a/g' for target in `echo ${list}`; do printf "${target}_pic.a "; done
else else
echo "${list}" | sed -e 's/[^ ][^ ]*/&.a/g' for target in `echo ${list}`; do printf "${target}.a "; done
fi fi
printf '\n'
fi fi
exit 0 exit 0
fi fi
...@@ -283,10 +285,11 @@ if test "${echo_libs}" = yes; then ...@@ -283,10 +285,11 @@ if test "${echo_libs}" = yes; then
register_flags "${module}" register_flags "${module}"
done done
if test "${echo_pic}"; then if test "${echo_pic}"; then
libs="`echo "${list}" | sed -e 's/[^ ][^ ]*/&_pic.a/g'` ${libs}" for target in `echo ${list}`; do printf "${target}_pic.a "; done
else else
libs="`echo "${list}" | sed -e 's/[^ ][^ ]*/&.a/g'` ${libs}" for target in `echo ${list}`; do printf "${target}.a "; done
fi fi
printf '\n'
fi fi
echo "${libs} ${ldflags}" echo "${libs} ${ldflags}"
fi fi
......
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