2008-06-06 05:40:11 -07:00
|
|
|
#!/bin/sh
|
|
|
|
case "${3}" in
|
|
|
|
WIN*)
|
|
|
|
if echo "${PATH}" | grep -c \; >/dev/null; then
|
|
|
|
PATH=${1}/lib\;${1}/bin\;${4}\;${PATH}
|
|
|
|
else
|
|
|
|
# ARG1 is ${1} with the drive letter escaped.
|
|
|
|
if echo "${1}" | grep -c : >/dev/null; then
|
|
|
|
ARG1=`(cd ${1}; pwd)`
|
|
|
|
else
|
|
|
|
ARG1=${1}
|
|
|
|
fi
|
|
|
|
if echo "${4}" | grep -c : >/dev/null; then
|
|
|
|
ARG4=`(cd ${4}; pwd)`
|
|
|
|
else
|
|
|
|
ARG4=${4}
|
|
|
|
fi
|
|
|
|
PATH=${ARG1}/lib:${ARG1}/bin:${ARG4}:${PATH}
|
|
|
|
fi
|
|
|
|
export PATH
|
2010-02-07 03:54:28 -08:00
|
|
|
echo "${2}"/shlibsign -v -i "${5}"
|
|
|
|
"${2}"/shlibsign -v -i "${5}"
|
2008-06-06 05:40:11 -07:00
|
|
|
;;
|
|
|
|
*)
|
2010-02-07 03:54:28 -08:00
|
|
|
LIBPATH=`(cd "${1}"/lib; pwd)`:`(cd "${4}"; pwd)`:$LIBPATH
|
2008-06-06 05:40:11 -07:00
|
|
|
export LIBPATH
|
|
|
|
SHLIB_PATH=${1}/lib:${4}:$SHLIB_PATH
|
|
|
|
export SHLIB_PATH
|
|
|
|
LD_LIBRARY_PATH=${1}/lib:${4}:$LD_LIBRARY_PATH
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
DYLD_LIBRARY_PATH=${1}/lib:${4}:$DYLD_LIBRARY_PATH
|
|
|
|
export DYLD_LIBRARY_PATH
|
|
|
|
LIBRARY_PATH=${1}/lib:${4}:$LIBRARY_PATH
|
|
|
|
export LIBRARY_PATH
|
|
|
|
ADDON_PATH=${1}/lib:${4}:$ADDON_PATH
|
|
|
|
export ADDON_PATH
|
2010-02-07 03:54:28 -08:00
|
|
|
echo "${2}"/shlibsign -v -i "${5}"
|
|
|
|
"${2}"/shlibsign -v -i "${5}"
|
2008-06-06 05:40:11 -07:00
|
|
|
;;
|
|
|
|
esac
|