source: soft/build_system/build_system/upload/robot/trunk/sync_noarch @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 581 bytes
Line 
1#!/bin/sh
2# Sync noarch package from i586 to the ports, add your arch to the ARCH_to_sync variable
3
4topdir="/mnt/BIG/dis/cooker"
5ARCH_to_sync="ppc x86_64 sparc sparc64"
6
7for media in main/release contrib/release; do
8        noarch_rpm="/mnt/BIG/dis/cooker/i586/media/$media/"
9        for arch in $ARCH_to_sync; do
10                dir="$topdir/$arch/media/$media/"
11                for rpm in `find $noarch_rpm -name '*.noarch.rpm'`; do
12                        if [ ! -f $dir/$(basename $rpm) ];then
13                                cp -alvf $rpm $dir
14                        fi
15                done
16                cd $dir
17                for i in $(/home/mandrake/robot/doble2 $dir); do
18                        mv -vf $i /mnt/BIG/dis/old/
19                done
20        done
21done
Note: See TracBrowser for help on using the repository browser.