mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
6cc9638dc2
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
13 lines
454 B
Bash
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}"
|
|
}
|