7 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
8 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
10 DEB
=${PACKAGE}_
${VER}-${DEBREL}_
${ARCH}.deb
16 deb
${DEB}: | submodule
18 cp
-rpa
${SRCDIR} ${SRCDIR}.tmp
19 cd
${SRCDIR}.tmp
; patch
-p1
< ..
/patches
/update_changelog.patch
20 echo
"git clone git://git.proxmox.com/git/smartmontools.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp
/debian
/SOURCE
21 echo
"debian/SOURCE" >> ${SRCDIR}.tmp
/debian
/docs
22 cd
${SRCDIR}.tmp
; dpkg-buildpackage
-rfakeroot
-b
-uc
-us
26 # make sure submodule was initialized
29 test -f
"${SRCDIR}/debian/changelog" || git submodule update
--init
31 # upgrade to current master
33 download
${SRCDIR}: submodule
34 git submodule
foreach 'git pull --ff-only origin master'
38 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com upload
44 rm -rf
${SRCDIR}.tmp
*_
${ARCH}.deb
*.changes
*.dsc
*.buildinfo
45 find .
-name
'*~' -exec
rm {} ';'