Преглед на файлове

Userland: Move command-line utilities to Userland/Utilities/

Andreas Kling преди 4 години
родител
ревизия
ececac65c2
променени са 100 файла, в които са добавени 58 реда и са изтрити 58 реда
  1. 8 8
      Meta/Lagom/CMakeLists.txt
  2. 1 50
      Userland/CMakeLists.txt
  3. 49 0
      Userland/Utilities/CMakeLists.txt
  4. 0 0
      Userland/Utilities/adjtime.cpp
  5. 0 0
      Userland/Utilities/allocate.cpp
  6. 0 0
      Userland/Utilities/aplay.cpp
  7. 0 0
      Userland/Utilities/arp.cpp
  8. 0 0
      Userland/Utilities/avol.cpp
  9. 0 0
      Userland/Utilities/base64.cpp
  10. 0 0
      Userland/Utilities/basename.cpp
  11. 0 0
      Userland/Utilities/beep.cpp
  12. 0 0
      Userland/Utilities/cal.cpp
  13. 0 0
      Userland/Utilities/cat.cpp
  14. 0 0
      Userland/Utilities/checksum.cpp
  15. 0 0
      Userland/Utilities/chgrp.cpp
  16. 0 0
      Userland/Utilities/chmod.cpp
  17. 0 0
      Userland/Utilities/chown.cpp
  18. 0 0
      Userland/Utilities/chroot.cpp
  19. 0 0
      Userland/Utilities/clear.cpp
  20. 0 0
      Userland/Utilities/copy.cpp
  21. 0 0
      Userland/Utilities/cp.cpp
  22. 0 0
      Userland/Utilities/crash.cpp
  23. 0 0
      Userland/Utilities/cut.cpp
  24. 0 0
      Userland/Utilities/date.cpp
  25. 0 0
      Userland/Utilities/ddate.cpp
  26. 0 0
      Userland/Utilities/df.cpp
  27. 0 0
      Userland/Utilities/dirname.cpp
  28. 0 0
      Userland/Utilities/disasm.cpp
  29. 0 0
      Userland/Utilities/disk_benchmark.cpp
  30. 0 0
      Userland/Utilities/dmesg.cpp
  31. 0 0
      Userland/Utilities/du.cpp
  32. 0 0
      Userland/Utilities/echo.cpp
  33. 0 0
      Userland/Utilities/env.cpp
  34. 0 0
      Userland/Utilities/expr.cpp
  35. 0 0
      Userland/Utilities/false.cpp
  36. 0 0
      Userland/Utilities/fgrep.cpp
  37. 0 0
      Userland/Utilities/find.cpp
  38. 0 0
      Userland/Utilities/flock.cpp
  39. 0 0
      Userland/Utilities/functrace.cpp
  40. 0 0
      Userland/Utilities/gml-format.cpp
  41. 0 0
      Userland/Utilities/grep.cpp
  42. 0 0
      Userland/Utilities/gron.cpp
  43. 0 0
      Userland/Utilities/gunzip.cpp
  44. 0 0
      Userland/Utilities/head.cpp
  45. 0 0
      Userland/Utilities/hexdump.cpp
  46. 0 0
      Userland/Utilities/host.cpp
  47. 0 0
      Userland/Utilities/hostname.cpp
  48. 0 0
      Userland/Utilities/html.cpp
  49. 0 0
      Userland/Utilities/id.cpp
  50. 0 0
      Userland/Utilities/ifconfig.cpp
  51. 0 0
      Userland/Utilities/ini.cpp
  52. 0 0
      Userland/Utilities/jp.cpp
  53. 0 0
      Userland/Utilities/js.cpp
  54. 0 0
      Userland/Utilities/keymap.cpp
  55. 0 0
      Userland/Utilities/kill.cpp
  56. 0 0
      Userland/Utilities/killall.cpp
  57. 0 0
      Userland/Utilities/ln.cpp
  58. 0 0
      Userland/Utilities/ls.cpp
  59. 0 0
      Userland/Utilities/lsirq.cpp
  60. 0 0
      Userland/Utilities/lsof.cpp
  61. 0 0
      Userland/Utilities/lspci.cpp
  62. 0 0
      Userland/Utilities/man.cpp
  63. 0 0
      Userland/Utilities/md.cpp
  64. 0 0
      Userland/Utilities/misbehaving-application.cpp
  65. 0 0
      Userland/Utilities/mkdir.cpp
  66. 0 0
      Userland/Utilities/mkfifo.cpp
  67. 0 0
      Userland/Utilities/mknod.cpp
  68. 0 0
      Userland/Utilities/modload.cpp
  69. 0 0
      Userland/Utilities/modunload.cpp
  70. 0 0
      Userland/Utilities/more.cpp
  71. 0 0
      Userland/Utilities/mount.cpp
  72. 0 0
      Userland/Utilities/mv.cpp
  73. 0 0
      Userland/Utilities/nc.cpp
  74. 0 0
      Userland/Utilities/nl.cpp
  75. 0 0
      Userland/Utilities/notify.cpp
  76. 0 0
      Userland/Utilities/ntpquery.cpp
  77. 0 0
      Userland/Utilities/open.cpp
  78. 0 0
      Userland/Utilities/pape.cpp
  79. 0 0
      Userland/Utilities/passwd.cpp
  80. 0 0
      Userland/Utilities/paste.cpp
  81. 0 0
      Userland/Utilities/pidof.cpp
  82. 0 0
      Userland/Utilities/ping.cpp
  83. 0 0
      Userland/Utilities/pmap.cpp
  84. 0 0
      Userland/Utilities/printf.cpp
  85. 0 0
      Userland/Utilities/pro.cpp
  86. 0 0
      Userland/Utilities/profile.cpp
  87. 0 0
      Userland/Utilities/ps.cpp
  88. 0 0
      Userland/Utilities/purge.cpp
  89. 0 0
      Userland/Utilities/readelf.cpp
  90. 0 0
      Userland/Utilities/readlink.cpp
  91. 0 0
      Userland/Utilities/realpath.cpp
  92. 0 0
      Userland/Utilities/reboot.cpp
  93. 0 0
      Userland/Utilities/rm.cpp
  94. 0 0
      Userland/Utilities/rmdir.cpp
  95. 0 0
      Userland/Utilities/seq.cpp
  96. 0 0
      Userland/Utilities/shutdown.cpp
  97. 0 0
      Userland/Utilities/sleep.cpp
  98. 0 0
      Userland/Utilities/sort.cpp
  99. 0 0
      Userland/Utilities/stat.cpp
  100. 0 0
      Userland/Utilities/strace.cpp

