]> git.donarmstrong.com Git - neurodebian.git/blob - tools/nd_adddist
Add the cowbuilder tools to the repos.
[neurodebian.git] / tools / nd_adddist
1 #!/bin/bash
2
3 . /home/cowbuilder/bin/nd_cmdsettings.sh
4
5 # common options
6 opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache"
7
8
9 for a in i386 amd64; do
10   echo "Building $a base path..."
11   if [ "${family:0:3}" = "nd+" ]; then
12   echo "Including NeuroDebian repository..."
13     cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \
14                --components "$components" \
15                --mirror "$mirror" \
16                --debootstrapopts --arch --debootstrapopts $a \
17                --othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free"
18   else
19     cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \
20                --components "$components" \
21                --mirror "$mirror" \
22                --debootstrapopts --arch --debootstrapopts $a
23   fi
24 done