* command.c (shell_escape, make_command, _initialze_command):
[deliverable/binutils-gdb.git] / gdb / createtags
CommitLineData
dd3b648e
RP
1#!/bin/sh
2#
3# Here we check to see if we are compiling in a directory that contains
4# symlinks to the source files instead of the actual files. If this is so,
5# we setup the TAGS entries to point to the actual source directory.
6#
7filelist=""
8if test "`find main.c -type l -print `" != "" ; then
9 prefix=`ls -l main.c | awk '{print $11}' | sed 's;main.c$;;'`
10else
11 prefix=""
12fi
13
14# Replace .o at end of filename with .c
15for i in $@ ; do
16 file=`echo $i-x- | sed -e 's/\.o-x-/\.c-x-/' | sed -e 's/-x-//'`
17 filelist="$filelist $prefix$file"
18done
19
20etags $filelist
This page took 0.077023 seconds and 4 git commands to generate.