diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-12 11:53:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-12 12:04:07 +0100 |
commit | c4e2fd8123b83a6b890b410741f1d416a1162fdb (patch) | |
tree | be0ae8ba44fec67223809237807597273c092282 | |
parent | 07c7e353722d880b565188dba9f81a0449baf80c (diff) | |
download | serenity-c4e2fd8123b83a6b890b410741f1d416a1162fdb.zip |
Shell: Move to Userland/Shell/
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | Meta/CLion/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Meta/Lagom/CMakeLists.txt | 8 | ||||
-rwxr-xr-x | Meta/lint-missing-resources.sh | 2 | ||||
-rwxr-xr-x | Meta/lint-shell-scripts.sh | 2 | ||||
-rw-r--r-- | Userland/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Userland/Shell/AST.cpp (renamed from Shell/AST.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/AST.h (renamed from Shell/AST.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Builtin.cpp (renamed from Shell/Builtin.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/CMakeLists.txt (renamed from Shell/CMakeLists.txt) | 0 | ||||
-rw-r--r-- | Userland/Shell/Execution.h (renamed from Shell/Execution.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Formatter.cpp (renamed from Shell/Formatter.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/Formatter.h (renamed from Shell/Formatter.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Forward.h (renamed from Shell/Forward.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Job.cpp (renamed from Shell/Job.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/Job.h (renamed from Shell/Job.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/NodeVisitor.cpp (renamed from Shell/NodeVisitor.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/NodeVisitor.h (renamed from Shell/NodeVisitor.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Parser.cpp (renamed from Shell/Parser.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/Parser.h (renamed from Shell/Parser.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Shell.cpp (renamed from Shell/Shell.cpp) | 0 | ||||
-rw-r--r-- | Userland/Shell/Shell.h (renamed from Shell/Shell.h) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/backgrounding.sh (renamed from Shell/Tests/backgrounding.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/brace-exp.sh (renamed from Shell/Tests/brace-exp.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/builtin-redir.sh (renamed from Shell/Tests/builtin-redir.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/control-structure-as-command.sh (renamed from Shell/Tests/control-structure-as-command.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/function.sh (renamed from Shell/Tests/function.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/if.sh (renamed from Shell/Tests/if.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/loop.sh (renamed from Shell/Tests/loop.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/match.sh (renamed from Shell/Tests/match.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/sigpipe.sh (renamed from Shell/Tests/sigpipe.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/special-vars.sh (renamed from Shell/Tests/special-vars.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/subshell.sh (renamed from Shell/Tests/subshell.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/Tests/valid.sh (renamed from Shell/Tests/valid.sh) | 0 | ||||
-rw-r--r-- | Userland/Shell/main.cpp (renamed from Shell/main.cpp) | 0 |
35 files changed, 11 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b721800bfa..54fe121b0d 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 82a60501bf..44175bf8f0 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 8685c5e19e..fe29f3ec6e 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 2c0a4e043c..aa3ec2f863 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 '(?<!file://)(?<!\.)(?<!})(?<!\()/(etc|res|usr|www)/' AK/ Applications/ Base Demos/ DevTools/ Documentation/ Games/ Kernel/ Libraries/ MenuApplets/ Services/ Shell/ Userland/ | \ +grep -Pirh '(?<!file://)(?<!\.)(?<!})(?<!\()/(etc|res|usr|www)/' AK/ Applications/ Base Demos/ DevTools/ Documentation/ Games/ Kernel/ Libraries/ MenuApplets/ Services/ Userland/ | \ sed -re 's,^.*["= `]/([^"%`: ]+[^"%`: /.])/?(["%`: .].*)?$,\1,' | \ sort -u | \ while read -r referenced_resource diff --git a/Meta/lint-shell-scripts.sh b/Meta/lint-shell-scripts.sh index c16c018d1d..da37d35d6d 100755 --- a/Meta/lint-shell-scripts.sh +++ b/Meta/lint-shell-scripts.sh @@ -11,7 +11,7 @@ if [ "$#" -eq "0" ]; then '*.sh' \ ':!:Toolchain' \ ':!:Ports' \ - ':!:Shell/Tests' + ':!:Userland/Shell/Tests' ) else files=() diff --git a/Userland/CMakeLists.txt b/Userland/CMakeLists.txt index 8bc84894ac..2551a923c0 100644 --- a/Userland/CMakeLists.txt +++ b/Userland/CMakeLists.txt @@ -48,5 +48,6 @@ target_link_libraries(tt LibPthread) target_link_libraries(grep LibRegex) target_link_libraries(gunzip LibCompress) -add_subdirectory(Tests) add_subdirectory(DynamicLoader) +add_subdirectory(Shell) +add_subdirectory(Tests) diff --git a/Shell/AST.cpp b/Userland/Shell/AST.cpp index 992452f503..992452f503 100644 --- a/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp diff --git a/Shell/AST.h b/Userland/Shell/AST.h index 713f604340..713f604340 100644 --- a/Shell/AST.h +++ b/Userland/Shell/AST.h diff --git a/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index d3a48b5089..d3a48b5089 100644 --- a/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp diff --git a/Shell/CMakeLists.txt b/Userland/Shell/CMakeLists.txt index 706bc5eae1..706bc5eae1 100644 --- a/Shell/CMakeLists.txt +++ b/Userland/Shell/CMakeLists.txt diff --git a/Shell/Execution.h b/Userland/Shell/Execution.h index 2d3bf0d12a..2d3bf0d12a 100644 --- a/Shell/Execution.h +++ b/Userland/Shell/Execution.h diff --git a/Shell/Formatter.cpp b/Userland/Shell/Formatter.cpp index e12b7b9551..e12b7b9551 100644 --- a/Shell/Formatter.cpp +++ b/Userland/Shell/Formatter.cpp diff --git a/Shell/Formatter.h b/Userland/Shell/Formatter.h index a4e0318b8c..a4e0318b8c 100644 --- a/Shell/Formatter.h +++ b/Userland/Shell/Formatter.h diff --git a/Shell/Forward.h b/Userland/Shell/Forward.h index b30448da52..b30448da52 100644 --- a/Shell/Forward.h +++ b/Userland/Shell/Forward.h diff --git a/Shell/Job.cpp b/Userland/Shell/Job.cpp index de662033fb..de662033fb 100644 --- a/Shell/Job.cpp +++ b/Userland/Shell/Job.cpp diff --git a/Shell/Job.h b/Userland/Shell/Job.h index 1be90d3bf7..1be90d3bf7 100644 --- a/Shell/Job.h +++ b/Userland/Shell/Job.h diff --git a/Shell/NodeVisitor.cpp b/Userland/Shell/NodeVisitor.cpp index af55be40d1..af55be40d1 100644 --- a/Shell/NodeVisitor.cpp +++ b/Userland/Shell/NodeVisitor.cpp diff --git a/Shell/NodeVisitor.h b/Userland/Shell/NodeVisitor.h index 4f08c92721..4f08c92721 100644 --- a/Shell/NodeVisitor.h +++ b/Userland/Shell/NodeVisitor.h diff --git a/Shell/Parser.cpp b/Userland/Shell/Parser.cpp index 993b6df478..993b6df478 100644 --- a/Shell/Parser.cpp +++ b/Userland/Shell/Parser.cpp diff --git a/Shell/Parser.h b/Userland/Shell/Parser.h index c0d92e3a55..c0d92e3a55 100644 --- a/Shell/Parser.h +++ b/Userland/Shell/Parser.h diff --git a/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index 5be7baea2d..5be7baea2d 100644 --- a/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp diff --git a/Shell/Shell.h b/Userland/Shell/Shell.h index 7a357ac870..7a357ac870 100644 --- a/Shell/Shell.h +++ b/Userland/Shell/Shell.h diff --git a/Shell/Tests/backgrounding.sh b/Userland/Shell/Tests/backgrounding.sh index ca300bdaef..ca300bdaef 100644 --- a/Shell/Tests/backgrounding.sh +++ b/Userland/Shell/Tests/backgrounding.sh diff --git a/Shell/Tests/brace-exp.sh b/Userland/Shell/Tests/brace-exp.sh index e960c66d68..e960c66d68 100644 --- a/Shell/Tests/brace-exp.sh +++ b/Userland/Shell/Tests/brace-exp.sh diff --git a/Shell/Tests/builtin-redir.sh b/Userland/Shell/Tests/builtin-redir.sh index ba9f1f15e2..ba9f1f15e2 100644 --- a/Shell/Tests/builtin-redir.sh +++ b/Userland/Shell/Tests/builtin-redir.sh diff --git a/Shell/Tests/control-structure-as-command.sh b/Userland/Shell/Tests/control-structure-as-command.sh index 8bd31f01af..8bd31f01af 100644 --- a/Shell/Tests/control-structure-as-command.sh +++ b/Userland/Shell/Tests/control-structure-as-command.sh diff --git a/Shell/Tests/function.sh b/Userland/Shell/Tests/function.sh index b9c23308ea..b9c23308ea 100644 --- a/Shell/Tests/function.sh +++ b/Userland/Shell/Tests/function.sh diff --git a/Shell/Tests/if.sh b/Userland/Shell/Tests/if.sh index 598a9471bc..598a9471bc 100644 --- a/Shell/Tests/if.sh +++ b/Userland/Shell/Tests/if.sh diff --git a/Shell/Tests/loop.sh b/Userland/Shell/Tests/loop.sh index e4a985db87..e4a985db87 100644 --- a/Shell/Tests/loop.sh +++ b/Userland/Shell/Tests/loop.sh diff --git a/Shell/Tests/match.sh b/Userland/Shell/Tests/match.sh index 1f1809166c..1f1809166c 100644 --- a/Shell/Tests/match.sh +++ b/Userland/Shell/Tests/match.sh diff --git a/Shell/Tests/sigpipe.sh b/Userland/Shell/Tests/sigpipe.sh index 1866b506ba..1866b506ba 100644 --- a/Shell/Tests/sigpipe.sh +++ b/Userland/Shell/Tests/sigpipe.sh diff --git a/Shell/Tests/special-vars.sh b/Userland/Shell/Tests/special-vars.sh index 597cc346c3..597cc346c3 100644 --- a/Shell/Tests/special-vars.sh +++ b/Userland/Shell/Tests/special-vars.sh diff --git a/Shell/Tests/subshell.sh b/Userland/Shell/Tests/subshell.sh index ac8331a7de..ac8331a7de 100644 --- a/Shell/Tests/subshell.sh +++ b/Userland/Shell/Tests/subshell.sh diff --git a/Shell/Tests/valid.sh b/Userland/Shell/Tests/valid.sh index 872cc86cdf..872cc86cdf 100644 --- a/Shell/Tests/valid.sh +++ b/Userland/Shell/Tests/valid.sh diff --git a/Shell/main.cpp b/Userland/Shell/main.cpp index 3616919844..3616919844 100644 --- a/Shell/main.cpp +++ b/Userland/Shell/main.cpp |