Commits

Shlomi Fish committed f810718

Add the diff-fiction-xml-screenplay-xml script.

It is used to run git diff on all the repositories of the stories.

  • Participants
  • Parent commits 6e5a8eb

Comments (0)

Files changed (1)

bin/diff-fiction-xml-and-screenplay-xml.bash

+#!/bin/bash
+
+# Example use is:
+#
+# bash bin/diff-fiction-xml-and-screenplay-xml.bash 2013-04-09 2013-04-26
+
+start_date="$1"
+shift
+end_date="$1"
+shift
+
+ls -d lib/fiction-xml/from-vcs/* lib/screenplay-xml/from-vcs/* |
+    grep -v PLACE |
+    (while read repo ; do
+        (
+            echo "==== Diff for $repo ===="
+            cd "$repo"
+            git diff updated-"$start_date"..updated-"$end_date" 2>&1 | cat
+        )
+    done
+    )