Added opensync 0.4x to "config all" script
[barry.git] / sync-cwd.sh
blob3d21b6cd1ecdd6402a7385b2c8022b51f835ca04
1 #!/bin/sh
3 if [ -z "$1" ] ; then
4 echo "Usage: Run from inside the directory you want to patch."
5 echo " Then do:"
6 echo
7 echo " sync-cwd.sh ../path/to/dir/with/changes"
8 echo
9 echo "Changes will be applied to your current working directory."
10 exit 1
13 DIR="$1"
14 PATCH="../sync-cwd.patch"
16 (cd "$DIR" && make clean)
17 diff -ruN --exclude=CVS --exclude=.git . "$DIR" > "$PATCH"
18 patch -p1 < "$PATCH"
19 rm "$PATCH"