File otp_src_19.0-erts-etc-unix.patch of Package erlang

diff -Ndurp otp_src_19.0/erts/etc/unix/erl.src.src otp_src_19.0-erts-etc-unix/erts/etc/unix/erl.src.src
--- otp_src_19.0/erts/etc/unix/erl.src.src	2016-06-21 16:12:42.000000000 +0300
+++ otp_src_19.0-erts-etc-unix/erts/etc/unix/erl.src.src	2016-06-23 13:05:23.828791204 +0300
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
 # %CopyrightBegin%
-# 
+#
 # Copyright Ericsson AB 1996-2016. 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 -Ndurp otp_src_19.0/erts/etc/unix/start.src otp_src_19.0-erts-etc-unix/erts/etc/unix/start.src
--- otp_src_19.0/erts/etc/unix/start.src	2016-06-21 16:12:42.000000000 +0300
+++ otp_src_19.0-erts-etc-unix/erts/etc/unix/start.src	2016-06-23 13:08:13.412513461 +0300
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
 # %CopyrightBegin%
-# 
+#
 # Copyright Ericsson AB 1996-2016. 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}"