1#!/bin/sh
2###########################################################################
3#ident "@(#)MKLINKS	1.8 18/01/05 "
4###########################################################################
5# Written 2008-2018 by J. Schilling
6###########################################################################
7# Copyright (c) 2008-2018 J. Schilling
8###########################################################################
9# The contents of this file are subject to the terms of the
10# Common Development and Distribution License, Version 1.0 only
11# (the "License").  You may not use this file except in compliance
12# with the License.
13#
14# See the file CDDL.Schily.txt in this distribution for details.
15# A copy of the CDDL is also available via the Internet at
16# http://www.opensource.org/licenses/cddl1.txt
17#
18# When distributing Covered Code, include this CDDL HEADER in each
19# file and include the License file CDDL.Schily.txt from this distribution.
20###########################################################################
21symlink="ln -s"
22MKLINKS_TEST=${MKLINKS_TEST-:}
23if [ ".$MKLINKS_COPY" = '.' ]; then
24	rm -f xxzzy.123 xxzzy.345
25	echo test > xxzzy.123
26	$symlink xxzzy.123 xxzzy.345
27	test $? = 0 || symlink=cp
28	test -r xxzzy.345 || symlink=cp
29	${MKLINKS_TEST} -h xxzzy.345 || symlink=cp
30	rm -f xxzzy.123 xxzzy.345
31else
32	symlink=cp
33fi
34###########################################################################
35
36$symlink ../bsh/signames.c		.
37
38$symlink ../sh/bosh.h			.
39$symlink ../sh/ctype.h			.
40$symlink ../sh/defs.h			.
41$symlink ../sh/dup.h			.
42$symlink ../sh/hash.h			.
43$symlink ../sh/jobs.h			.
44$symlink ../sh/mac.h			.
45$symlink ../sh/mode.h			.
46$symlink ../sh/name.h			.
47$symlink ../sh/sh_policy.h		.
48$symlink ../sh/stak.h			.
49$symlink ../sh/sym.h			.
50$symlink ../sh/timeout.h		.
51$symlink ../sh/version.h		.
52
53$symlink ../sh/args.c			.
54$symlink ../sh/bltin.c			.
55$symlink ../sh/cmd.c			.
56$symlink ../sh/ctype.c			.
57$symlink ../sh/defs.c			.
58$symlink ../sh/echo.c			.
59$symlink ../sh/error.c			.
60$symlink ../sh/expand.c			.
61$symlink ../sh/fault.c			.
62$symlink ../sh/func.c			.
63$symlink ../sh/gmatch.c			.
64$symlink ../sh/hash.c			.
65$symlink ../sh/hashserv.c		.
66$symlink ../sh/io.c			.
67$symlink ../sh/jobs.c			.
68$symlink ../sh/macro.c			.
69$symlink ../sh/main.c			.
70$symlink ../sh/msg.c			.
71$symlink ../sh/name.c			.
72$symlink ../sh/optget.c			.
73$symlink ../sh/print.c			.
74$symlink ../sh/pwd.c			.
75$symlink ../sh/service.c		.
76$symlink ../sh/sh_policy.c		.
77$symlink ../sh/stak.c			.
78$symlink ../sh/string.c			.
79$symlink ../sh/test.c			.
80$symlink ../sh/ulimit.c			.
81$symlink ../sh/umask.c			.
82$symlink ../sh/word.c			.
83$symlink ../sh/xec.c			.
84