Changeset 3095 for alternc/trunk


Ignore:
Timestamp:
10/11/11 00:29:47 (20 months ago)
Author:
azerttyu
Message:

Restructurer la fonction g303251n303251rant le depot web

  • Parcours du build-area et mise en place des donn303251es Releases, ... en cons303251quence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/nightlybuild/mchroot.sh

    r3094 r3095  
    11#! /bin/bash 
    22 
     3#Le repertoire racine 
     4ROOT_DIR="/root/compilation" 
     5 
    36#Les systeme à compiler 
    4 CHROOT_DIR="/root/compilation/chroot" 
     7CHROOT_DIR="$ROOT_DIR/chroot" 
    58#repertoire cible des compilations 
    6 BUILD_AREA="/root/compilation/build-area" 
     9BUILD_AREA="$ROOT_DIR/build-area" 
    710#le repertoire contenant les sources 
    811SRC_DIR="/root/vcs" 
    912#repertoire local (dans chroot) contenant les builds area 
    1013LOCAL_BUILD_AREA="/root/build-area" 
     14#Le depot formaté pour le web  
     15DEPOT_DIR="$ROOT_DIR/depot" 
     16 
    1117 
    1218 
     
    94100                        chroot_run $SCHROOT_SESSION "svn-buildpackage -us -uc -rfakeroot --svn-move-to=$LOCAL_BUILD_AREA/$STATUT" $SRC_DIR/$SVN_DIR 
    95101                        chroot_run $SCHROOT_SESSION "svn revert ./ -R" $SRC_DIR/$SVN_DIR 
     102 
    96103                done 
    97104 
     
    110117function create_apt() { 
    111118        #Création du depot 
     119        mkdir -p $DEPOT_DIR 
    112120 
    113         DEPOT_DIR="/root/depot" 
    114  
    115         for dir in $(ls $CHROOT_DIR); do 
     121        for dir in $(ls $BUILD_AREA); do 
    116122                if [[ ! -d $CHROOT_DIR/$dir ]]; then 
    117123                        continue 
     
    145151                        dpkg-scanpackages binary-$arch /dev/null dists/$dist/$dir/ | gzip -f9 > binary-$arch/Packages.gz 
    146152                        dpkg-scansources source /dev/null dists/$dist/$dir/ | gzip -f9 > source/Sources.gz 
    147                         apt-ftparchive -c /root/$dist-$arch-apt-ftparchive.conf release $DEPOT_BIN > $DEPOT_BIN/Release 
    148                         apt-ftparchive -c /root/$dist-$arch-apt-ftparchive.conf release $DEPOT_SRC > $DEPOT_SRC/Release 
     153                        apt-ftparchive -c $ROOT_DIR/$dist-$arch-apt-ftparchive.conf release $DEPOT_BIN > $DEPOT_BIN/Release 
     154                        apt-ftparchive -c $ROOT_DIR/$dist-$arch-apt-ftparchive.conf release $DEPOT_SRC > $DEPOT_SRC/Release 
    149155                done 
    150156        done 
     
    152158 
    153159#get_sources 
    154 create_packages 
    155 #create_apt 
    156  
     160#create_packages 
     161create_apt 
Note: See TracChangeset for help on using the changeset viewer.