1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-08 22:50:47 +00:00
serenity/Meta/refresh-serenity-qtcreator.sh
2021-09-15 20:21:19 +00:00

15 lines
679 B
Bash
Executable File

#!/bin/sh
set -e
if [ -z "$SERENITY_SOURCE_DIR" ]
then
SERENITY_SOURCE_DIR="$(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_SOURCE_DIR=${SERENITY_SOURCE_DIR}"
fi
cd "$SERENITY_SOURCE_DIR"
find . \( -name Base -o -name Patches -o -name Ports -o -name Root -o -name Toolchain -o -name Build \) -prune -o \( -name '*.ipc' -or -name '*.cpp' -or -name '*.idl' -or -name '*.c' -or -name '*.h' -or -name '*.S' -or -name '*.css' -or -name '*.cmake' -or -name '*.json' -or -name '*.gml' -or -name 'CMakeLists.txt' \) -print > serenity.files