~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to erts/etc/unix/Install.src

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
3
# %CopyrightBegin%
4
 
5
 
# Copyright Ericsson AB 1996-2009. All Rights Reserved.
6
 
 
4
#
 
5
# Copyright Ericsson AB 1996-2010. All Rights Reserved.
 
6
#
7
7
# The contents of this file are subject to the Erlang Public License,
8
8
# Version 1.1, (the "License"); you may not use this file except in
9
9
# compliance with the License. You should have received a copy of the
10
10
# Erlang Public License along with this software. If not, it can be
11
11
# retrieved online at http://www.erlang.org/.
12
 
 
12
#
13
13
# Software distributed under the License is distributed on an "AS IS"
14
14
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15
15
# the License for the specific language governing rights and limitations
16
16
# under the License.
17
 
 
17
#
18
18
# %CopyrightEnd%
19
19
#
20
 
#  Patch $ERL_ROOT/emulator/obj/Makefile.dist & make
21
 
#
22
 
#
 
20
usage="
 
21
Usage:
 
22
  Install [-cross] [-minimal|-sasl] <ERL_ROOT>
 
23
"
23
24
start_option=query
24
25
unset cross
25
26
while [ $# -ne 0 ]; do
42
43
 
43
44
if [ -z "$ERL_ROOT" -o ! -d "$ERL_ROOT" ]
44
45
then
45
 
    echo "Install: need ERL_ROOT directory as argument"
 
46
    echo "Install: need <ERL_ROOT> directory as argument" >&2
 
47
    echo $usage >&2
46
48
    exit 1
47
49
fi
48
50
 
50
52
    :/*)
51
53
       ;;
52
54
    *)
53
 
       echo "Install: need an absolute path to ERL_ROOT"
 
55
       echo "Install: need an absolute path to <ERL_ROOT>" >&2
 
56
       echo $usage >&2
54
57
       exit 1
55
58
       ;;
56
59
esac
57
60
 
58
61
if [ ! -d "$ERL_ROOT/erts-%I_VSN%/bin" ]
59
62
then
60
 
    echo "Install: The directory $ERL_ROOT/erts-%I_VSN%/bin does not exist"
61
 
    echo "         Bad location or erts module not un-tared"
 
63
    echo "Install: The directory $ERL_ROOT/erts-%I_VSN%/bin does not exist" >&2
 
64
    echo "         Bad location or erts module not un-tared" >&2
 
65
    echo $usage >&2
62
66
    exit 1
63
67
fi
64
68
 
67
71
    mkdir $ERL_ROOT/bin
68
72
fi
69
73
 
70
 
#
71
 
# Fetch target system.
72
 
#
73
 
SYS=`(uname -s) 2>/dev/null` || SYS=unknown
74
 
REL=`(uname -r) 2>/dev/null` || REL=unknown
75
 
case $SYS:$REL in
76
 
                SunOS:5.*)
77
 
                        TARGET=sunos5 ;;
78
 
                Linux:*)
79
 
                        TARGET=linux ;;
80
 
                *)
81
 
                        TARGET="" ;;
82
 
esac
83
 
 
84
74
cd $ERL_ROOT/erts-%I_VSN%/bin
85
75
 
86
76
sed -e "s;%FINAL_ROOTDIR%;$TARGET_ERL_ROOT;" erl.src > erl
99
89
cp -p $ERL_ROOT/erts-%I_VSN%/bin/erlc .
100
90
cp -p $ERL_ROOT/erts-%I_VSN%/bin/dialyzer .
101
91
cp -p $ERL_ROOT/erts-%I_VSN%/bin/typer .
 
92
cp -p $ERL_ROOT/erts-%I_VSN%/bin/ct_run .
102
93
cp -p $ERL_ROOT/erts-%I_VSN%/bin/escript .
103
94
 
 
95
# Remove in R16B
 
96
ln -s ct_run run_test
 
97
 
104
98
#
105
99
# Set a soft link to epmd
106
100
# This should not be done for an embedded system!
111
105
  /bin/rm -f epmd
112
106
fi
113
107
 
114
 
ln -s $TARGET_ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
 
108
ln -s ../erts-%I_VSN%/bin/epmd epmd
115
109
 
116
110
cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
117
111
cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .
150
144
cp -p ../releases/%I_SYSTEM_VSN%/$Name.script start.script
151
145
 
152
146
#
153
 
# We always run ranlib unless Solaris/SunOS 5
154
 
# but ignore failures.
155
 
#
156
 
if [ "X$TARGET" != "Xsunos5" -a -d $ERL_ROOT/usr/lib ]; then 
157
 
    cd $ERL_ROOT/usr/lib
158
 
    for library in lib*.a
159
 
    do
160
 
        (ranlib $library) > /dev/null 2>&1
161
 
    done
162
 
fi
163
 
 
164
 
 
165
 
#
166
147
# Fixing the man pages
167
148
#
168
149
 
172
153
    ./misc/format_man_pages $ERL_ROOT
173
154
fi
174
155
 
175
 
 
 
156
exit 0