4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
26 ROOTDEMODIRBASE= $(ROOT)/usr/demo/ksh
30 bin/crawlsrccomments \
47 bin/simplefileattributetree1 \
52 bin/xmldocumenttree1 \
58 src/crawlsrccomments.sh \
59 src/filemutexdemo1.sh \
62 src/mandelbrotset1.sh \
65 src/primenumbers1.sh \
75 src/simplefileattributetree1.sh \
76 src/simplefiletree1.sh \
79 src/test_net_sctp.sh \
80 src/xmldocumenttree1.sh \
111 tests/restricted.sh \
119 tests/sun_solaris_array_default_datatype.sh \
120 tests/sun_solaris_builtin_poll.sh \
121 tests/sun_solaris_builtin_sum.sh \
122 tests/sun_solaris_builtin_tail.sh \
123 tests/sun_solaris_command_substitution.sh \
124 tests/sun_solaris_compound_misc.sh \
125 tests/sun_solaris_compound_nameref.sh \
126 tests/sun_solaris_compoundvario.sh \
127 tests/sun_solaris_cr_xxxxxxxx_template.sh \
128 tests/sun_solaris_cr_6687139_command_substitution_exec_redirection_allocation_loop.sh \
129 tests/sun_solaris_cr_6713682_compound_var_bleeds_through_subshell.sh \
130 tests/sun_solaris_cr_6722134_background_CHLD_trap.sh \
131 tests/sun_solaris_cr_6753538_subshell_leaks_umask.sh \
132 tests/sun_solaris_cr_6754020_weird_square_bracket_expansion.sh \
133 tests/sun_solaris_cr_6763594_command_failure_execs_twice.sh \
134 tests/sun_solaris_cr_6766246_pattern_matching_bug.sh \
135 tests/sun_solaris_cr_6769332_substitutions_terminate_shell_after_257_iterations.sh \
136 tests/sun_solaris_cr_6777491_lacks_arithmetric_function_iszero.sh \
137 tests/sun_solaris_cr_6778077_sigthaw_trap.sh \
138 tests/sun_solaris_cr_6789247_printf_hexfloat_rounding.sh \
139 tests/sun_solaris_cr_6800929_large_command_substitution_hang.sh \
140 tests/sun_solaris_cr_6805792_varmovetest1.sh \
141 tests/sun_solaris_cr_6805794_character_to_wchar_not_working.sh \
142 tests/sun_solaris_cr_6805795_negative_zero.sh \
143 tests/sun_solaris_cr_6807179_shellpattern_uses_getpwnam.sh \
144 tests/sun_solaris_cr_6835835_builtin_cat_n_broken.sh \
145 tests/sun_solaris_cr_6848486_echo_test_with_test_undefined_executes_test_builtin.sh \
146 tests/sun_solaris_cr_6855875_typeset_hexfloat_has_too_few_digits.sh \
147 tests/sun_solaris_cr_6862121_shbinexec_kernel_module_defunct.sh \
148 tests/sun_solaris_cr_6881017_background_process_in_subshell_hangs_caller.sh \
149 tests/sun_solaris_cr_6887363_shell_sometimes_mishandles_return_value_of_its_child_process.sh \
150 tests/sun_solaris_cr_6904557_wc_no_longer_counts_number_of_bytes_correctly.sh \
151 tests/sun_solaris_cr_6904575_cut_-d_with_multibyte_character_no_longer_works.sh \
152 tests/sun_solaris_cr_6904878_join_-t_no_longer_works_with_multibyte_char_separator.sh \
153 tests/sun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh \
154 tests/sun_solaris_getconf.sh \
155 tests/sun_solaris_locale_misc.sh \
156 tests/sun_solaris_local_compound_nameref001.sh \
157 tests/sun_solaris_staticvariables.sh \
158 tests/sun_solaris_vartree001.sh \
159 tests/sun_solaris_vartree002.sh \
160 tests/sun_solaris_vartree003.sh \
169 # Rules for executables
170 $(ROOTDEMODIRBASE)/tests/shtests := FILEMODE= 755
171 $(ROOTDEMODIRBASE)/fun/% := FILEMODE= 755
172 $(ROOTDEMODIRBASE)/bin/% := FILEMODE= 755
174 $(ROOTDEMODIRBASE)/bin/%: common/scripts/%.sh
175 /usr/bin/shcomp "$<" >"$(@F)"
176 $(INS) -s -m $(FILEMODE) -f $(@D) "$(@F)"
179 $(ROOTDEMODIRBASE)/src/%.sh: common/scripts/%.sh
182 ROOTDEMODIRS= $(ROOTDEMODIRBASE) .WAIT \
183 $(ROOTDEMODIRBASE)/bin \
184 $(ROOTDEMODIRBASE)/fun \
185 $(ROOTDEMODIRBASE)/src \
186 $(ROOTDEMODIRBASE)/tests
188 install: $(ROOTDEMODIRS) .WAIT $(ROOTDEMOFILES)