7 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
8 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
10 DEB
=${PACKAGE}_
${SDVER}-${PKGREL}_
${ARCH}.deb
12 SDDIR
=sheepdog-
${SDVER}
20 mv
${SDDIR}/debian
${SDDIR}/debian.org
21 cp
-av debian
${SDDIR}/debian
22 echo
"git clone git://git.proxmox.com/git/pve-sheepdog.git\\ngit checkout ${GITVERSION}" > ${SDDIR}/debian
/SOURCE
23 cd
${SDDIR}; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
24 lintian
-X copyright-file
${DEB}
28 rm -rf
${SDDIR} sheepdog.git
29 git clone git
://github.com
/sheepdog
/sheepdog.git
-b v1.0 sheepdog.git
30 rsync
-a
--exclude .git
--exclude .gitignore sheepdog.git
/ ${SDDIR}
31 tar czf
${SDSRC}.tmp
${SDDIR}
33 mv
${SDSRC}.tmp
${SDSRC}
37 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com upload
45 rm -rf
*~ debian
/*~
*.deb
*.changes
*.dsc
${SDDIR} ${SDSRC}.tmp