rm -rf ${SRCDIR}
tar xf ${SRCTAR}
cp -a debian ${SRCDIR}/debian
echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
rm -rf ${SRCDIR}
tar xf ${SRCTAR}
cp -a debian ${SRCDIR}/debian
echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
mkdir -p /pve/${RELEASE}/extra
rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
rm -f /pve/${RELEASE}/extra/Packages*
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
mkdir -p /pve/${RELEASE}/extra
rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
rm -f /pve/${RELEASE}/extra/Packages*
cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro