Moved for merge preparation.
[core.git] / contrib / patch.sh
diff --git a/contrib/patch.sh b/contrib/patch.sh
new file mode 100755 (executable)
index 0000000..5dbfe7d
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if test "$1" = ""; then
+       echo "Usage: $0 <patch>"
+       exit
+fi
+
+LIST=`find ??*/trunk/ -maxdepth 0 -type d | sort --unique`
+
+for entry in ${LIST}; do
+       echo "$0: Patching in ${entry} ..."
+       cd "${entry}"
+       patch -p0 < "../../$1"
+       cd -
+done