1 include /usr
/share
/dpkg
/pkg-info.mk
2 export DEB_VERSION_UPSTREAM_REVISION
4 export PACKAGE
=proxmox-widget-toolkit
5 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
7 DSC
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
9 GITVERSION
:=$(shell git rev-parse HEAD
)
12 rm -rf
${BUILDDIR} ${BUILDDIR}.tmp
13 cp
-a src
/ ${BUILDDIR}.tmp
14 cp
-a debian
${BUILDDIR}.tmp
/
15 echo
"git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp
/debian
/SOURCE
16 mv
${BUILDDIR}.tmp
/ ${BUILDDIR}
21 cd
${BUILDDIR}; dpkg-buildpackage
-b
-us
-uc
27 cd
${BUILDDIR}; dpkg-buildpackage
-S
-us
-uc
-d
36 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist buster
40 rm -rf
${BUILDDIR} ${BUILDDIR}.tmp
*.
tar.gz
*.dsc
*.deb
*.changes
*.buildinfo
41 find .
-name
'*~' -exec
rm {} ';'