Files
eric a10b048968
build / Build Docker Image (push) Canceled after 0s
eom.dev customization
2026-10-24 18:49:03 -04:00

18 lines
769 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
repo="$(cd "$(dirname "$0")/.." && pwd)"
scratch="$(mktemp -d)"
trap 'rm -rf "$scratch"' EXIT
mkdir -p "$scratch/src/gui"
for ((line = 1; line < 1539; line++)); do printf '\n'; done \
> "$scratch/src/gui/guiFormSpecMenu.cpp"
printf '\te->setDrawBorder(style.getBool(StyleSpec::BORDER, true));\n' \
>> "$scratch/src/gui/guiFormSpecMenu.cpp"
patch --dry-run -p1 -d "$scratch" < "$repo/patches/pwdfield-background-v3.patch"
patch -p1 -d "$scratch" < "$repo/patches/pwdfield-background-v3.patch"
grep -qx $'\tbool border = style.getBool(StyleSpec::BORDER, true);' \
"$scratch/src/gui/guiFormSpecMenu.cpp"
grep -qx $'\te->setDrawBackground(border);' "$scratch/src/gui/guiFormSpecMenu.cpp"
echo 'Password-field styling patch test passed'