X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=contrib%2Fpatch.sh;fp=contrib%2Fpatch.sh;h=5dbfe7dbd361d1a3feb64035970a0bbf3a3b0e5a;hp=0000000000000000000000000000000000000000;hb=d2d298a1fcc6217a93e7d67f0de7b976d5bfd5e7;hpb=421d8c20ff4014ddae23e61b6654666b039bf00d diff --git a/contrib/patch.sh b/contrib/patch.sh new file mode 100755 index 00000000..5dbfe7db --- /dev/null +++ b/contrib/patch.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if test "$1" = ""; then + echo "Usage: $0 " + 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