- Timestamp:
- Feb 21, 2006, 12:25:40 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- d285e92
- Parents:
- bffaa02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/funcs/multiarch-funcs.sh
rbffaa02 rcf3ebf7a 51 51 sed -e "s@lib[36][124]@lib@g" -e "s@lib@${libdirname}@g" ` 52 52 53 # JAVA handling ... see java-setup.sh 54 #------------------------------------ 55 # TODO: This needs to be done a WHOLE lot better... 56 TMP_JAVA_HOME="${JAVA_INSTALLDIR}/jdk${JAVA_VER}" 57 if [ "${MULTIARCH}" = "Y" ]; then 58 TMP_JAVA_HOME="${TMP_JAVA_HOME}-${BUILDENV}" 59 fi 60 if [ -d "${TMP_JAVA_HOME}" ]; then 61 export JAVA_HOME="${TMP_JAVA_HOME}" 62 63 # Alter PATH 64 echo "${PATH}" | grep "${JAVA_INSTALLDIR}/jdk${JAVA_VER}" \ 65 > /dev/null 2>&1 && 66 { 67 PATH=`echo "${PATH}" | sed -e "s@${JAVA_INSTALLDIR}/jdk${JAVA_VER}\(\|-[36][124]\)@${JAVA_HOME}@g" ` 68 } || { 69 PATH="${PATH}:${JAVA_HOME}/bin" 70 } 71 fi 72 53 73 } 54 74 … … 197 217 198 218 use_wrapper() { 219 set -x 199 220 # Use full path 200 221 wrapper=/usr/bin/multilib_wrapper … … 218 239 fi 219 240 241 if [ -L ${file} ]; then 242 # eek, old wrapper symlink wasn't replaced... 243 echo "use_wrapper: error, ${file} is a symlink" 1>&2 244 return 1 245 fi 246 247 220 248 # do the work 221 249 mv ${file} ${file}-${BUILDENV} && 222 ln -sf ${wrapper} ${file} &&250 ln -sfnv ${wrapper} ${file} && 223 251 echo " - ${file}" || { 224 252 echo "use_wrapper: error creating ${file}" 1>&2 … … 227 255 228 256 done 257 set +x 229 258 } 230 259
Note:
See TracChangeset
for help on using the changeset viewer.