+ 8 - 8
Meta/Lagom/CMakeLists.txt

@@ -91,27 +91,27 @@ if (BUILD_LAGOM)
         target_link_libraries(TestJson Lagom)
         target_link_libraries(TestJson stdc++)
 
-        add_executable(adjtime_lagom ../../Userland/adjtime.cpp)
+        add_executable(adjtime_lagom ../../Userland/Utilities/adjtime.cpp)
         set_target_properties(adjtime_lagom PROPERTIES OUTPUT_NAME adjtime)
         target_link_libraries(adjtime_lagom Lagom)
 
-        add_executable(js_lagom ../../Userland/js.cpp)
+        add_executable(js_lagom ../../Userland/Utilities/js.cpp)
         set_target_properties(js_lagom PROPERTIES OUTPUT_NAME js)
         target_link_libraries(js_lagom Lagom)
         target_link_libraries(js_lagom stdc++)
         target_link_libraries(js_lagom pthread)
 
-        add_executable(ntpquery_lagom ../../Userland/ntpquery.cpp)
+        add_executable(ntpquery_lagom ../../Userland/Utilities/ntpquery.cpp)
         set_target_properties(ntpquery_lagom PROPERTIES OUTPUT_NAME ntpquery)
         target_link_libraries(ntpquery_lagom Lagom)
 
-        add_executable(test-js_lagom ../../Userland/test-js.cpp)
+        add_executable(test-js_lagom ../../Userland/Utilities/test-js.cpp)
         set_target_properties(test-js_lagom PROPERTIES OUTPUT_NAME test-js)
         target_link_libraries(test-js_lagom Lagom)
         target_link_libraries(test-js_lagom stdc++)
         target_link_libraries(test-js_lagom pthread)
 
