summaryrefslogtreecommitdiff
path: root/Meta/refresh-serenity-qtcreator.sh
blob: d8c95ed95a54de9dcea0ec4b5b12d65953e0e51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

if [ -z "$SERENITY_ROOT" ]
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"

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