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