Changeset 1fb282c6adb52ffca47ed766233cac12d6a85ff4

Show
Ignore:
Timestamp:
01/07/03 18:34:22 (5 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1057077262 +0000
git-parent:

[e2d69c725e4f1f869a60288364f42b14cb7c3fe0]

git-author:
Sam Hocevar <sam@videolan.org> 1057077262 +0000
Message:
  • 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.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vlc-config.in.in

    r2e743e0 r1fb282c  
    244244      register_targets "${module}" 
    245245    done 
    246     echo "${list}" | sed -e 's/[^ ][^ ]*/&_plugin/g' 
     246    for target in `echo ${list}`; do printf "${target}_plugin "; done 
     247    printf '\n' 
    247248  fi 
    248249  if test "${echo_builtin}"; then 
     
    251252    done 
    252253    if test "${echo_pic}"; then 
    253       echo "${list}" | sed -e 's/[^ ][^ ]*/&_pic.a/g' 
     254      for target in `echo ${list}`; do printf "${target}_pic.a "; done 
    254255    else 
    255       echo "${list}" | sed -e 's/[^ ][^ ]*/&.a/g' 
     256      for target in `echo ${list}`; do printf "${target}.a "; done 
    256257    fi 
     258    printf '\n' 
    257259  fi 
    258260  exit 0 
     
    284286    done 
    285287    if test "${echo_pic}"; then 
    286       libs="`echo "${list}" | sed -e 's/[^ ][^ ]*/&_pic.a/g'` ${libs}" 
     288      for target in `echo ${list}`; do printf "${target}_pic.a "; done 
    287289    else 
    288       libs="`echo "${list}" | sed -e 's/[^ ][^ ]*/&.a/g'` ${libs}" 
     290      for target in `echo ${list}`; do printf "${target}.a "; done 
    289291    fi 
     292    printf '\n' 
    290293  fi 
    291294  echo "${libs} ${ldflags}"