ladybird/Meta
asynts 7cf0c7cc0d Meta: Split debug defines into multiple headers.
The following script was used to make these changes:

    #!/bin/bash
    set -e

    tmp=$(mktemp -d)

    echo "tmp=$tmp"

    find Kernel \( -name '*.cpp' -o -name '*.h' \) | sort > $tmp/Kernel.files
    find . \( -path ./Toolchain -prune -o -path ./Build -prune -o -path ./Kernel -prune \) -o \( -name '*.cpp' -o -name '*.h' \) -print | sort > $tmp/EverythingExceptKernel.files

    cat $tmp/Kernel.files | xargs grep -Eho '[A-Z0-9_]+_DEBUG' | sort | uniq > $tmp/Kernel.macros
    cat $tmp/EverythingExceptKernel.files | xargs grep -Eho '[A-Z0-9_]+_DEBUG' | sort | uniq > $tmp/EverythingExceptKernel.macros

    comm -23 $tmp/Kernel.macros $tmp/EverythingExceptKernel.macros > $tmp/Kernel.unique
    comm -1 $tmp/Kernel.macros $tmp/EverythingExceptKernel.macros > $tmp/EverythingExceptKernel.unique

    cat $tmp/Kernel.unique | awk '{ print "#cmakedefine01 "$1 }' > $tmp/Kernel.header
    cat $tmp/EverythingExceptKernel.unique | awk '{ print "#cmakedefine01 "$1 }' > $tmp/EverythingExceptKernel.header

    for macro in $(cat $tmp/Kernel.unique)
    do
        cat $tmp/Kernel.files | xargs grep -l $macro >> $tmp/Kernel.new-includes ||:
    done
    cat $tmp/Kernel.new-includes | sort > $tmp/Kernel.new-includes.sorted

    for macro in $(cat $tmp/EverythingExceptKernel.unique)
    do
        cat $tmp/Kernel.files | xargs grep -l $macro >> $tmp/Kernel.old-includes ||:
    done
    cat $tmp/Kernel.old-includes | sort > $tmp/Kernel.old-includes.sorted

    comm -23 $tmp/Kernel.new-includes.sorted $tmp/Kernel.old-includes.sorted > $tmp/Kernel.includes.new
    comm -13 $tmp/Kernel.new-includes.sorted $tmp/Kernel.old-includes.sorted > $tmp/Kernel.includes.old
    comm -12 $tmp/Kernel.new-includes.sorted $tmp/Kernel.old-includes.sorted > $tmp/Kernel.includes.mixed

    for file in $(cat $tmp/Kernel.includes.new)
    do
        sed -i -E 's/#include <AK\/Debug\.h>/#include <Kernel\/Debug\.h>/' $file
    done

    for file in $(cat $tmp/Kernel.includes.mixed)
    do
        echo "mixed include in $file, requires manual editing."
    done
2021-01-26 21:20:00 +01:00
..
CLion Meta: Update CLion CMakeLists for moved directories 2021-01-14 08:13:54 +01:00
CMake Everywhere: Hook up remaining debug macros to Debug.h. 2021-01-25 09:47:36 +01:00
Lagom Meta: Split debug defines into multiple headers. 2021-01-26 21:20:00 +01:00
Websites/serenityos.org Website: Bounty: Add links to writeups for unclaimed bounties 2021-01-16 16:58:04 +01:00
bochsrc Meta: move Kernel/.bochsrc => Meta/bochsrc 2020-07-01 12:53:39 +02:00
build-image-grub.sh Build: Fix build of grub image when choosing EBR scheme 2020-12-27 23:07:44 +01:00
build-image-qemu.sh Build: Modify various parts to allow the build to succeed on FreeBSD 2020-10-20 14:40:47 +02:00
build-root-filesystem.sh Base: More helpful Desktop selection 2021-01-22 22:14:08 +01:00
check-ak-test-files.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
check-debug-flags.sh Meta: Make check-debug-flags.sh work with the new changes. 2021-01-25 09:47:36 +01:00
check-newlines-at-eof.py Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
check-style.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
check-symbols.sh Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
check-syscall-lists.sh Meta: Check consistency of various syscall tables 2021-01-23 16:47:09 +01:00
debug-kernel.sh Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
generate-embedded-resource-assembly.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
grub-ebr.cfg Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00
grub-gpt.cfg Kernel: Stop bootloader from setting video mode with Multiboot 2020-05-28 00:50:55 +02:00
grub-mbr.cfg Kernel: Stop bootloader from setting video mode with Multiboot 2020-05-28 00:50:55 +02:00
lint-ci.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-clang-format.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-executable-resources.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-ipc-ids.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-missing-resources.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-prettier.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-python.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-shell-scripts.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
notify_irc.py Meta: Reduce IRC spam 2020-11-25 20:50:22 +01:00
refresh-serenity-qtcreator.sh LibGUI: Introduce GML - a simple GUI Markup Language :^) 2020-12-20 11:59:40 +01:00
run.sh Meta: Bump default RAM size to 512MB 2021-01-01 23:43:44 +01:00
screenshot-000ccc0.png Meta: Update ReadMe with a new screenshot. :^) 2019-02-12 15:47:37 +01:00
screenshot-8ea4375.png Meta: Time for a new screenshot! :^) 2020-06-02 19:29:31 +02:00
screenshot-1133aca.png Meta: Time for a new screenshot (Quake edition) :^) 2019-11-06 21:51:33 +01:00
screenshot-9145a72.png Meta: Time for a new screnshot! :^) 2019-09-18 12:15:02 +02:00
screenshot-23263aa.png Meta: Update ReadMe with a new screenshot :^) 2019-02-27 13:17:43 +01:00
screenshot-191112e.png Meta: Time for a new screenshot to keep things fresh. :^) 2019-06-07 18:14:13 +02:00
screenshot-b5521e1.png Meta: Time for a new screenshot! :^) 2019-03-08 01:10:33 +01:00
screenshot-cdb82f6.png Meta: Tweak ReadMe and add a new screenshot. 2019-03-20 15:52:37 +01:00
screenshot-d727005.png Meta: Tweak ReadMe and add a new screenshot. 2019-04-30 15:27:35 +02:00
screenshot-ef9fbef.png Meta: Time for a new screenshot :^) 2019-04-06 01:31:12 +02:00
screenshot-f8fc892.png Add a little ReadMe. 2019-02-08 11:06:34 +01:00
text-to-cpp-string.sh Meta: Use a bash shebang for text-to-cpp-string.sh 2021-01-22 18:41:08 +01:00
write-only-on-difference.sh Meta: Provide a way to only update a file if the output changes 2020-08-04 11:27:14 +02:00