dump1090/prepare-wheezy-tree.sh
Oliver Jowett b213ab9a50 Tweak wheezy build so it builds rtl-sdr itself rather than relying
on a librtlsdr-dev package that needs to be built separately.
2016-09-16 16:19:16 +01:00

24 lines
635 B
Bash
Executable file

#!/bin/sh
# This is a nasty hack that prepares a separate package tree suitable for
# building the package for wheezy
TOP=`dirname $0`
OUT=$TOP/package-wheezy
rm -fr $OUT
FILES=$(find $TOP -mindepth 1 -maxdepth 1 -name .git -prune -o -name 'debian-wheezy' -prune -o -print)
mkdir $OUT
cp -a $FILES $OUT
cp -a $TOP/debian-wheezy/* $OUT/debian/
echo "Updating changelog for wheezy backport build"
dch --changelog $OUT/debian/changelog --bpo --distribution wheezy-backports "Automated backport build for wheezy"
echo "Cloning rtl-sdr source"
git clone git://git.osmocom.org/rtl-sdr.git $OUT/rtl-sdr
echo "OK, ready to go in $OUT"