lyx_mirror/development/lyx-tester/convenience-functions.sh
Scott Kostyshak 6cc9638dc2 Initial commit of lyx-tester
These scripts help with building and testing LyX, mostly with the
ctest framework.

"lyxbuild" is a build script that has different options (e.g., to
compile with Clang/GCC, Qt 5/6, CMake/autotools). The build script
also has an option to cherry-pick compiler fixes which make it
easier to build older commits on newer compiler versions (useful
when performing a "git bisect"). See "lyxbuild --help" for more
information.

The previous home of lyx-tester was:

  https://gitlab.com/scottkosty/lyx-tester
2024-11-18 16:20:40 +01:00

13 lines
454 B
Bash

# This will match strings with Qt accelerators, like "so&me message",
# without having to specify the ampersand.
function git-grep-accel-robust ()
{
# TODO preserve "git" args? i.e., allow user to not use -i, etc.
#
# Insert the string "&\?" after each character to allow for an ampersand
# to be anywhere.
# (https://unix.stackexchange.com/a/5981/197212)
search_str="$( echo "$1" | sed 's/.\{1\}/&\&\\\?/g')"
git grep -i "${search_str}"
}