Print this page
12471 /usr/share/terminfo compatibility symlink
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/data/terminfo/Makefile
+++ new/usr/src/data/terminfo/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright 2017 Nexenta Systems, Inc.
26 26 #
27 27
28 28 TABSETSRC= 3101 \
29 29 beehive \
30 30 hds \
31 31 hds3 \
32 32 std \
33 33 stdcrt \
34 34 teleray \
35 35 vt100 \
36 36 wyse-adds \
37 37 xerox1720
38 38 TERMCAPSRC= termcap.src
39 39 TERMINFOSRC= terminfo.src
40 40
41 41 #
42 42 # These represent the target termcap entries that we build from extra
43 43 # termcap and terminfo data. See extras/README.
44 44 #
45 45 EXTRATERM= rxvt-unicode
46 46 EXTRATC= $(EXTRATERM:%=extras/%.termcap)
47 47 EXTRATI= r/rxvt-unicode
48 48
49 49 include $(SRC)/data/Makefile.data
50 50
51 51 FILEMODE= 0644
↓ open down ↓ |
51 lines elided |
↑ open up ↑ |
52 52
53 53 ROOTTABDIR= $(ROOTSHLIB)/tabset
54 54 ROOTTERMDIR= $(ROOTSHLIB)/terminfo
55 55 DIRS= $(ROOTTERMDIR) $(ROOTTABDIR)
56 56
57 57 ROOTSYMLINK= $(ROOTETC)/termcap
58 58 RELROOTETC= ../usr/share/lib
59 59 ROOTLIBSYMLINK= $(ROOTLIB)/tabset
60 60 RELROOTLIB= ../share/lib
61 61
62 +ROOTSHSYMLINK= $(ROOTSH)/terminfo
63 +
62 64 ROOTTABSET= $(TABSETSRC:%=$(ROOTTABDIR)/%)
63 65
64 66 ROOTEXTRATI= $(EXTRATI:%=$(ROOTTERMDIR)/%)
65 67
66 68 $(ROOTTABDIR)/%: tabset/%
67 69 $(INS.file)
68 70
69 71 .KEEP_STATE:
70 72
71 73 all: $(TERMCAPSRC) $(TERMINFOSRC)
72 74
73 75 $(DIRS):
74 76 $(INS.dir)
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
75 77
76 78 $(ROOTTERMDIR)/s/sun: $(TERMINFOSRC)
77 79 TERMINFO=$(ROOTTERMDIR) $(TIC) $(TERMINFOSRC) 2>/dev/null
78 80
79 81 $(ROOTSHLIB)/termcap: $(TERMCAPSRC) $(EXTRATC)
80 82 echo $(EXTRATERM) $(EXTRATC)
81 83 $(EGREP) -hv '^(#|$$)' $(TERMCAPSRC) $(EXTRATC) > $@
82 84
83 85 install: all $(ROOTTERMDIR) $(ROOTTERMDIR)/s/sun $(ROOTTABDIR) \
84 86 $(ROOTTABSET) $(ROOTSHLIB)/termcap $(ROOTSYMLINK) \
85 - $(ROOTLIBSYMLINK) $(ROOTEXTRATI)
87 + $(ROOTLIBSYMLINK) $(ROOTEXTRATI) $(ROOTSHSYMLINK)
86 88
87 89 $(ROOTSYMLINK):
88 90 $(RM) $@; $(SYMLINK) $(RELROOTETC)/termcap $@
89 91
90 92 $(ROOTLIBSYMLINK):
91 93 $(RM) $@; $(SYMLINK) $(RELROOTLIB)/tabset $@
92 94
95 +$(ROOTSHSYMLINK):
96 + $(RM) $@; $(SYMLINK) $(RELROOTLIB)/terminfo $@
97 +
93 98 $(ROOTTERMDIR)/r/%: extras/%.terminfo
94 99 TERMINFO=$(ROOTTERMDIR) $(TIC) $< 2>/dev/null
95 100
96 101 clean clobber:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX