From a4db02673cbc126adf9092dce0e16c2adac1cd03 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 5 Dec 2014 17:35:03 -0800 Subject: [PATCH] Run git submodule commands in setup script --- setup | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup b/setup index 78246f8..78a9e82 100755 --- a/setup +++ b/setup @@ -14,6 +14,7 @@ import os import os.path import shutil import re +import subprocess # Install? (deletes existing files in $HOME). install = "--install" in sys.argv @@ -29,6 +30,15 @@ print("") if install: print("* Install mode: will delete files in $HOME and set up symlinks!") +# Set up the submodules first. +print("Initializing git submodules...") +os.chdir(basedir) +subprocess.call(["git", "submodule", "init"]) +subprocess.call(["git", "submodule", "update"]) +os.chdir(homedir) +print("Submodules updated!") +print("") + def crawl(folder): """Recursively crawl a folder. Directories will be created relative to $HOME, and files in those directories will be symlinked."""