-        add_executable(test-crypto_lagom ../../Userland/test-crypto.cpp)
+        add_executable(test-crypto_lagom ../../Userland/Utilities/test-crypto.cpp)
         set_target_properties(test-crypto_lagom PROPERTIES OUTPUT_NAME test-crypto)
         target_link_libraries(test-crypto_lagom Lagom)
         target_link_libraries(test-crypto_lagom stdc++)
@@ -121,12 +121,12 @@ if (BUILD_LAGOM)
             WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
         )
 
-        add_executable(test-compress_lagom ../../Userland/test-compress.cpp)
+        add_executable(test-compress_lagom ../../Userland/Utilities/test-compress.cpp)
         set_target_properties(test-compress_lagom PROPERTIES OUTPUT_NAME test-compress)
         target_link_libraries(test-compress_lagom Lagom)
         target_link_libraries(test-compress_lagom stdc++)
 
-        add_executable(disasm_lagom ../../Userland/disasm.cpp)
+        add_executable(disasm_lagom ../../Userland/Utilities/disasm.cpp)
         set_target_properties(disasm_lagom PROPERTIES OUTPUT_NAME disasm)
         target_link_libraries(disasm_lagom Lagom)
         target_link_libraries(disasm_lagom stdc++)
@@ -137,7 +137,7 @@ if (BUILD_LAGOM)
         target_link_libraries(shell_lagom stdc++)
         target_link_libraries(shell_lagom pthread)
 
-        add_executable(gml-format_lagom ../../Userland/gml-format.cpp)
+        add_executable(gml-format_lagom ../../Userland/Utilities/gml-format.cpp)
         set_target_properties(gml-format_lagom PROPERTIES OUTPUT_NAME gml-format)
         target_link_libraries(gml-format_lagom Lagom)
         target_link_libraries(gml-format_lagom stdc++)

+ 1 - 50
Userland/CMakeLists.txt

@@ -1,53 +1,4 @@
-file(GLOB CMD_SOURCES  CONFIGURE_DEPENDS "*.cpp")
-list(APPEND SPECIAL_TARGETS "test" "install")
-
-foreach(CMD_SRC ${CMD_SOURCES})
-    get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE)
-    if (CMD_NAME IN_LIST SPECIAL_TARGETS)
-        add_executable("${CMD_NAME}-bin" ${CMD_SRC})
-        target_link_libraries("${CMD_NAME}-bin" LibCore)
-        install(TARGETS "${CMD_NAME}-bin" RUNTIME DESTINATION bin)
-        install(CODE "execute_process(COMMAND mv ${CMD_NAME}-bin ${CMD_NAME} WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)")
-    else ()
-        add_executable(${CMD_NAME} ${CMD_SRC})
-        target_link_libraries(${CMD_NAME} LibCore)
-        install(TARGETS ${CMD_NAME} RUNTIME DESTINATION bin)
-    endif()
-endforeach()
-
-target_link_libraries(aplay LibAudio)
-target_link_libraries(avol LibAudio)
-target_link_libraries(checksum LibCrypto)
-target_link_libraries(copy LibGUI)
-target_link_libraries(disasm LibX86)
-target_link_libraries(expr LibRegex)
-target_link_libraries(functrace LibDebug LibX86)
-target_link_libraries(gml-format LibGUI)
-target_link_libraries(html LibWeb)
-target_link_libraries(js LibJS LibLine)
-target_link_libraries(keymap LibKeyboard)
-target_link_libraries(lspci LibPCIDB)
-target_link_libraries(man LibMarkdown)
-target_link_libraries(md LibMarkdown)
-target_link_libraries(misbehaving-application LibCore)
-target_link_libraries(notify LibGUI)
-target_link_libraries(open LibDesktop)
-target_link_libraries(pape LibGUI)
-target_link_libraries(passwd LibCrypt)
-target_link_libraries(paste LibGUI)
-target_link_libraries(pro LibProtocol)
-target_link_libraries(su LibCrypt)
-target_link_libraries(tar LibTar LibCompress)
-target_link_libraries(test-crypto LibCrypto LibTLS LibLine)
-target_link_libraries(test-compress LibCompress)
-target_link_libraries(test-gfx-font LibGUI LibCore)
-target_link_libraries(test-js LibJS LibLine LibCore)
-target_link_libraries(test-pthread LibThread)
-target_link_libraries(test-web LibWeb)
-target_link_libraries(tt LibPthread)
-target_link_libraries(grep LibRegex)
-target_link_libraries(gunzip LibCompress)
-
 add_subdirectory(DynamicLoader)
 add_subdirectory(Shell)
 add_subdirectory(Tests)
+add_subdirectory(Utilities)

+ 49 - 0
Userland/Utilities/CMakeLists.txt

@@ -0,0 +1,49 @@
+file(GLOB CMD_SOURCES  CONFIGURE_DEPENDS "*.cpp")
+list(APPEND SPECIAL_TARGETS "test" "install")
+
+foreach(CMD_SRC ${CMD_SOURCES})
+    get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE)
+    if (CMD_NAME IN_LIST SPECIAL_TARGETS)
+        add_executable("${CMD_NAME}-bin" ${CMD_SRC})
+        target_link_libraries("${CMD_NAME}-bin" LibCore)
+        install(TARGETS "${CMD_NAME}-bin" RUNTIME DESTINATION bin)
+        install(CODE "execute_process(COMMAND mv ${CMD_NAME}-bin ${CMD_NAME} WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)")
+    else ()
+        add_executable(${CMD_NAME} ${CMD_SRC})
+        target_link_libraries(${CMD_NAME} LibCore)
+        install(TARGETS ${CMD_NAME} RUNTIME DESTINATION bin)
+    endif()
+endforeach()
+
+target_link_libraries(aplay LibAudio)
+target_link_libraries(avol LibAudio)
+target_link_libraries(checksum LibCrypto)
+target_link_libraries(copy LibGUI)
+target_link_libraries(disasm LibX86)
+target_link_libraries(expr LibRegex)
+target_link_libraries(functrace LibDebug LibX86)
+target_link_libraries(gml-format LibGUI)
+target_link_libraries(html LibWeb)
+target_link_libraries(js LibJS LibLine)
+target_link_libraries(keymap LibKeyboard)
+target_link_libraries(lspci LibPCIDB)
+target_link_libraries(man LibMarkdown)
+target_link_libraries(md LibMarkdown)
+target_link_libraries(misbehaving-application LibCore)
+target_link_libraries(notify LibGUI)
+target_link_libraries(open LibDesktop)
+target_link_libraries(pape LibGUI)
+target_link_libraries(passwd LibCrypt)
+target_link_libraries(paste LibGUI)
+target_link_libraries(pro LibProtocol)
+target_link_libraries(su LibCrypt)
+target_link_libraries(tar LibTar LibCompress)
+target_link_libraries(test-crypto LibCrypto LibTLS LibLine)
+target_link_libraries(test-compress LibCompress)
+target_link_libraries(test-gfx-font LibGUI LibCore)
+target_link_libraries(test-js LibJS LibLine LibCore)
+target_link_libraries(test-pthread LibThread)
+target_link_libraries(test-web LibWeb)
+target_link_libraries(tt LibPthread)
+target_link_libraries(grep LibRegex)
+target_link_libraries(gunzip LibCompress)

+ 0 - 0
Userland/adjtime.cpp → Userland/Utilities/adjtime.cpp


+ 0 - 0
Userland/allocate.cpp → Userland/Utilities/allocate.cpp


+ 0 - 0
Userland/aplay.cpp → Userland/Utilities/aplay.cpp


+ 0 - 0
Userland/arp.cpp → Userland/Utilities/arp.cpp


+ 0 - 0
Userland/avol.cpp → Userland/Utilities/avol.cpp


+ 0 - 0
Userland/base64.cpp → Userland/Utilities/base64.cpp


+ 0 - 0
Userland/basename.cpp → Userland/Utilities/basename.cpp


+ 0 - 0
Userland/beep.cpp → Userland/Utilities/beep.cpp


+ 0 - 0
Userland/cal.cpp → Userland/Utilities/cal.cpp


