gecko-dev/security/nss/cmd/shlibsign/sign.sh
wtc%netscape.com ff1e1c8393 Bug 198543: checked in the patch from Chris Seawood to fix BeOS bustage.
Apparently it is necessary to have LIBRARY_PATH set in the environment.
2003-03-22 02:59:26 +00:00

29 lines
723 B
Bash

#!/bin/sh
if [ ${3} = "YES" ]; then
if echo "${PATH}" | grep -c \; >/dev/null; then
PATH=${PATH}\;${1}/bin\;${1}/lib
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
PATH=${PATH}:${ARG1}/bin:${ARG1}/lib
fi
export PATH
else
LIBPATH=${1}/lib
export LIBPATH
SHLIB_PATH=${1}/lib
export SHLIB_PATH
LD_LIBRARY_PATH=${1}/lib
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=${1}/lib
export DYLD_LIBRARY_PATH
LIBRARY_PATH=${1}/lib:$LIBRARY_PATH
export LIBRARY_PATH
fi
echo ${2}/shlibsign -v -i ${4}
${2}/shlibsign -v -i ${4}