Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 07ca3c09da5c98b6bf6f222290a2f298 > files > 36

lib64edit-devel-2.10-0.20070831.1mdv2008.1.x86_64.rpm

#!/bin/bash

## make new patches after e.g. distributed ../src has been changed

rm *.patch

i=0
for file in $(find export -type f)
do
   diff -q $file ../${file#export/} > /dev/null
   res="$?"
   if test 1 -eq "$res"
   then
      diff -au $file ../${file#export/} > $(printf '%02d' $i)-${file##*/}.patch
      ((i++))
   fi
done