3 echo "Usage: $0 VAR [PATH, ...]" >&2
14 export $var="$paths";;
16 export $var="${paths[0]}"
18 for path in "${paths[@]:1}"; do
19 local val=$(eval echo \$$var)
20 export $var="$val:$path"
26 # THINKME: Special case for PATH: we prepend "$prefix/bin"
28 PATH="$prefix/bin:$PATH";;
30 # THINKME: Special case for PKG_CONFIG_PATH: we prepend
31 # "$prefix/lib/pkgconfig" to it.
32 PKG_CONFIG_PATH="$prefix/lib/pkgconfig";;