update-common: run update-readmes for selected modules
authorTim-Philipp Müller <tim@centricular.net>
Sat, 20 Apr 2013 14:51:52 +0000 (15:51 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 22 Apr 2013 22:47:42 +0000 (23:47 +0100)
To keep things in sync.

update-common
update-readmes

index d48e9f4..30cf4ad 100755 (executable)
@@ -81,6 +81,15 @@ do
       *)
         ;;
     esac
+    # update README and MAINTAINERS for selected modules
+    case $module in
+      gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-ugly|gst-plugins-bad )
+        ./common/update-readmes --run-git-add
+        ;;
+      *)
+        ;;
+    esac
+    # and finally update the common submodule
     git add common
     git commit -m "Automatic update of common submodule
 
index b2fd9fd..4afe162 100755 (executable)
@@ -34,3 +34,7 @@ for f in $README_FILES ; do
    exit 1;
  }
 done
+
+if test x$1 = "x--run-git-add"; then
+  git add $README_FILES;
+fi