+ 0 - 0
Userland/cat.cpp → Userland/Utilities/cat.cpp


+ 0 - 0
Userland/checksum.cpp → Userland/Utilities/checksum.cpp


+ 0 - 0
Userland/chgrp.cpp → Userland/Utilities/chgrp.cpp


+ 0 - 0
Userland/chmod.cpp → Userland/Utilities/chmod.cpp


+ 0 - 0
Userland/chown.cpp → Userland/Utilities/chown.cpp


+ 0 - 0
Userland/chroot.cpp → Userland/Utilities/chroot.cpp


+ 0 - 0
Userland/clear.cpp → Userland/Utilities/clear.cpp


+ 0 - 0
Userland/copy.cpp → Userland/Utilities/copy.cpp


+ 0 - 0
Userland/cp.cpp → Userland/Utilities/cp.cpp


+ 0 - 0
Userland/crash.cpp → Userland/Utilities/crash.cpp


+ 0 - 0
Userland/cut.cpp → Userland/Utilities/cut.cpp


+ 0 - 0
Userland/date.cpp → Userland/Utilities/date.cpp


+ 0 - 0
Userland/ddate.cpp → Userland/Utilities/ddate.cpp


+ 0 - 0
Userland/df.cpp → Userland/Utilities/df.cpp


+ 0 - 0
Userland/dirname.cpp → Userland/Utilities/dirname.cpp


+ 0 - 0
Userland/disasm.cpp → Userland/Utilities/disasm.cpp


+ 0 - 0
Userland/disk_benchmark.cpp → Userland/Utilities/disk_benchmark.cpp


+ 0 - 0
Userland/dmesg.cpp → Userland/Utilities/dmesg.cpp


+ 0 - 0
Userland/du.cpp → Userland/Utilities/du.cpp


+ 0 - 0
Userland/echo.cpp → Userland/Utilities/echo.cpp


+ 0 - 0
Userland/env.cpp → Userland/Utilities/env.cpp


+ 0 - 0
Userland/expr.cpp → Userland/Utilities/expr.cpp


+ 0 - 0
Userland/false.cpp → Userland/Utilities/false.cpp


+ 0 - 0
Userland/fgrep.cpp → Userland/Utilities/fgrep.cpp


+ 0 - 0
Userland/find.cpp → Userland/Utilities/find.cpp


+ 0 - 0
Userland/flock.cpp → Userland/Utilities/flock.cpp


+ 0 - 0
Userland/functrace.cpp → Userland/Utilities/functrace.cpp


+ 0 - 0
Userland/gml-format.cpp → Userland/Utilities/gml-format.cpp


+ 0 - 0
Userland/grep.cpp → Userland/Utilities/grep.cpp


+ 0 - 0
Userland/gron.cpp → Userland/Utilities/gron.cpp


+ 0 - 0
Userland/gunzip.cpp → Userland/Utilities/gunzip.cpp


+ 0 - 0
Userland/head.cpp → Userland/Utilities/head.cpp


+ 0 - 0
Userland/hexdump.cpp → Userland/Utilities/hexdump.cpp


+ 0 - 0
Userland/host.cpp → Userland/Utilities/host.cpp


+ 0 - 0
Userland/hostname.cpp → Userland/Utilities/hostname.cpp


+ 0 - 0
Userland/html.cpp → Userland/Utilities/html.cpp


+ 0 - 0
Userland/id.cpp → Userland/Utilities/id.cpp


+ 0 - 0
Userland/ifconfig.cpp → Userland/Utilities/ifconfig.cpp


+ 0 - 0
Userland/ini.cpp → Userland/Utilities/ini.cpp


+ 0 - 0
Userland/jp.cpp → Userland/Utilities/jp.cpp


+ 0 - 0
Userland/js.cpp → Userland/Utilities/js.cpp


+ 0 - 0
Userland/keymap.cpp → Userland/Utilities/keymap.cpp


+ 0 - 0
Userland/kill.cpp → Userland/Utilities/kill.cpp


+ 0 - 0
Userland/killall.cpp → Userland/Utilities/killall.cpp


