OSDN Git Service

x
[pf3gnuchains/gcc-fork.git] / gcc / fixinc.dgux
index 6a7b1a5..422ba5f 100755 (executable)
 # 
 # You should have received a copy of the GNU General Public License
 # along with GNU CC; see the file COPYING.  If not, write to
-# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# the Free Software Foundation, 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
 #
 #
 #      See README-fixinc for more information.
 
-# Directory where gcc sources (and sometimes special include files) live.
-SRCDIR=${3-${SRCDIR-.}}
-
 # Directory containing the original header files.
 INPUT=${2-${INPUT-/usr/include}}
 
@@ -107,7 +105,7 @@ if $LINKS; then
          y=`echo $x | sed -n "s&${INPUT}/&&p"`
          # DOTS is the relative path from ${LIB}/$file's dir back to ${LIB}.
          dots=`echo "$file" |
-               sed -e 's@^./@@' -e 's@[^/][^/]*@..@g' -e 's@..$@@'`
+           sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'`
          echo $file '->' $dots$y ': Making link'
          rm -fr ${LIB}/$file > /dev/null 2>&1
          ln -s $dots$y ${LIB}/$file > /dev/null 2>&1