From 1fb282c6adb52ffca47ed766233cac12d6a85ff4 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 1 Jul 2003 16:34:22 +0000 Subject: [PATCH] * 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. --- vlc-config.in.in | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vlc-config.in.in b/vlc-config.in.in index 8bc6442f84..4a9c3b3c3a 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -243,17 +243,19 @@ if test "${echo_target}" = yes; then for module in `echo "${plugins}"`; do register_targets "${module}" done - echo "${list}" | sed -e 's/[^ ][^ ]*/&_plugin/g' + for target in `echo ${list}`; do printf "${target}_plugin "; done + printf '\n' fi if test "${echo_builtin}"; then for module in `echo "${builtins}"`; do register_targets "${module}" done 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 - echo "${list}" | sed -e 's/[^ ][^ ]*/&.a/g' + for target in `echo ${list}`; do printf "${target}.a "; done fi + printf '\n' fi exit 0 fi @@ -283,10 +285,11 @@ if test "${echo_libs}" = yes; then register_flags "${module}" done 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 - libs="`echo "${list}" | sed -e 's/[^ ][^ ]*/&.a/g'` ${libs}" + for target in `echo ${list}`; do printf "${target}.a "; done fi + printf '\n' fi echo "${libs} ${ldflags}" fi -- 2.39.5