Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > b080aa38c5bb0041448f6fdafd4d9238 > files > 34

libedit-devel-3.0-0.20090722.1mdv2010.0.i586.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