+ 0 - 0
Userland/ln.cpp → Userland/Utilities/ln.cpp


+ 0 - 0
Userland/ls.cpp → Userland/Utilities/ls.cpp


+ 0 - 0
Userland/lsirq.cpp → Userland/Utilities/lsirq.cpp


+ 0 - 0
Userland/lsof.cpp → Userland/Utilities/lsof.cpp


+ 0 - 0
Userland/lspci.cpp → Userland/Utilities/lspci.cpp


+ 0 - 0
Userland/man.cpp → Userland/Utilities/man.cpp


+ 0 - 0
Userland/md.cpp → Userland/Utilities/md.cpp


+ 0 - 0
Userland/misbehaving-application.cpp → Userland/Utilities/misbehaving-application.cpp


+ 0 - 0
Userland/mkdir.cpp → Userland/Utilities/mkdir.cpp


+ 0 - 0
Userland/mkfifo.cpp → Userland/Utilities/mkfifo.cpp


+ 0 - 0
Userland/mknod.cpp → Userland/Utilities/mknod.cpp


+ 0 - 0
Userland/modload.cpp → Userland/Utilities/modload.cpp


+ 0 - 0
Userland/modunload.cpp → Userland/Utilities/modunload.cpp


+ 0 - 0
Userland/more.cpp → Userland/Utilities/more.cpp


+ 0 - 0
Userland/mount.cpp → Userland/Utilities/mount.cpp


+ 0 - 0
Userland/mv.cpp → Userland/Utilities/mv.cpp


+ 0 - 0
Userland/nc.cpp → Userland/Utilities/nc.cpp


+ 0 - 0
Userland/nl.cpp → Userland/Utilities/nl.cpp


+ 0 - 0
Userland/notify.cpp → Userland/Utilities/notify.cpp


+ 0 - 0
Userland/ntpquery.cpp → Userland/Utilities/ntpquery.cpp


+ 0 - 0
Userland/open.cpp → Userland/Utilities/open.cpp


+ 0 - 0
Userland/pape.cpp → Userland/Utilities/pape.cpp


+ 0 - 0
Userland/passwd.cpp → Userland/Utilities/passwd.cpp


+ 0 - 0
Userland/paste.cpp → Userland/Utilities/paste.cpp


+ 0 - 0
Userland/pidof.cpp → Userland/Utilities/pidof.cpp


+ 0 - 0
Userland/ping.cpp → Userland/Utilities/ping.cpp


+ 0 - 0
Userland/pmap.cpp → Userland/Utilities/pmap.cpp


+ 0 - 0
Userland/printf.cpp → Userland/Utilities/printf.cpp


+ 0 - 0
Userland/pro.cpp → Userland/Utilities/pro.cpp


+ 0 - 0
Userland/profile.cpp → Userland/Utilities/profile.cpp


+ 0 - 0
Userland/ps.cpp → Userland/Utilities/ps.cpp


+ 0 - 0
Userland/purge.cpp → Userland/Utilities/purge.cpp


+ 0 - 0
Userland/readelf.cpp → Userland/Utilities/readelf.cpp


+ 0 - 0
Userland/readlink.cpp → Userland/Utilities/readlink.cpp


+ 0 - 0
Userland/realpath.cpp → Userland/Utilities/realpath.cpp


+ 0 - 0
Userland/reboot.cpp → Userland/Utilities/reboot.cpp


+ 0 - 0
Userland/rm.cpp → Userland/Utilities/rm.cpp


+ 0 - 0
Userland/rmdir.cpp → Userland/Utilities/rmdir.cpp


+ 0 - 0
Userland/seq.cpp → Userland/Utilities/seq.cpp


+ 0 - 0
Userland/shutdown.cpp → Userland/Utilities/shutdown.cpp


+ 0 - 0
Userland/sleep.cpp → Userland/Utilities/sleep.cpp


+ 0 - 0
Userland/sort.cpp → Userland/Utilities/sort.cpp


+ 0 - 0
Userland/stat.cpp → Userland/Utilities/stat.cpp


+ 0 - 0
Userland/strace.cpp → Userland/Utilities/strace.cpp


Някои файлове не бяха показани, защото твърде много файлове са промени