mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Meta: Don't require setting SERENITY_ROOT for refresh script
The need for SERENITY_ROOT was basically eliminated in
73c953b674
. The existing guess
'git rev-parse --show-toplevel' should be correct in all conceivable cases.
Most code just assumes the layout in git, or depends on SERENITY_ROOT as
set in the CMakeLists.txt. *Requiring* the user to set it doesn't make
sense anymore.
While I was in there anyway, I added exit code propagation. Also, 'find' should
be a tad faster now, because it doesn't enumerate files in the large ignored
directories Build/ and Toolchain/ anymore.
This commit is contained in:
parent
cebf8ae3b7
commit
f19b88c965
Notes:
sideshowbarker
2024-07-19 03:37:27 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/f19b88c9651 Pull-request: https://github.com/SerenityOS/serenity/pull/3157
1 changed files with 9 additions and 3 deletions
|
@ -1,8 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$SERENITY_ROOT" ]
|
||||
then echo "Serenity root not set. Please set environment variable first. E.g. export SERENITY_ROOT=$(git rev-parse --show-toplevel)"
|
||||
then
|
||||
SERENITY_ROOT="$(git rev-parse --show-toplevel)"
|
||||
echo "Serenity root not set. This is fine! Other scripts may require you to set the environment variable first, e.g.:"
|
||||
echo " export SERENITY_ROOT=${SERENITY_ROOT}"
|
||||
fi
|
||||
|
||||
cd "$SERENITY_ROOT" || exit 1
|
||||
find . -name '*.ipc' -or -name '*.cpp' -or -name '*.idl' -or -name '*.c' -or -name '*.h' -or -name '*.S' -or -name '*.css' | grep -Fv Patches/ | grep -Fv Root/ | grep -Fv Ports/ | grep -Fv Toolchain/ | grep -Fv Base/ > serenity.files
|
||||
cd "$SERENITY_ROOT"
|
||||
|
||||
find . \( -name Base -o -name Patches -o -name Ports -o -name Root -o -name Toolchain \) -prune -o \( -name '*.ipc' -or -name '*.cpp' -or -name '*.idl' -or -name '*.c' -or -name '*.h' -or -name '*.S' -or -name '*.css' \) -print > serenity.files
|
||||
|
|
Loading…
Reference in a new issue