-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4074 from masatake/readtags-refactor-for-searchin…
…g-multiple-tag-files readtags: refactor for searching multiple tag files
- Loading branch information
Showing
16 changed files
with
317 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# Copyright: 2024 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
BUILDDIR=$2 | ||
READTAGS=$3 | ||
#V="valgrind --leak-check=full --track-origins=yes -v" | ||
V= | ||
|
||
. ../utils.sh | ||
|
||
if ! [ -x "${READTAGS}" ]; then | ||
skip "no readtags" | ||
fi | ||
|
||
f=${BUILDDIR}/tmp-readtags-error-conflicting-actions-$$ | ||
rm -f "$f" | ||
|
||
{ | ||
${READTAGS} --tag-file input.tags -l - main | ||
} 2> "$f" | ||
|
||
s=$? | ||
|
||
sed 's|.*\(readtags[^:]*\):|readtags:|' < "$f" 1>&2 | ||
rm "$f" | ||
|
||
exit $s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
readtags: choose either an action: finding a tag or listing all |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# Copyright: 2024 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
BUILDDIR=$2 | ||
READTAGS=$3 | ||
#V="valgrind --leak-check=full --track-origins=yes -v" | ||
V= | ||
|
||
. ../utils.sh | ||
|
||
if ! [ -x "${READTAGS}" ]; then | ||
skip "no readtags" | ||
fi | ||
|
||
f=${BUILDDIR}/tmp-readtags-error-no-action-$$ | ||
rm -f "$f" | ||
|
||
{ | ||
${READTAGS} -t input.tags | ||
} 2> "$f" | ||
|
||
s=$? | ||
|
||
sed 's|.*\(readtags[^:]*\):|readtags:|' < "$f" 1>&2 | ||
rm "$f" | ||
|
||
exit $s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
readtags: no action specified: specify one of NAME, -l or -D |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
# Copyright: 2024 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
BUILDDIR=$2 | ||
READTAGS=$3 | ||
#V="valgrind --leak-check=full --track-origins=yes -v" | ||
V= | ||
|
||
. ../utils.sh | ||
|
||
if ! [ -x "${READTAGS}" ]; then | ||
skip "no readtags" | ||
fi | ||
|
||
f=${BUILDDIR}/tmp-readtags-error-no-input-$$ | ||
rm -f "$f" | ||
{ | ||
: && | ||
${READTAGS} -t ./no-such-input.tags -l || | ||
${READTAGS} -t ./no-such-input.tags -D || | ||
${READTAGS} -t ./no-such-input.tags - main || | ||
${READTAGS} -t ./no-such-input.tags main | ||
} 2> "$f" | ||
|
||
s=$? | ||
|
||
sed 's|.*\(readtags[^:]*\):|readtags:|' < "$f" 1>&2 | ||
rm "$f" | ||
|
||
exit $s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
readtags: cannot open tag file: No such file or directory: ./no-such-input.tags | ||
readtags: cannot open tag file: No such file or directory: ./no-such-input.tags | ||
readtags: cannot open tag file: No such file or directory: ./no-such-input.tags | ||
readtags: cannot open tag file: No such file or directory: ./no-such-input.tags |
Empty file.
Oops, something went wrong.