4 ?RCS: Copyright (c) 2000, Jarkko Hietaniemi
7 ?X: This unit produces a bit of shell code that must be dotted in order
8 ?X: to make quick check on whether the current C compiler is working.
10 ?MAKE:Mksymlinks: lns issymlink src
11 ?MAKE: -pick add $@ %<
12 ?T: directory filename
13 ?LINT:extern mksymlinks
18 ''|'.') echo "Cannot create symlinks in the original directory." >&4
21 *) case "$lns:$issymlink" in
22 *"ln"*" -s:"*"test -"?)
23 echo "Creating the symbolic links..." >&4
24 echo "(First creating the subdirectories...)" >&4
26 awk '{print $1}' $src/MANIFEST | grep / | sed 's:/[^/]*$::' | sort -u | while true; do
28 test -z "$directory" && break
32 if test ! -d t/base; then
33 echo "Failed to create the subdirectories. Aborting." >&4
36 echo "(Then creating the symlinks...)" >&4
37 awk '{print $1}' $src/MANIFEST | while true; do
39 test -z "$filename" && break
40 if test -f $filename; then
41 if $issymlink $filename; then
45 if test -f $filename; then
46 echo "$filename already exists, not symlinking."
48 ln -s $src/$filename $filename
52 if test ! -f t/base/lex.t; then
53 echo "Failed to create the symlinks (t/base/lex.t missing). Aborting." >&4
58 *) echo "(I cannot figure out how to do symbolic links, ignoring mksymlinks)." >&4