summaryrefslogtreecommitdiff
path: root/lang/erlang/patches/patch-ai
blob: d719b10b13c6b467a0efeab17b56a8815cb46dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
$NetBSD: patch-ai,v 1.1 2009/02/07 21:45:43 joerg Exp $

DESTDIR support

--- erts/etc/unix/Install.src.orig	2009-02-07 22:21:21.000000000 +0100
+++ erts/etc/unix/Install.src
@@ -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
@@ -87,7 +88,7 @@ if [ -h epmd ]; then
   /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 .
@@ -97,7 +98,7 @@ chmod 755 start_erl
 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
@@ -136,16 +137,3 @@ if [ "X$TARGET" != "Xsunos5" -a -d $ERL_
 	(ranlib $library) > /dev/null 2>&1
     done
 fi
-
-
-#
-# Fixing the man pages
-#
-
-if [ -d $ERL_ROOT/man ]
-then
-    cd $ERL_ROOT
-    ./misc/format_man_pages $ERL_ROOT
-fi
-
-