]> dev.renevier.net Git - syj.git/blobdiff - scripts/init.sh
make installation process more simple
[syj.git] / scripts / init.sh
diff --git a/scripts/init.sh b/scripts/init.sh
new file mode 100755 (executable)
index 0000000..bbb8817
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+git submodule update --init
+
+git submodule -q foreach "
+    if ls -A $PWD/patches/\${name##*/} >/dev/null 2>&1; then
+        git checkout master
+        git am $PWD/patches/\${name##*/}/*
+    fi
+"
+
+sh scripts/updatezend.sh
+sh scripts/reset.postgres.sh -g