]> git.phdru.name Git - git-scripts.git/commitdiff
Feat(reinit): Split `reinit-all`
authorOleg Broytman <phd@phdru.name>
Fri, 17 Apr 2020 11:32:15 +0000 (14:32 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 17 Apr 2020 11:32:15 +0000 (14:32 +0300)
reinit-all [deleted file]
reinit-recursive [new file with mode: 0755]
reinit-repos [new file with mode: 0755]

diff --git a/reinit-all b/reinit-all
deleted file mode 100755 (executable)
index 8e825ab..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#! /bin/sh
-exec "`dirname \"$0\"`"/do-all git init
diff --git a/reinit-recursive b/reinit-recursive
new file mode 100755 (executable)
index 0000000..eddb651
--- /dev/null
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+prog_dir="`dirname \"$0\"`" &&
+exec "$prog_dir"/run-recursive git init
diff --git a/reinit-repos b/reinit-repos
new file mode 100755 (executable)
index 0000000..575bf94
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+
+exec "$prog_dir"/run-repos "$prog_dir"/reinit-recursive