All pastes #71685 Raw Edit

Something

public text v1 · immutable
#71685 ·published 2006-06-26 01:03 UTC
rendered paste body
#!/bin/sh

set +x

# Local suse tree
LocalTree="/mnt/hdb1/opensuse/suse/iso/10.1"

# Local Rsync dir
RsyncLocal="/mnt/hdb1/opensuse/suse/update/10.1"

cd "$RsyncLocal/rpm"
for d in *; do
    if [ -d $d ]; then
        cd "$RsyncLocal/rpm/$d"
        find *.rpm ! -name "*$d.*" | 
            #while read a; do basename $a .rpm |
            while read a; do 
                aa=${a%.rpm}
                echo $aa
                while read aaa; do 
                    find $LocalTree/suse/$d/* -name "$aaa*$d.rpm" |
                        while read bb; do 
                            echo $bb
                        done
                done
            done
    fi
done
echo