More changes to adapt toplevel scripts to git workflow
This commit is contained in:
parent
fb5a13f6bd
commit
3c295ff496
2 changed files with 22 additions and 70 deletions
|
|
@ -46,7 +46,7 @@ REPOSITORY=$PWD/repos/$CODENAME
|
||||||
HELPERS=$PWD/helpers
|
HELPERS=$PWD/helpers
|
||||||
if ! [ -d repos/ ]
|
if ! [ -d repos/ ]
|
||||||
then
|
then
|
||||||
for i in $(git branch|sed 's/.* //;/master/d')
|
for REPO in $(git branch|sed 's/.* //;/master/d')
|
||||||
do
|
do
|
||||||
mkdir -p repos/$REPO/conf repos/$REPO/incoming
|
mkdir -p repos/$REPO/conf repos/$REPO/incoming
|
||||||
cat << EOF > repos/$REPO/conf/distributions
|
cat << EOF > repos/$REPO/conf/distributions
|
||||||
|
|
@ -198,6 +198,7 @@ tmpumount(){
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
tmpmount(){
|
tmpmount(){
|
||||||
|
mount|grep tmpfs|grep jails -q && return
|
||||||
[ $MEM -lt 16000000 ] && return
|
[ $MEM -lt 16000000 ] && return
|
||||||
echo $PACKAGE | grep -q "linux" && return
|
echo $PACKAGE | grep -q "linux" && return
|
||||||
grep jails/$UPSTREAM-$ARCH/tmp /proc/mounts -q && tmpumount
|
grep jails/$UPSTREAM-$ARCH/tmp /proc/mounts -q && tmpumount
|
||||||
|
|
|
||||||
89
makepending
89
makepending
|
|
@ -20,6 +20,10 @@
|
||||||
#
|
#
|
||||||
# This script compares two Sources.gz files, and reports available updates
|
# This script compares two Sources.gz files, and reports available updates
|
||||||
|
|
||||||
|
PAIRS="robur-hardy taranis-lucid dagda-natty brigantia-oneiric toutatis-precise"
|
||||||
|
CODENAMES="robur taranis dagda brigantia toutatis"
|
||||||
|
UPSTREAMS="hardy lucid natty oneiric precise"
|
||||||
|
|
||||||
[ 1$1 = 1"test" ] && TEST=echo
|
[ 1$1 = 1"test" ] && TEST=echo
|
||||||
|
|
||||||
WD=$PWD
|
WD=$PWD
|
||||||
|
|
@ -41,19 +45,11 @@ wget $MIRROR/dists/$DIST/$COMPONENT/source/Sources.gz -q -O - | zcat | egrep dsc
|
||||||
echo " Done" >&2
|
echo " Done" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
listsweets (){
|
|
||||||
DIST=$1
|
|
||||||
echo -n Downloading Sources.gz from $MIRROR >&2
|
|
||||||
wget $MIRROR/Sources.gz -q -O - | zcat | egrep dsc$ | cut -d" " -f 4|sed 's/\.dsc//'
|
|
||||||
echo " Done" >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
update(){
|
update(){
|
||||||
|
|
||||||
MIRROR="http://archive.ubuntu.com/ubuntu"
|
MIRROR="http://archive.ubuntu.com/ubuntu"
|
||||||
|
|
||||||
for i in hardy lucid maverick natty oneiric
|
for i in $UPSTREAMS
|
||||||
do
|
do
|
||||||
listmirror $i main >> $i
|
listmirror $i main >> $i
|
||||||
listmirror $i-updates main >> $i
|
listmirror $i-updates main >> $i
|
||||||
|
|
@ -63,40 +59,16 @@ do
|
||||||
listmirror $i-security universe >> $i
|
listmirror $i-security universe >> $i
|
||||||
done
|
done
|
||||||
|
|
||||||
#MIRROR="http://download.sugarlabs.org/packages/SweetsDistribution:/0.94/Ubuntu-11.04/"
|
for i in $CODENAMES
|
||||||
|
|
||||||
#listsweets >> sweets-natty
|
|
||||||
|
|
||||||
MIRROR="ftp://archive.trisquel.info/trisquel"
|
|
||||||
|
|
||||||
for i in main extras
|
|
||||||
do
|
|
||||||
listmirror robur $i >> robur
|
|
||||||
listmirror robur-updates $i >> robur
|
|
||||||
listmirror robur-security $i >> robur
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in taranis slaine dagda brigantia
|
|
||||||
do
|
do
|
||||||
|
MIRROR="http://archive.trisquel.info/trisquel"
|
||||||
listmirror $i main >> $i
|
listmirror $i main >> $i
|
||||||
listmirror $i-updates main >> $i
|
listmirror $i-updates main >> $i
|
||||||
listmirror $i-security main >> $i
|
listmirror $i-security main >> $i
|
||||||
done
|
|
||||||
|
|
||||||
MIRROR="http://devel.trisquel.info/trisquel/hardy"
|
MIRROR="http://devel.trisquel.info/trisquel/$i"
|
||||||
listmirror hardy main >> robur
|
listmirror $i main >> $i
|
||||||
#MIRROR="http://devel.trisquel.info/trisquel/jaunty"
|
done
|
||||||
#listmirror jaunty main >> dwyn
|
|
||||||
#MIRROR="http://devel.trisquel.info/trisquel/karmic"
|
|
||||||
#listmirror karmic main >> awen
|
|
||||||
MIRROR="http://devel.trisquel.info/trisquel/lucid"
|
|
||||||
listmirror lucid main >> taranis
|
|
||||||
MIRROR="http://devel.trisquel.info/trisquel/maverick"
|
|
||||||
listmirror maverick main >> slaine
|
|
||||||
MIRROR="http://devel.trisquel.info/trisquel/natty"
|
|
||||||
listmirror natty main >> dagda
|
|
||||||
MIRROR="http://devel.trisquel.info/trisquel/oneiric"
|
|
||||||
listmirror oneiric main >> brigantia
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -142,9 +114,10 @@ then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Running makepackage $package $UPSTREAM at $(date)
|
echo Upgrading $current at $DISTRO with ${UPSTREAM}_$upstream 1>&2
|
||||||
echo Running makepackage $package $UPSTREAM at $(date) $LOGS/$package-$UPSTREAM-$(date +%Y%m%d).log 1>&2
|
echo Running makepackage $package $DISTRO at $(date) $LOGS/$DISTRO-$package-$(date +%Y%m%d).log
|
||||||
$TEST sh $WD/makepackage $package $UPSTREAM > $LOGS/$package-$UPSTREAM-$(date +%Y%m%d).log && echo -n Done! || echo -n FAILED!
|
echo Running makepackage $package $DISTRO at $(date) $LOGS/$DISTRO-$package-$(date +%Y%m%d).log 1>&2
|
||||||
|
$TEST sh $WD/makepackage $package $DISTRO > $LOGS/$DISTRO-$package-$(date +%Y%m%d).log && echo -n Done! || echo -n FAILED!
|
||||||
echo " ($(date))"
|
echo " ($(date))"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
@ -153,35 +126,13 @@ done
|
||||||
|
|
||||||
update
|
update
|
||||||
|
|
||||||
DISTRO="robur"
|
for pair in $PAIRS
|
||||||
UPSTREAM="hardy"
|
do
|
||||||
PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
|
DISTRO=${pair/-*/}
|
||||||
|
UPSTREAM=${pair/*-/}
|
||||||
|
PACKAGES=$(git --git-dir=/home/systems/devel/.git ls-tree -r --name-only $DISTRO|grep helpers/make-|sed 's/.*make-//')
|
||||||
check >> $FILE
|
check >> $FILE
|
||||||
|
done
|
||||||
DISTRO="taranis"
|
|
||||||
UPSTREAM="lucid"
|
|
||||||
PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
|
|
||||||
check >> $FILE
|
|
||||||
|
|
||||||
DISTRO="slaine"
|
|
||||||
UPSTREAM="maverick"
|
|
||||||
PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
|
|
||||||
check >> $FILE
|
|
||||||
|
|
||||||
DISTRO="dagda"
|
|
||||||
UPSTREAM="natty"
|
|
||||||
PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
|
|
||||||
check >> $FILE
|
|
||||||
|
|
||||||
DISTRO="brigantia"
|
|
||||||
UPSTREAM="oneiric"
|
|
||||||
PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
|
|
||||||
check >> $FILE
|
|
||||||
|
|
||||||
#DISTRO="dagda"
|
|
||||||
#UPSTREAM="sweets-natty"
|
|
||||||
#PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
|
|
||||||
#check >> $FILE
|
|
||||||
|
|
||||||
report () {
|
report () {
|
||||||
#address=trisquel-devel@listas.trisquel.info
|
#address=trisquel-devel@listas.trisquel.info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue