1#!/bin/sh 2########################################################################### 3#ident "@(#)MKLINKS 1.7 13/04/21 " 4########################################################################### 5# Written 2008-2011 by J. Schilling 6########################################################################### 7# Copyright (c) 2008-2011 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 ../cdrecord/cd_misc.c . 37$symlink ../cdrecord/scsi_cdr.c . 38$symlink ../cdrecord/scsi_scan.c . 39$symlink ../cdrecord/priv.c . 40 41$symlink ../autoconf/acgeneral.m4 . 42$symlink ../autoconf/aclocal.m4 . 43$symlink ../autoconf/acoldnames.m4 . 44$symlink ../autoconf/acspecific.m4 . 45$symlink ../autoconf/autoconf.m4 . 46$symlink ../autoconf/autoconf . 47$symlink ../autoconf/autoheader.m4 . 48$symlink ../autoconf/config.guess . 49$symlink ../autoconf/config.sub . 50 51$symlink ../conf/install-sh . 52