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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy