X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=symlink-tree;h=22132c76afda8a9c4f402dc55bc633f4c36ab31e;hp=8f11c0879325bd306969c34cf8db541a0ea4fb0a;hb=78a79402acfbd2f40b3b178914bd546a667c21d5;hpb=1ac432f17da0e2ac29ac5e4fffeb6356102f9b42 diff --git a/symlink-tree b/symlink-tree index 8f11c087932..22132c76afd 100755 --- a/symlink-tree +++ b/symlink-tree @@ -1,6 +1,31 @@ #!/bin/sh # Create a symlink tree. # +# Copyright (C) 1995, 2000, 2003 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. +# +# Please report bugs to +# and send patches to . + # Syntax: symlink-tree srcdir "ignore1 ignore2 ..." # # where srcdir is the directory to create a symlink tree to, @@ -20,13 +45,13 @@ ignore_additional=". .. CVS" # If we were invoked with a relative path name, adjust ${prog} to work # in subdirs. case ${prog} in -/*) ;; +/* | [A-Za-z]:[\\/]*) ;; *) prog=../${prog} ;; esac # Set newsrcdir to something subdirectories can use. case ${srcdir} in -/*) newsrcdir=${srcdir} ;; +/* | [A-Za-z]:[\\/]*) newsrcdir=${srcdir} ;; *) newsrcdir=../${srcdir} ;; esac