VirtualBox

source: kBuild/vendor/gnumake/2003-11-23/tests/mkshadow@ 1158

Last change on this file since 1158 was 53, checked in by bird, 21 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 708 bytes
Line 
1#!/bin/sh
2#
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
5#
6
7case "$1" in
8 "") echo 'Usage: mkshadow <destdir>'; exit 1 ;;
9esac
10
11dest="$1"
12
13if [ ! -d "$dest" ]; then
14 echo "Destination directory \`$dest' must exist!"
15 exit 1
16fi
17
18if [ ! -f run_make_tests ]; then
19 echo "The current directory doesn't appear to contain the test suite!"
20 exit 1
21fi
22
23suite=`pwd | sed 's%^/tmp_mnt%%'`
24name=`basename "$suite"`
25
26files=`echo *`
27
28set -e
29
30mkdir "$dest/$name"
31cd "$dest/$name"
32
33ln -s "$suite" .testdir
34
35for f in $files; do
36 ln -s .testdir/$f .
37done
38
39rm -rf work
40
41echo "Shadow test suite created in \`$dest/$name'."
42exit 0
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette