|
Lines 150-155
Link Here
|
| 150 |
local env_file="${D}${JAVA_VM_CONFIG_DIR}/${VMHANDLE}" |
150 |
local env_file="${D}${JAVA_VM_CONFIG_DIR}/${VMHANDLE}" |
| 151 |
local old_env_file="${D}/etc/env.d/java/20${P}" |
151 |
local old_env_file="${D}/etc/env.d/java/20${P}" |
| 152 |
local source_env_file="${FILESDIR}/${VMHANDLE}.env" |
152 |
local source_env_file="${FILESDIR}/${VMHANDLE}.env" |
|
|
153 |
local libdir="$(get_libdir)" |
| 153 |
|
154 |
|
| 154 |
if [[ ! -f ${source_env_file} ]]; then |
155 |
if [[ ! -f ${source_env_file} ]]; then |
| 155 |
die "Unable to find the env file: ${source_env_file}" |
156 |
die "Unable to find the env file: ${source_env_file}" |
|
Lines 162-167
Link Here
|
| 162 |
-e "s/@PV@/${PV}/g" \ |
163 |
-e "s/@PV@/${PV}/g" \ |
| 163 |
-e "s/@PF@/${PF}/g" \ |
164 |
-e "s/@PF@/${PF}/g" \ |
| 164 |
-e "s/@PLATFORM@/${platform}/g" \ |
165 |
-e "s/@PLATFORM@/${platform}/g" \ |
|
|
166 |
-e "s/@LIBDIR@/${libdir}/g" \ |
| 165 |
-e "/^LDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|" \ |
167 |
-e "/^LDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|" \ |
| 166 |
< ${source_env_file} \ |
168 |
< ${source_env_file} \ |
| 167 |
> ${env_file} || die "sed failed" |
169 |
> ${env_file} || die "sed failed" |