Correct hash rate calculation.
[core.git] / contrib / patch.sh
1 #!/bin/sh
2
3 if test "$1" = ""; then
4         echo "Usage: $0 <patch>"
5         exit
6 fi
7
8 LIST=`find ??*/trunk/ -maxdepth 0 -type d | sort --unique`
9
10 for entry in ${LIST}; do
11         echo "$0: Patching in ${entry} ..."
12         cd "${entry}"
13         patch -p0 < "../../$1"
14         cd -
15 done