Improve symlink handling for C tags file.

This commit is contained in:
Bruce Momjian 2003-01-18 06:06:51 +00:00
parent d12be5c37b
commit 2042daf5c3
2 changed files with 2 additions and 2 deletions

View File

@ -14,5 +14,5 @@ sort tags >/tmp/$$ && mv /tmp/$$ tags
find . -name 'CVS' -prune -o -type d -print |while read DIR
do
[ "$DIR" != "." ] && ln -f -s `pwd`/tags $DIR/tags
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags $DIR/tags
done

View File

@ -5,5 +5,5 @@ mkid `find \`pwd\`/ \( -name _deadcode -a -prune \) -o \
find . -name 'CVS' -prune -o -type d -print |while read DIR
do
[ "$DIR" != "." ] && ln -f -s `pwd`/ID $DIR/ID
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/ID $DIR/ID
done