Print this page
Lose developer/build/make from omnios-build, add in developer/as and
developer/versioning/sccs.
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/make/build.sh
+++ new/build/sccs/build.sh
1 1 #!/usr/bin/bash
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License, Version 1.0 only
7 7 # (the "License"). You may not use this file except in compliance
8 8 # with the License.
9 9 #
10 10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 # or http://www.opensolaris.org/os/licensing.
12 12 # See the License for the specific language governing permissions
13 13 # and limitations under the License.
14 14 #
15 15 # When distributing Covered Code, include this CDDL HEADER in each
16 16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 17 # If applicable, add the following below this CDDL HEADER, with the
18 18 # fields enclosed by brackets "[]" replaced with your own identifying
|
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 20 #
21 21 # CDDL HEADER END
22 22 #
23 23 #
24 24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # this will build
28 28 #
29 -# * make
30 29 # * sccs
31 -# * assorted bin-only bits: (from sub root)
32 -# * as
33 -# * libtdf
34 -# * libxprof
35 -# * libxprof_audit
30 +#
36 31
37 32 # Load support functions
38 33 . ../../lib/functions.sh
39 34
40 35 PROG=make
41 36 VER=0.5.11
42 -PKG=developer/build/make
43 -SUMMARY="OmniOS Bundled Development Tools (aka DevPro)"
37 +PKG=developer/versioning/sccs
38 +SUMMARY="Source Code Control System (SCCS)"
44 39 DESC="$SUMMARY"
45 40
46 41 BUILD_DEPENDS_IPS="sunstudio12.1 compatibility/ucb"
47 42 DEPENDS_IPS="system/library SUNWcs system/library/math"
48 43
49 44 CONFIGURE_OPTS=""
50 45 PKGE=$(url_encode $PKG)
51 -DESTDIR=$DTMPDIR/make_pkg
46 +DESTDIR=$DTMPDIR/sccs
52 47
53 48 prebuild_clean() {
54 49 logmsg "Cleaning destdir: $DESTDIR"
55 50 logcmd rm -rf $DESTDIR
51 + mkdir -p $DESTDIR/usr/bin
56 52 }
57 53
58 54 build() {
59 55 logmsg "Building and installing ($1)"
60 56 pushd $TMPDIR/$1/usr/src > /dev/null || logerr "can't enter build harness"
61 57 logcmd env STUDIOBIN=/opt/sunstudio12.1/bin DESTDIR=$DESTDIR ./build ||
62 58 logerr "make/install ($1) failed"
63 59 popd > /dev/null
64 60 }
65 61
66 -place_bins() {
67 - logmsg "Moving closed bins into place"
68 - (cd $SRCDIR/root && tar cf - .) | (cd $DESTDIR && tar xf -) ||
69 - logerr "Failed to copy closed bins"
70 -}
71 62 move_and_links() {
72 63 logmsg "Shifting binaries and setting up links"
73 64 logcmd mv $DESTDIR/usr/ccs/bin/help $DESTDIR/usr/bin/sccshelp
74 65 pushd $DESTDIR/usr/ccs/bin > /dev/null || logerr "Cannot chdir"
75 66 for cmd in *
76 67 do
77 68 logcmd mv $cmd $DESTDIR/usr/bin/ || logerr "Cannot relocate /usr/ccs/bin/$cmd"
78 69 logcmd ln -s ../../$cmd $cmd
79 70 done
80 71 logcmd ln -s ../../sccshelp $DESTDIR/usr/ccs/bin/sccshelp
81 72 logcmd ln -s ../../sccshelp $DESTDIR/usr/ccs/bin/help
82 73 popd > /dev/null
83 74 }
84 75
85 76 init
86 -
87 77 prebuild_clean
88 -
89 -BUILDDIR=devpro-make-20061219
90 -download_source devpro devpro-make src-20061219
91 -build devpro-make-20061219
92 -
93 78 BUILDDIR=devpro-sccs-20061219
94 79 download_source devpro devpro-sccs src-20061219
95 80 build devpro-sccs-20061219
96 -
97 -place_bins
98 81 move_and_links
99 -
100 82 make_package
101 83 clean_up
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX