~ubuntu-branches/ubuntu/trusty/bash/trusty-security

« back to all changes in this revision

Viewing changes to support/xenix-link.sh

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-03-03 22:52:05 UTC
  • mfrom: (1.3.5) (2.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140303225205-87ltrt5kspeq0g1b
Tags: 4.3-1ubuntu1
* Merge with Debian; remaining changes:
  - skel.bashrc:
    - Run lesspipe.
    - Enable ls aliases.
    - Set options in ll alias to -alF.
    - Define an alert alias.
    - Enabled colored grep aliases.
  - etc.bash.bashrc:
    - Add sudo hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
:
 
2
# link bash for Xenix under SCO Unix
 
3
#
 
4
# For xenix 2.2:
 
5
#       CC="cc -xenix -lx" ./configure
 
6
#       edit config.h:
 
7
#               comment out the define for HAVE_DIRENT_H
 
8
#               enable the define for HAVE_SYS_NDIR_H to 1
 
9
#       make
 
10
#       CC="cc -xenix -lx" ./link.sh
 
11
#
 
12
# For xenix 2.3:
 
13
#       CC="cc -x2.3" ./configure
 
14
#       make
 
15
#       CC="cc -x2.3" ./link.sh
 
16
 
 
17
# Copyright (C) 1989-2002 Free Software Foundation, Inc.
 
18
#
 
19
#   This program is free software: you can redistribute it and/or modify
 
20
#   it under the terms of the GNU General Public License as published by
 
21
#   the Free Software Foundation, either version 3 of the License, or
 
22
#   (at your option) any later version.
 
23
#
 
24
#   This program is distributed in the hope that it will be useful,
 
25
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
26
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
27
#   GNU General Public License for more details.
 
28
#
 
29
#   You should have received a copy of the GNU General Public License
 
30
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
31
#
 
32
 
 
33
set -x
 
34
 
 
35
rm -f bash
 
36
 
 
37
if [ -z "$CC" ]
 
38
then
 
39
        if [ -f /unix ] && [ ! -f /xenix ]
 
40
        then
 
41
                CC="cc -xenix"
 
42
        else
 
43
                CC=gcc
 
44
        fi
 
45
fi
 
46
 
 
47
try_dir=no
 
48
try_23=no
 
49
try_x=yes
 
50
 
 
51
case "$CC" in
 
52
*-ldir*) try_dir=yes ;;
 
53
esac
 
54
 
 
55
case "$CC" in
 
56
*-lx*) try_23=no ; try_x=yes ;;
 
57
esac
 
58
 
 
59
case "$CC" in
 
60
*-x2.3*|*-l2.3*) try_23=yes ; try_dir=yes ;;
 
61
esac
 
62
 
 
63
libs=
 
64
try="socket"
 
65
if [ $try_dir = yes ] ; then try="$try dir" ; fi
 
66
if [ $try_23 = yes ] ; then try="$try 2.3" ; fi
 
67
if [ $try_x = yes ] ; then try="$try x" ; fi
 
68
for name in $try
 
69
do
 
70
        if [ -r "/lib/386/Slib${name}.a" ] ; then libs="$libs -l$name" ; fi
 
71
done
 
72
 
 
73
$CC -o bash shell.o eval.o y.tab.o \
 
74
general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o \
 
75
copy_cmd.o error.o expr.o flags.o nojobs.o subst.o hashcmd.o hashlib.o \
 
76
mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o \
 
77
version.o alias.o array.o braces.o bracecomp.o bashhist.o bashline.o \
 
78
getcwd.o siglist.o vprint.o oslib.o list.o stringlib.o locale.o \
 
79
xmalloc.o builtins/libbuiltins.a \
 
80
lib/readline/libreadline.a lib/readline/libhistory.a \
 
81
-ltermcap lib/glob/libglob.a lib/tilde/libtilde.a lib/malloc/libmalloc.a \
 
82
$libs
 
83
 
 
84
ls -l bash