1#!/bin/sh 2########################################################################### 3#ident "@(#)MKLINKS 1.9 18/06/26 " 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/abbrev.h . 37$symlink ../bsh/signames.c . 38 39$symlink ../sh/bosh.h . 40$symlink ../sh/ctype.h . 41$symlink ../sh/defs.h . 42$symlink ../sh/dup.h . 43$symlink ../sh/hash.h . 44$symlink ../sh/jobs.h . 45$symlink ../sh/mac.h . 46$symlink ../sh/mode.h . 47$symlink ../sh/name.h . 48$symlink ../sh/sh_policy.h . 49$symlink ../sh/stak.h . 50$symlink ../sh/sym.h . 51$symlink ../sh/timeout.h . 52$symlink ../sh/version.h . 53 54$symlink ../bsh/abbrev.c . 55 56$symlink ../sh/alias.c . 57$symlink ../sh/args.c . 58$symlink ../sh/bltin.c . 59$symlink ../sh/cmd.c . 60$symlink ../sh/ctype.c . 61$symlink ../sh/defs.c . 62$symlink ../sh/echo.c . 63$symlink ../sh/error.c . 64$symlink ../sh/expand.c . 65$symlink ../sh/fault.c . 66$symlink ../sh/func.c . 67$symlink ../sh/gmatch.c . 68$symlink ../sh/hash.c . 69$symlink ../sh/hashserv.c . 70$symlink ../sh/io.c . 71$symlink ../sh/jobs.c . 72$symlink ../sh/macro.c . 73$symlink ../sh/main.c . 74$symlink ../sh/msg.c . 75$symlink ../sh/name.c . 76$symlink ../sh/optget.c . 77$symlink ../sh/print.c . 78$symlink ../sh/printf.c . 79$symlink ../sh/pwd.c . 80$symlink ../sh/service.c . 81$symlink ../sh/sh_policy.c . 82$symlink ../sh/stak.c . 83$symlink ../sh/strexpr.c . 84$symlink ../sh/string.c . 85$symlink ../sh/test.c . 86$symlink ../sh/ulimit.c . 87$symlink ../sh/umask.c . 88$symlink ../sh/word.c . 89$symlink ../sh/xec.c . 90