Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2042daf

Browse files
committed
Improve symlink handling for C tags file.
1 parent d12be5c commit 2042daf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/make_ctags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ sort tags >/tmp/$$ && mv /tmp/$$ tags
1414

1515
find . -name 'CVS' -prune -o -type d -print |while read DIR
1616
do
17-
[ "$DIR" != "." ] && ln -f -s `pwd`/tags $DIR/tags
17+
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags $DIR/tags
1818
done

src/tools/make_mkid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ mkid `find \`pwd\`/ \( -name _deadcode -a -prune \) -o \
55

66
find . -name 'CVS' -prune -o -type d -print |while read DIR
77
do
8-
[ "$DIR" != "." ] && ln -f -s `pwd`/ID $DIR/ID
8+
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/ID $DIR/ID
99
done

0 commit comments

Comments
 (0)