]> granicus.if.org Git - fortune-mod/commitdiff
Refactoring / code cleanup.
authorShlomi Fish <shlomif@shlomifish.org>
Mon, 27 Feb 2023 14:15:36 +0000 (16:15 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Mon, 27 Feb 2023 14:15:36 +0000 (16:15 +0200)
See:

* https://en.wikipedia.org/wiki/Code_refactoring

* https://www.refactoring.com/

* https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/

Some small optimisations may have slipped in as well.

fortune-mod/cmake/rinutils_bootstrap.cmake

index 6dc92daea7d15bce729f59a87ca789a89e0b34c4..a9544c3fc6972081c15f2432717817eb77f98d14 100644 (file)
@@ -10,11 +10,13 @@ MACRO(RINUTILS_SET_UP_FLAGS)
             COMMAND "git" "clone" "-b" "${rinutils_git_tag}" "https://github.com/shlomif/rinutils.git" "${rinutils_dir}"
             WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
         )
-#       ELSE ()
-#           EXECUTE_PROCESS(
-#               COMMAND "git" "submodule" "update" "--init"
-#               WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
-#           )
+    ELSE ()
+        IF ()
+            EXECUTE_PROCESS(
+                COMMAND "git" "submodule" "update" "--init"
+                WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+            )
+        ENDIF ()
     ENDIF ()
 
     find_package(Rinutils QUIET)