From c4e2fd8123b83a6b890b410741f1d416a1162fdb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 12 Jan 2021 11:53:14 +0100 Subject: [PATCH] Shell: Move to Userland/Shell/ --- CMakeLists.txt | 3 ++- Meta/CLion/CMakeLists.txt | 2 +- Meta/Lagom/CMakeLists.txt | 8 ++++---- Meta/lint-missing-resources.sh | 2 +- Meta/lint-shell-scripts.sh | 2 +- Userland/CMakeLists.txt | 3 ++- {Shell => Userland/Shell}/AST.cpp | 0 {Shell => Userland/Shell}/AST.h | 0 {Shell => Userland/Shell}/Builtin.cpp | 0 {Shell => Userland/Shell}/CMakeLists.txt | 0 {Shell => Userland/Shell}/Execution.h | 0 {Shell => Userland/Shell}/Formatter.cpp | 0 {Shell => Userland/Shell}/Formatter.h | 0 {Shell => Userland/Shell}/Forward.h | 0 {Shell => Userland/Shell}/Job.cpp | 0 {Shell => Userland/Shell}/Job.h | 0 {Shell => Userland/Shell}/NodeVisitor.cpp | 0 {Shell => Userland/Shell}/NodeVisitor.h | 0 {Shell => Userland/Shell}/Parser.cpp | 0 {Shell => Userland/Shell}/Parser.h | 0 {Shell => Userland/Shell}/Shell.cpp | 0 {Shell => Userland/Shell}/Shell.h | 0 {Shell => Userland/Shell}/Tests/backgrounding.sh | 0 {Shell => Userland/Shell}/Tests/brace-exp.sh | 0 {Shell => Userland/Shell}/Tests/builtin-redir.sh | 0 .../Shell}/Tests/control-structure-as-command.sh | 0 {Shell => Userland/Shell}/Tests/function.sh | 0 {Shell => Userland/Shell}/Tests/if.sh | 0 {Shell => Userland/Shell}/Tests/loop.sh | 0 {Shell => Userland/Shell}/Tests/match.sh | 0 {Shell => Userland/Shell}/Tests/sigpipe.sh | 0 {Shell => Userland/Shell}/Tests/special-vars.sh | 0 {Shell => Userland/Shell}/Tests/subshell.sh | 0 {Shell => Userland/Shell}/Tests/valid.sh | 0 {Shell => Userland/Shell}/main.cpp | 0 35 files changed, 11 insertions(+), 9 deletions(-) rename {Shell => Userland/Shell}/AST.cpp (100%) rename {Shell => Userland/Shell}/AST.h (100%) rename {Shell => Userland/Shell}/Builtin.cpp (100%) rename {Shell => Userland/Shell}/CMakeLists.txt (100%) rename {Shell => Userland/Shell}/Execution.h (100%) rename {Shell => Userland/Shell}/Formatter.cpp (100%) rename {Shell => Userland/Shell}/Formatter.h (100%) rename {Shell => Userland/Shell}/Forward.h (100%) rename {Shell => Userland/Shell}/Job.cpp (100%) rename {Shell => Userland/Shell}/Job.h (100%) rename {Shell => Userland/Shell}/NodeVisitor.cpp (100%) rename {Shell => Userland/Shell}/NodeVisitor.h (100%) rename {Shell => Userland/Shell}/Parser.cpp (100%) rename {Shell => Userland/Shell}/Parser.h (100%) rename {Shell => Userland/Shell}/Shell.cpp (100%) rename {Shell => Userland/Shell}/Shell.h (100%) rename {Shell => Userland/Shell}/Tests/backgrounding.sh (100%) rename {Shell => Userland/Shell}/Tests/brace-exp.sh (100%) rename {Shell => Userland/Shell}/Tests/builtin-redir.sh (100%) rename {Shell => Userland/Shell}/Tests/control-structure-as-command.sh (100%) rename {Shell => Userland/Shell}/Tests/function.sh (100%) rename {Shell => Userland/Shell}/Tests/if.sh (100%) rename {Shell => Userland/Shell}/Tests/loop.sh (100%) rename {Shell => Userland/Shell}/Tests/match.sh (100%) rename {Shell => Userland/Shell}/Tests/sigpipe.sh (100%) rename {Shell => Userland/Shell}/Tests/special-vars.sh (100%) rename {Shell => Userland/Shell}/Tests/subshell.sh (100%) rename {Shell => Userland/Shell}/Tests/valid.sh (100%) rename {Shell => Userland/Shell}/main.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index b721800bfa3..54fe121b0d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,9 +137,11 @@ add_link_options(--sysroot ${CMAKE_BINARY_DIR}/Root) include_directories(Libraries/LibC) include_directories(Libraries/LibM) include_directories(Services) +include_directories(Userland) include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR}/Services) include_directories(${CMAKE_CURRENT_BINARY_DIR}/Libraries) +include_directories(${CMAKE_CURRENT_BINARY_DIR}/Userland) add_subdirectory(AK) add_subdirectory(Kernel) @@ -149,6 +151,5 @@ add_subdirectory(Applications) add_subdirectory(Games) add_subdirectory(DevTools) add_subdirectory(MenuApplets) -add_subdirectory(Shell) add_subdirectory(Demos) add_subdirectory(Userland) diff --git a/Meta/CLion/CMakeLists.txt b/Meta/CLion/CMakeLists.txt index 82a60501bf5..44175bf8f07 100644 --- a/Meta/CLion/CMakeLists.txt +++ b/Meta/CLion/CMakeLists.txt @@ -15,7 +15,7 @@ file(GLOB_RECURSE LIBRARIES_SOURCES "serenity/Libraries/*.cpp") file(GLOB_RECURSE MENU_APPLETS_SOURCES "serenity/MenuApplets/*.cpp") file(GLOB_RECURSE PORTS_SOURCES "serenity/Ports/*.cpp") file(GLOB_RECURSE SERVERS_SOURCES "serenity/Services/*.cpp") -file(GLOB_RECURSE SHELL_SOURCES "serenity/Shell/*.cpp") +file(GLOB_RECURSE SHELL_SOURCES "serenity/Userland/Shell/*.cpp") file(GLOB_RECURSE TESTS_SOURCES "serenity/Tests/*.cpp") file(GLOB_RECURSE TOOLCHAIN_SOURCES "serenity/Toolchain/*.cpp") file(GLOB_RECURSE USERLAND_SOURCES "serenity/Userland/*.cpp") diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 8685c5e19eb..fe29f3ec6e8 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -65,9 +65,9 @@ file(GLOB LIBCRYPTO_SOURCES CONFIGURE_DEPENDS "../../Libraries/LibCrypto/*.cpp") file(GLOB LIBCRYPTO_SUBDIR_SOURCES CONFIGURE_DEPENDS "../../Libraries/LibCrypto/*/*.cpp") file(GLOB LIBTLS_SOURCES CONFIGURE_DEPENDS "../../Libraries/LibTLS/*.cpp") file(GLOB LIBTTF_SOURCES CONFIGURE_DEPENDS "../../Libraries/LibTTF/*.cpp") -file(GLOB SHELL_SOURCES CONFIGURE_DEPENDS "../../Shell/*.cpp") -file(GLOB SHELL_TESTS CONFIGURE_DEPENDS "../../Shell/Tests/*.sh") -list(REMOVE_ITEM SHELL_SOURCES ../../Shell/main.cpp) +file(GLOB SHELL_SOURCES CONFIGURE_DEPENDS "../../Userland/Shell/*.cpp") +file(GLOB SHELL_TESTS CONFIGURE_DEPENDS "../../Userland/Shell/Tests/*.sh") +list(REMOVE_ITEM SHELL_SOURCES ../../Userland/Shell/main.cpp) set(LAGOM_REGEX_SOURCES ${LIBREGEX_LIBC_SOURCES} ${LIBREGEX_SOURCES}) set(LAGOM_CORE_SOURCES ${AK_SOURCES} ${LIBCORE_SOURCES}) @@ -131,7 +131,7 @@ if (BUILD_LAGOM) target_link_libraries(disasm_lagom Lagom) target_link_libraries(disasm_lagom stdc++) - add_executable(shell_lagom ../../Shell/main.cpp) + add_executable(shell_lagom ../../Userland/Shell/main.cpp) set_target_properties(shell_lagom PROPERTIES OUTPUT_NAME shell) target_link_libraries(shell_lagom Lagom) target_link_libraries(shell_lagom stdc++) diff --git a/Meta/lint-missing-resources.sh b/Meta/lint-missing-resources.sh index 2c0a4e043cc..aa3ec2f8639 100755 --- a/Meta/lint-missing-resources.sh +++ b/Meta/lint-missing-resources.sh @@ -7,7 +7,7 @@ cd "$script_path/.." # The dollar symbol in sed's argument is for "end of line", not any shell variable. # shellcheck disable=SC2016 -grep -Pirh '(?