File otp_src_18.0.2-erts-etc-unix.patch of Package erlang
diff -Ndur otp_src_18.0.2/erts/etc/unix/erl.src.src otp_src_18.0.2-erts-etc-unix/erts/etc/unix/erl.src.src
--- otp_src_18.0.2/erts/etc/unix/erl.src.src 2015-07-08 21:31:30.000000000 +0300
+++ otp_src_18.0.2-erts-etc-unix/erts/etc/unix/erl.src.src 2015-08-10 05:18:33.000000000 +0300
@@ -1,9 +1,9 @@
#!/bin/sh
#
# %CopyrightBegin%
-#
+#
# Copyright Ericsson AB 1996-2012. 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,15 +15,12 @@
# 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%"
BINDIR=$ROOTDIR/erts-%VSN%/bin
EMU=%EMULATOR%%EMULATOR_NUMBER%
-PROGNAME=`echo $0 | sed 's/.*\///'`
-export EMU
-export ROOTDIR
-export BINDIR
-export PROGNAME
+PROGNAME="${0##*/}"
+export ROOTDIR BINDIR EMU PROGNAME
exec "$BINDIR/erlexec" ${1+"$@"}
diff -Ndur otp_src_18.0.2/erts/etc/unix/start.src otp_src_18.0.2-erts-etc-unix/erts/etc/unix/start.src
--- otp_src_18.0.2/erts/etc/unix/start.src 2015-07-08 21:31:30.000000000 +0300
+++ otp_src_18.0.2-erts-etc-unix/erts/etc/unix/start.src 2015-08-10 03:42:32.000000000 +0300
@@ -1,9 +1,9 @@
#!/bin/sh
#
# %CopyrightBegin%
-#
+#
# Copyright Ericsson AB 1996-2009. 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.
@@ -26,12 +26,5 @@
# Usage: start [Data]
#
ROOTDIR=%FINAL_ROOTDIR%
-
-if [ -z "$RELDIR" ]
-then
- RELDIR=$ROOTDIR/releases
-fi
-
-START_ERL_DATA=${1:-$RELDIR/start_erl.data}
-
-$ROOTDIR/bin/run_erl -daemon /tmp/ $ROOTDIR/log "exec $ROOTDIR/bin/start_erl $ROOTDIR $RELDIR $START_ERL_DATA"
+[ -n "$RELDIR" ] || RELDIR=$ROOTDIR/releases
+$ROOTDIR/bin/run_erl -daemon /tmp/ $ROOTDIR/log "exec $ROOTDIR/bin/start_erl $ROOTDIR $RELDIR ${1:-$RELDIR/start_erl.data}"