2011-10-09 04:21:29 +00:00
|
|
|
echo Creating directories
|
|
|
|
|
|
|
|
for i in `find ../src_work -type d`
|
|
|
|
do
|
|
|
|
mkdir --parents "./patches${i:11}"
|
|
|
|
done
|
|
|
|
|
|
|
|
echo Creating patches
|
|
|
|
|
|
|
|
for i in `find ../src_work -type f`
|
|
|
|
do
|
2011-10-10 23:47:30 +00:00
|
|
|
diff -u ../src_base${i:11} $i -r --strip-trailing-cr --new-file | sed -e "1,2s/[0-9-]* [0-9:\.]* [+-][0-9]*\b/0000-00-00 00:00:00.000000000 -0000/" | tr -d '\r' > ./patches${i:11}.patch
|
2011-10-09 04:21:29 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo Removing empty patches
|
2011-12-11 07:04:21 +00:00
|
|
|
find patches -size 0 -type f -name \*.patch -delete
|
|
|
|
for i in `find patches -depth -empty -type d | grep -a -v "svn"`
|
|
|
|
do
|
|
|
|
rmdir "$i"
|
|
|
|
done
|
|
|
|
|
|
|
|
echo Grabbing copy of conf folder
|
|
|
|
for i in `find conf -type f | grep -a -v "svn"`
|
2011-10-09 04:21:29 +00:00
|
|
|
do
|
|
|
|
rm $i
|
|
|
|
done
|
2011-12-11 07:04:21 +00:00
|
|
|
for i in `find conf -depth -empty -type d | grep -a -v "svn"`
|
2011-10-09 04:21:29 +00:00
|
|
|
do
|
|
|
|
rmdir "$i"
|
|
|
|
done
|
2011-12-11 07:04:21 +00:00
|
|
|
|
|
|
|
cp -r ../conf/* conf
|
|
|
|
|
|
|
|
echo Finished
|