Skip to content
Snippets Groups Projects
Commit b07ce8a0 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Merge branch 'master' into dwyn

parents 7eff37eb fb2f60fd
No related branches found
No related tags found
No related merge requests found
...@@ -44,10 +44,9 @@ UPSTREAM=$(grep 'export UPSTREAM=' helpers/config |sed 's/.*=//') ...@@ -44,10 +44,9 @@ UPSTREAM=$(grep 'export UPSTREAM=' helpers/config |sed 's/.*=//')
WORKDIR=tmp/makepackage WORKDIR=tmp/makepackage
REPOSITORY=$PWD/repos/$CODENAME REPOSITORY=$PWD/repos/$CODENAME
HELPERS=$PWD/helpers HELPERS=$PWD/helpers
if ! [ -d repos/ ]
then
for REPO in $(git branch|sed 's/.* //;/master/d') for REPO in $(git branch|sed 's/.* //;/master/d')
do do
[ -d $REPOSITORY ] && continue
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
Origin: Trisquel Origin: Trisquel
...@@ -74,7 +73,6 @@ cd repos/$REPO ...@@ -74,7 +73,6 @@ cd repos/$REPO
reprepro -v export reprepro -v export
cd ../.. cd ../..
done done
fi
disablescripts(){ disablescripts(){
# Disable service starter scripts # Disable service starter scripts
...@@ -132,7 +130,7 @@ EOF ...@@ -132,7 +130,7 @@ EOF
[ $UPSTREAM != hardy -a $UPSTREAM != lucid -a $UPSTREAM != maverick ] && echo "force-unsafe-io" > $CHROOT/etc/dpkg/dpkg.cfg.d/02apt-speedup [ $UPSTREAM != hardy -a $UPSTREAM != lucid -a $UPSTREAM != maverick ] && echo "force-unsafe-io" > $CHROOT/etc/dpkg/dpkg.cfg.d/02apt-speedup
$C apt-get update $C apt-get update
[ $UPSTREAM != hardy ] && $C apt-get --force-yes -y install eatmydata [ $UPSTREAM != hardy ] && $C apt-get --force-yes -y install eatmydata
$C apt-get --force-yes -y install sysv-rc dpkg sysvinit-utils upstart [ $UPSTREAM != hardy ] && $C apt-get --force-yes -y install sysv-rc dpkg sysvinit-utils upstart
disablescripts disablescripts
$C apt-get --force-yes -y dist-upgrade $C apt-get --force-yes -y dist-upgrade
$C apt-get --force-yes -y install devscripts build-essential liburi-perl python-setuptools pkgbinarymangler wget rpl aptitude quilt fakeroot ccache $C apt-get --force-yes -y install devscripts build-essential liburi-perl python-setuptools pkgbinarymangler wget rpl aptitude quilt fakeroot ccache
...@@ -146,6 +144,7 @@ EOF ...@@ -146,6 +144,7 @@ EOF
then then
for BIN in /bin/uname /usr/bin/arch for BIN in /bin/uname /usr/bin/arch
do do
[ -f $CHROOT/$BIN ] || continue
mv $CHROOT/$BIN $CHROOT/$BIN.orig mv $CHROOT/$BIN $CHROOT/$BIN.orig
cat << EOF > $CHROOT/$BIN cat << EOF > $CHROOT/$BIN
#!/bin/sh #!/bin/sh
......
...@@ -120,8 +120,10 @@ then ...@@ -120,8 +120,10 @@ then
continue continue
fi fi
$TEST git --git-dir=$WD/.git checkout $DISTRO cd $WD
$TEST git --git-dir=$WD/.git merge master $TEST git checkout $DISTRO
$TEST git merge master
cd $TMP
echo Upgrading $current at $DISTRO with ${UPSTREAM}_$upstream 1>&2 echo Upgrading $current at $DISTRO with ${UPSTREAM}_$upstream 1>&2
echo Running makepackage $package $DISTRO at $(date) $LOGS/$DISTRO-$package-$(date +%Y%m%d).log echo Running makepackage $package $DISTRO at $(date) $LOGS/$DISTRO-$package-$(date +%Y%m%d).log
echo Running makepackage $package $DISTRO at $(date) $LOGS/$DISTRO-$package-$(date +%Y%m%d).log 1>&2 echo Running makepackage $package $DISTRO at $(date) $LOGS/$DISTRO-$package-$(date +%Y%m%d).log 1>&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment