2007-03-29 13:18:57 -04:00
|
|
|
$OpenBSD: patch-erts_etc_unix_Install_src,v 1.4 2007/03/29 17:18:57 steven Exp $
|
|
|
|
--- erts/etc/unix/Install.src.orig Tue Mar 27 15:27:48 2007
|
|
|
|
+++ erts/etc/unix/Install.src Thu Mar 29 17:56:01 2007
|
2006-03-07 14:30:36 -05:00
|
|
|
@@ -8,7 +8,8 @@ while [ $# -ne 0 ]; do
|
|
|
|
case $1 in
|
|
|
|
-minimal) start_option=minimal ;;
|
|
|
|
-sasl) start_option=sasl ;;
|
|
|
|
- *) ERL_ROOT=$1 ;;
|
|
|
|
+ *) ERL_ROOT=$DESTDIR/$1;
|
|
|
|
+ ERL_IROOT=$1 ;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
@@ -35,7 +36,7 @@ fi
|
|
|
|
if [ -d $ERL_ROOT/erts-%I_VSN%/obj ]
|
|
|
|
then
|
|
|
|
cd $ERL_ROOT/erts-%I_VSN%/obj
|
|
|
|
- sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" Makefile.src > Makefile
|
|
|
|
+ sed -e "s;%FINAL_ROOTDIR%;$ERL_IROOT;" Makefile.src > Makefile
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d $ERL_ROOT/bin ]
|
|
|
|
@@ -59,14 +60,14 @@ esac
|
|
|
|
|
|
|
|
cd $ERL_ROOT/erts-%I_VSN%/bin
|
|
|
|
|
|
|
|
-sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" erl.src > erl
|
|
|
|
+sed -e "s;%FINAL_ROOTDIR%;$ERL_IROOT;" erl.src > erl
|
|
|
|
chmod 755 erl
|
|
|
|
|
|
|
|
#
|
|
|
|
# Create start file for embedded system use,
|
|
|
|
#
|
|
|
|
(cd $ERL_ROOT/erts-%I_VSN%/bin;
|
|
|
|
- sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" start.src > start;
|
|
|
|
+ sed -e "s;%FINAL_ROOTDIR%;$ERL_IROOT;" start.src > start;
|
|
|
|
chmod 755 start)
|
|
|
|
|
|
|
|
cd $ERL_ROOT/bin
|
2007-03-29 13:18:57 -04:00
|
|
|
@@ -87,7 +88,7 @@ if [ -h epmd ]; then
|
2006-03-07 14:30:36 -05:00
|
|
|
/bin/rm -f epmd
|
|
|
|
fi
|
|
|
|
|
|
|
|
-ln -s $ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
|
|
|
|
+ln -s ../erts-%I_VSN%/bin/epmd epmd
|
|
|
|
|
|
|
|
cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
|
|
|
|
cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .
|
2007-03-29 13:18:57 -04:00
|
|
|
@@ -97,7 +98,7 @@ chmod 755 start_erl
|
2006-03-07 14:30:36 -05:00
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo %I_VSN% %I_SYSTEM_VSN% > $ERL_ROOT/releases/start_erl.data
|
|
|
|
-sed -e "s;%ERL_ROOT%;$ERL_ROOT;" $ERL_ROOT/releases/RELEASES.src > $ERL_ROOT/releases/RELEASES
|
|
|
|
+sed -e "s;%ERL_ROOT%;$ERL_IROOT;" $ERL_ROOT/releases/RELEASES.src > $ERL_ROOT/releases/RELEASES
|
|
|
|
|
|
|
|
if [ "$start_option" = "query" ]
|
|
|
|
then
|
2007-03-29 13:18:57 -04:00
|
|
|
@@ -136,16 +137,4 @@ if [ "X$TARGET" != "Xsunos5" -a -d $ERL_ROOT/usr/lib ]
|
2006-04-02 12:52:03 -04:00
|
|
|
(ranlib $library) > /dev/null 2>&1
|
|
|
|
done
|
2006-03-07 14:30:36 -05:00
|
|
|
fi
|
2006-04-02 12:52:03 -04:00
|
|
|
-
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# Fixing the man pages
|
|
|
|
-#
|
|
|
|
-
|
|
|
|
-if [ -d $ERL_ROOT/man ]
|
|
|
|
-then
|
|
|
|
- cd $ERL_ROOT
|
|
|
|
- ./misc/format_man_pages $ERL_ROOT
|
|
|
|
-fi
|
|
|
|
-
|
2006-03-07 14:30:36 -05:00
|
|
|
|