9 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
10 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
12 DEB
=${PACKAGE}_
${VER}-${DEBREL}_
${ARCH}.deb
19 cp
-rpa
${SRCDIR} ${SRCDIR}.tmp
20 cd
${SRCDIR}.tmp
; patch
-p1
< ..
/patches
/update_changelog.patch
21 cd
${SRCDIR}.tmp
; dpkg-buildpackage
-rfakeroot
-b
-uc
-us
25 # make sure submodule was initialized
28 test -f
"${SRCDIR}/debian/changelog" || git submodule update
--init
30 # upgrade to current master
32 download
${SRCDIR}: submodule
33 git submodule
foreach 'git pull --ff-only origin master'
37 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com upload
43 rm -rf
${SRCDIR}.tmp
*_
${ARCH}.deb
*.changes
*.dsc
44 find .
-name
'*~' -exec
rm {} ';'