Skip to content

Commit

Permalink
Add quick and dirty framework to build local versions of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lamby committed Jul 29, 2016
1 parent 28c1cb8 commit 66b9f47
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions patches/apply
@@ -0,0 +1,43 @@
#!/bin/sh

set -eux

cd "$(dirname "${0}")"

echo "deb-src http://httpredir.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie-src.list
apt-get update --yes
apt-get install --yes --no-install-recommends devscripts

for X in $(pwd)/*/
do
SRC="$(basename "${X}")"
apt-get build-dep --yes ${SRC}

rm -rf /tmp/buildd
mkdir -p /tmp/buildd
cd /tmp/buildd

apt-get source ${SRC}
cd */

EDITOR=cat dch --local=+webconverger "Rebuild for Webconverger"

# Merge patch series'
if ls ${X}/* >/dev/null 2>&1
then
for Y in $(echo ${X}/* | LC_ALL=C sort)
do
mkdir -p debian/patches
cp ${Y} debian/patches
echo "$(basename "${Y}") -p1" >> debian/patches/series
done
fi

dpkg-buildpackage

for Y in ../*.deb
do
dpkg -i ${Y} || true
apt-get -f --yes install
done
done

0 comments on commit 66b9f47

Please sign in to comment.