simplify submodule management
authorDylan Lloyd <dylan@disinclined.org>
Tue, 12 Sep 2023 19:57:53 +0000 (15:57 -0400)
committerDylan Lloyd <dylan@disinclined.org>
Tue, 12 Sep 2023 19:57:53 +0000 (15:57 -0400)
.gitmodules
Makefile
_config.yml
mud [deleted submodule]
mudd [new submodule]
resume [new submodule]
update-submodules.sh [new file with mode: 0755]

index e9f38f6..f9ecace 100644 (file)
@@ -1,8 +1,8 @@
 [submodule "cellular-automata"]
        path = cellular-automata
        url = git@disinclined.org:cellular-automaton.git
-[submodule "mud"]
-       path = mud
+[submodule "mudd"]
+       path = mudd
        url = git@disinclined.org:mudd.git
 [submodule "minimax"]
        path = minimax
@@ -10,3 +10,6 @@
 [submodule "git"]
        path = git
        url = git@disinclined.org:gitweb
+[submodule "resume"]
+       path = resume
+       url = git@disinclined.org:resume
index bd6c107..325500c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
-default: site
+default: build
+all: update build
 
-hostname = disinclined.org
 sitename = disinclined.org
+hostname = disinclined.org
+
+update:
+       ./update-submodules.sh
 
 build site:
-       git submodule update
-       cp ~/src/resume/resume.{pdf,html} .
+       cp resume/resume.{pdf,html} .
        bundle exec jekyll build -d $(sitename) --trace
 
 serve:
@@ -20,6 +23,3 @@ deploy:
        ssh -t $(hostname) tar -xf $(sitename).tgz
        ssh -t $(hostname) sudo rsync -a ~dylan/$(sitename) /srv/http/
        rm $(sitename).tgz
-
-fix-git-permissions:
-       ssh -t $(hostname) sudo -u git /var/lib/gitolite3/update-permissions
index 38d3751..1053f22 100644 (file)
@@ -17,3 +17,7 @@ jekyll-archives:
 defaults:
     values:
       layout: default
+
+exclude:
+  - resume/
+  - update-submodules.sh
diff --git a/mud b/mud
deleted file mode 160000 (submodule)
index 19bbaf5..0000000
--- a/mud
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 19bbaf5a8dee8338c686751ddfe9abb9a12148c3
diff --git a/mudd b/mudd
new file mode 160000 (submodule)
index 0000000..19bbaf5
--- /dev/null
+++ b/mudd
@@ -0,0 +1 @@
+Subproject commit 19bbaf5a8dee8338c686751ddfe9abb9a12148c3
diff --git a/resume b/resume
new file mode 160000 (submodule)
index 0000000..404fa38
--- /dev/null
+++ b/resume
@@ -0,0 +1 @@
+Subproject commit 404fa38d7df2ef00644f47826e784de543541d67
diff --git a/update-submodules.sh b/update-submodules.sh
new file mode 100755 (executable)
index 0000000..cff896c
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+
+eval "$(ssh-agent -s)"
+ssh-add ~/.ssh/id_rsa
+git submodule update --remote
+eval "$(ssh-agent -k)"