]> gitweb.fluxo.info Git - rhatto/apps.git/commitdiff
Inception script (2)
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Jun 2015 00:37:45 +0000 (21:37 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Jun 2015 00:37:45 +0000 (21:37 -0300)
inception [new file with mode: 0755]

diff --git a/inception b/inception
new file mode 100755 (executable)
index 0000000..558dd6a
--- /dev/null
+++ b/inception
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# The inception.
+#
+
+# Parameters
+BASENAME="`basename $0`"
+DIRNAME="`dirname $0`"
+
+# Setup
+(
+  cd $DIRNAME
+
+  echo "Initializing submodules..."
+  git submodule update --init
+  
+  echo "Cloning default dotfiles..."
+  ./metadot/metadot clone default
+
+  echo "Loading all dotfiles..."
+  ./metadot/metadot load --all
+)
+
+# Teardown
+echo "Done. Logout and login again to apply all changes."