2
0
Artem V. Ageev 8 сар өмнө
parent
commit
893817458e
3 өөрчлөгдсөн 6 нэмэгдсэн , 2 устгасан
  1. 3 1
      make.ps1
  2. 3 1
      make.sh
  3. 0 0
      use/components.txt

+ 3 - 1
make.ps1

@@ -47,9 +47,11 @@ Function Build-Project {
         $env:PATH+=";$($VAR.Path)"
         $env:PATH+=";$($VAR.Path)"
         Get-Command $VAR.Cmd
         Get-Command $VAR.Cmd
     }
     }
-    If ( Test-Path -Path 'use\components.txt' ) {
+    If ( Test-Path -Path 'use' ) {
         & git submodule update --recursive --init | Out-Host
         & git submodule update --recursive --init | Out-Host
         & git submodule update --recursive --remote | Out-Host
         & git submodule update --recursive --remote | Out-Host
+    }
+    If ( Test-Path -Path 'use\components.txt' ) {
         Get-Content -Path 'use\components.txt' | ForEach-Object {
         Get-Content -Path 'use\components.txt' | ForEach-Object {
             If ((! (& lazbuild --verbose-pkgsearch $_)) &&
             If ((! (& lazbuild --verbose-pkgsearch $_)) &&
                 (! (& lazbuild --add-package $_)) &&
                 (! (& lazbuild --add-package $_)) &&

+ 3 - 1
make.sh

@@ -20,9 +20,11 @@ function priv_lazbuild
                 ;;
                 ;;
         esac
         esac
     fi
     fi
-    if [[ -f 'use/components.txt' ]]; then
+    if [[ -d 'use' ]]; then
         git submodule update --init --recursive
         git submodule update --init --recursive
         git submodule update --recursive --remote
         git submodule update --recursive --remote
+    fi
+    if [[ -f 'use/components.txt' ]]; then
         while read -r; do
         while read -r; do
             if [[ -n "${REPLY}" ]] &&
             if [[ -n "${REPLY}" ]] &&
                 ! (lazbuild --verbose-pkgsearch "${REPLY}") &&
                 ! (lazbuild --verbose-pkgsearch "${REPLY}") &&

+ 0 - 0
use/components.txt