Skip to content

Commit c83886b

Browse files
authored
Merge branch 'master' into PGP_keys_rebuild-todo
2 parents 5c80a32 + 10d7f48 commit c83886b

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ BASH_SCRIPTS = \
99
aur/review \
1010
package/parse-submodules \
1111
package/pkgsearch \
12-
package/rebuild-todo
12+
package/rebuild-todo \
13+
package/pkggrep
1314

1415
PYTHON_SCRIPTS = \
1516
package/staging2testing \

package/pkggrep

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
3+
# SPDX-License-Identifier: GPL-2.0
4+
5+
set -eou pipefail
6+
7+
PROGNAME="${BASH_SOURCE[0]##*/}"
8+
9+
usage() {
10+
cat <<- _EOF_
11+
Usage: ${PROGNAME} [OPTIONS] expression
12+
13+
Does a full search on all files currently in the repository.
14+
This is useful if one wants to search for a symbol instead of a soname.
15+
For sonames please use 'sogrep'.
16+
17+
OPTIONS
18+
-h, --help Show this help text
19+
20+
Examples:
21+
$ ${PROGNAME} _ZN3fmt3v116detail10locale_refC1ISt6localeEERKT_
22+
_EOF_
23+
}
24+
25+
if ! ((${#})); then
26+
usage
27+
exit 0
28+
fi
29+
30+
SEARCH_EXPRESSION=""
31+
SEARCH_HOST="build.archlinux.org"
32+
33+
while ((${#})); do
34+
key="${1}"
35+
case ${key} in
36+
-h|--help)
37+
usage
38+
exit 0
39+
;;
40+
--)
41+
shift
42+
break
43+
;;
44+
-*)
45+
echo "invalid argument: $key"
46+
usage
47+
exit 1
48+
;;
49+
*)
50+
SEARCH_EXPRESSION="${key}"
51+
;;
52+
esac
53+
shift
54+
done
55+
56+
ssh "${SEARCH_HOST}" "parallel \"rg --files-with-matches --search-zip -- '${SEARCH_EXPRESSION}' {} && pacman -Qpq {}\" ::: /srv/ftp/pool/*/*.zst"

package/rebuild-todo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ usage() {
2727
-e, --edit Edit PKGBUILD before building. Default when todo type is "Task"
2828
-o, --offload Use offloaded builds
2929
-h, --help Show this help text
30-
--dry-run Show the offload-build and commitpkg being ran
30+
-d, --dry-run Show the offload-build and commitpkg being ran
3131
--import-keys Import PGP keys for packages source verification into the user's keyring
3232
--no-build Don't build PKGBUILD
3333
--no-publish Don't run commitpkg after building

0 commit comments

Comments
 (0)