3 PVETARVER
=${TARVER}+pve
.1
5 # also update changelog
7 TARSRC
=tar_
${TARVER}.orig.
tar.xz
8 TARDEBSRC
=tar_
${TARVER}-${DEBREL}.debian.
tar.xz
11 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
12 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
13 SOURCETXT
="git clone git://git.proxmox.com/git/tar.git\\ngit checkout ${GITVERSION}"
15 DEB
=tar_
${PVETARVER}_
${ARCH}.deb
25 $(TARDIR
): $(TARSRC
) $(TARDEBSRC
)
28 tar -C
$(TARDIR
) -xf
$(TARDEBSRC
)
29 echo
"${SOURCETXT}" > ${TARDIR}/debian
/SOURCE
30 echo
"debian/SOURCE" >>${TARDIR}/debian
/docs
31 mv
${TARDIR}/debian
/changelog
${TARDIR}/debian
/changelog.org
32 cat changelog
${TARDIR}/debian
/changelog.org
>${TARDIR}/debian
/changelog
33 cd
${TARDIR} && patch
-p1
-i ..
/sparse-unicode.patch
38 cd
${TARDIR} && dpkg-buildpackage
-b
--no-sign
42 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
46 rm -rf
*~
*_
${ARCH}.deb
*_all.deb
*_
${ARCH}.udeb
*.changes
*.buildinfo
*.dsc
${TARDIR}