freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] autogen.sh: Only copy submodules if bui


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] autogen.sh: Only copy submodules if building from a git branch.
Date: Tue, 05 Oct 2021 17:47:40 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • autogen.sh
    ... ... @@ -182,17 +182,19 @@ copy_submodule_files ()
    182 182
       cp $DLG_SRC_DIR/* src/dlg
    
    183 183
     }
    
    184 184
     
    
    185
    -DLG_INC_DIR=subprojects/dlg/include/dlg
    
    186
    -DLG_SRC_DIR=subprojects/dlg/src/dlg
    
    185
    +if test -d ".git"; then
    
    186
    +  DLG_INC_DIR=subprojects/dlg/include/dlg
    
    187
    +  DLG_SRC_DIR=subprojects/dlg/src/dlg
    
    187 188
     
    
    188
    -if test -d "$DLG_INC_DIR"; then
    
    189
    -  :
    
    190
    -else
    
    191
    -  echo "Checking out submodule in \`subprojects/dlg':"
    
    192
    -  git submodule init
    
    193
    -  git submodule update
    
    194
    -fi
    
    189
    +  if test -d "$DLG_INC_DIR"; then
    
    190
    +    :
    
    191
    +  else
    
    192
    +    echo "Checking out submodule in \`subprojects/dlg':"
    
    193
    +    git submodule init
    
    194
    +    git submodule update
    
    195
    +  fi
    
    195 196
     
    
    196
    -copy_submodule_files
    
    197
    +  copy_submodule_files
    
    198
    +fi
    
    197 199
     
    
    198 200
     # EOF


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]