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