Else the first make {deb,dinstall} from a clean repo fails as we
generated the debian control file to the source debian/ folder.
Just write it directly to the build/debian directory, so we do not
clutter the source directory and build always with the up to date
control file.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
rm -rf build
cp -a data build
cp -a debian build/debian
- sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > debian/control
+ sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > build/debian/control
echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
cd build; ./autogen.sh
cd build; dpkg-buildpackage -rfakeroot -b -us -uc