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
6 # Copyright (C) 1992-2013 Free Software Foundation, Inc.
7 # This file is part of GNU Make.
9 # GNU Make is free software; you can redistribute it and/or modify it under
10 # the terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 3 of the License, or (at your option) any later
14 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19 # You should have received a copy of the GNU General Public License along with
20 # this program. If not, see <http://www.gnu.org/licenses/>.
23 "") echo 'Usage: mkshadow <destdir>'; exit 1 ;;
28 if [ ! -d "$dest" ]; then
29 echo "Destination directory '$dest' must exist!"
33 if [ ! -f run_make_tests ]; then
34 echo "The current directory doesn't appear to contain the test suite!"
38 suite=`pwd | sed 's%^/tmp_mnt%%'`
39 name=`basename "$suite"`
48 ln -s "$suite" .testdir
56 echo "Shadow test suite created in '$dest/$name'."