No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gmake / tests / mkshadow
blobbaae83645bebab5c09d26c2e99bbb7896543b287
1 #!/bin/sh
3 # Simple script to make a "shadow" test directory, using symbolic links.
4 # Typically you'd put the shadow in /tmp or another local disk
7 case "$1" in
8 "") echo 'Usage: mkshadow <destdir>'; exit 1 ;;
9 esac
11 dest="$1"
13 if [ ! -d "$dest" ]; then
14 echo "Destination directory \`$dest' must exist!"
15 exit 1
18 if [ ! -f run_make_tests ]; then
19 echo "The current directory doesn't appear to contain the test suite!"
20 exit 1
23 suite=`pwd | sed 's%^/tmp_mnt%%'`
24 name=`basename "$suite"`
26 files=`echo *`
28 set -e
30 mkdir "$dest/$name"
31 cd "$dest/$name"
33 ln -s "$suite" .testdir
35 for f in $files; do
36 ln -s .testdir/$f .
37 done
39 rm -rf work
41 echo "Shadow test suite created in \`$dest/$name'."
42 exit 0