Obtenir les sources pour tous les chroot

* Parcourir chaque chroot et recuperer les sources \303\240 compiler
This commit is contained in:
Camille Lafitte 2011-10-10 22:29:54 +00:00
parent 533778e166
commit ab1a312072
1 changed files with 15 additions and 12 deletions

View File

@ -20,16 +20,19 @@ SOURCES[0]='svn https://www.alternc.org/svn/ /root/vcs/'
#SOURCES[1]='vcs url_ressource target_directory_in_chroot' #SOURCES[1]='vcs url_ressource target_directory_in_chroot'
function get_sources() { function get_sources() {
CHROOT=${1:-"etch-i386"}
ELEMENTS=${#SOURCES[@]} for CHROOT in $(ls $CHROOT_DIR); do
for ((i=0;i<$ELEMENTS;i++)); do #CHROOT=${1:-"etch-i386"}
SOURCE=( `echo ${SOURCES[${i}]}` ) ELEMENTS=${#SOURCES[@]}
VCS=${SOURCE[0]} for ((i=0;i<$ELEMENTS;i++)); do
SOURCE=${SOURCE[1]} SOURCE=( `echo ${SOURCES[${i}]}` )
TARGET=${SOURCE[2]} VCS=${SOURCE[0]}
chroot_run $CHROOT "mkdir -p $TARGET" '/root/' SOURCE=${SOURCE[1]}
get_$VCS $CHROOT $SOURCE $TARGET TARGET=${SOURCE[2]}
done chroot_run $CHROOT "mkdir -p $TARGET" '/root/'
get_$VCS $CHROOT $SOURCE $TARGET
done
done;
} }
function get_svn() { function get_svn() {
@ -156,6 +159,6 @@ function create_apt() {
done done
} }
#get_sources get_sources
#create_packages create_packages
create_apt create_apt