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,7 +20,9 @@ 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"}
for CHROOT in $(ls $CHROOT_DIR); do
#CHROOT=${1:-"etch-i386"}
ELEMENTS=${#SOURCES[@]} ELEMENTS=${#SOURCES[@]}
for ((i=0;i<$ELEMENTS;i++)); do for ((i=0;i<$ELEMENTS;i++)); do
SOURCE=( `echo ${SOURCES[${i}]}` ) SOURCE=( `echo ${SOURCES[${i}]}` )
@ -30,6 +32,7 @@ function get_sources() {
chroot_run $CHROOT "mkdir -p $TARGET" '/root/' chroot_run $CHROOT "mkdir -p $TARGET" '/root/'
get_$VCS $CHROOT $SOURCE $TARGET get_$VCS $CHROOT $SOURCE $TARGET
done 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