Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0342-Support-ROOTDIR-passed-as-an-environment-v...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0342-Support-ROOTDIR-passed-as-an-environment-variable-in.patch of Package erlang
From 28f2cc258cef3cac214e45336a39a9065490d49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?= <jerome.debretagne@gmail.com> Date: Wed, 11 Nov 2020 17:32:20 +0100 Subject: [PATCH] Support ROOTDIR passed as an environment variable in erl and start scripts --- erts/etc/unix/erl.src.src | 13 ++++++++----- erts/etc/unix/start.src | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/erts/etc/unix/erl.src.src b/erts/etc/unix/erl.src.src index 959c099e8f..b7438f615b 100644 --- a/erts/etc/unix/erl.src.src +++ b/erts/etc/unix/erl.src.src @@ -1,9 +1,9 @@ #!/bin/sh # # %CopyrightBegin% -# -# Copyright Ericsson AB 1996-2016. All Rights Reserved. -# +# +# Copyright Ericsson AB 1996-2020. All Rights Reserved. +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,10 +15,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# +# # %CopyrightEnd% # -ROOTDIR="%FINAL_ROOTDIR%" +if [ -z "$ROOTDIR" ] +then + ROOTDIR="%FINAL_ROOTDIR%" +fi BINDIR=$ROOTDIR/erts-%VSN%/bin EMU=%EMULATOR%%EMULATOR_NUMBER% PROGNAME=`echo $0 | sed 's/.*\///'` diff --git a/erts/etc/unix/start.src b/erts/etc/unix/start.src index bdd146951f..e3d1b8676a 100644 --- a/erts/etc/unix/start.src +++ b/erts/etc/unix/start.src @@ -1,9 +1,9 @@ #!/bin/sh # # %CopyrightBegin% -# -# Copyright Ericsson AB 1996-2016. All Rights Reserved. -# +# +# Copyright Ericsson AB 1996-2020. All Rights Reserved. +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,7 +15,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# +# # %CopyrightEnd% # # This program invokes the erlang emulator by calling run_erl. @@ -25,7 +25,10 @@ # # Usage: start [Data] # -ROOTDIR=%FINAL_ROOTDIR% +if [ -z "$ROOTDIR" ] +then + ROOTDIR=%FINAL_ROOTDIR% +fi if [ -z "$RELDIR" ] then -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor