debian: include the number of git patches in the version
* configure.ac, debian/changelog.in: Adjust. * debian/source/format: Distribute this. * Makefile.am (deb): New target.
This commit is contained in:
parent
1f0bb428b0
commit
176a7bf199
4 changed files with 26 additions and 7 deletions
24
Makefile.am
24
Makefile.am
|
|
@ -32,10 +32,14 @@ SUBDIRS = buddy lib src wrap ltdl iface doc $(NEVER_BENCH)
|
|||
|
||||
UTF8 = utf8/doc/ReleaseNotes utf8/doc/utf8cpp.html utf8/utf8.h \
|
||||
utf8/utf8/checked.h utf8/utf8/core.h utf8/utf8/unchecked.h
|
||||
DEBIAN = debian/changelog.in debian/compat debian/control \
|
||||
debian/copyright debian/docs debian/rules debian/spot-doc.docs \
|
||||
debian/spot-doc.install debian/spot-doc.doc-base \
|
||||
debian/spot.install debian/libspot-dev.install
|
||||
DEBIAN = debian/changelog debian/changelog.in debian/compat \
|
||||
debian/control debian/copyright debian/docs debian/rules \
|
||||
debian/source/format debian/spot-doc.docs debian/spot-doc.install \
|
||||
debian/spot-doc.doc-base debian/spot.install \
|
||||
debian/libspot-dev.install
|
||||
|
||||
debian/changelog: configure.ac
|
||||
$(top_builddir)/config.status --file debian/changelog
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
EXTRA_DIST = HACKING ChangeLog.1 tools/gitlog-to-changelog \
|
||||
|
|
@ -45,7 +49,7 @@ EXTRA_DIST = HACKING ChangeLog.1 tools/gitlog-to-changelog \
|
|||
dist-hook: gen-ChangeLog
|
||||
|
||||
gen_start = 2012-03-10
|
||||
.PHONY: gen-ChangeLog
|
||||
.PHONY: gen-ChangeLog deb
|
||||
gen-ChangeLog:
|
||||
if test -d .git; then \
|
||||
## Generate all commits in the form "SHA1 subject"
|
||||
|
|
@ -62,3 +66,13 @@ gen-ChangeLog:
|
|||
rm -f $(distdir)/ChangeLog; \
|
||||
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
|
||||
fi
|
||||
|
||||
# Build Debian packages.
|
||||
# Run it with: make DEBUILDFLAGS=-j8 deb -j8
|
||||
deb: dist
|
||||
rm -rf spot-$(VERSION) spot-$(VERSION)$(GITPATCH)
|
||||
tar zxvf spot-$(VERSION).tar.gz
|
||||
mv spot-$(VERSION) spot-$(VERSION)$(GITPATCH)
|
||||
tar Jcvf spot_$(VERSION)$(GITPATCH).orig.tar.xz \
|
||||
spot-$(VERSION)$(GITPATCH)
|
||||
cd spot-$(VERSION)$(GITPATCH) && debuild $(DEBUILDFLAGS) -us -uc
|
||||
|
|
|
|||
|
|
@ -160,6 +160,11 @@ AC_CHECK_PROGS([SWIG], [swig3.0 swig], [swig])
|
|||
|
||||
AC_SUBST([CROSS_COMPILING], [$cross_compiling])
|
||||
|
||||
AC_SUBST([GITPATCH], [$(if (git rev-parse) >/dev/null 2>&1; then
|
||||
echo -n .
|
||||
git rev-list $(git rev-list --tags --no-walk --max-count=1)..HEAD --count
|
||||
fi)])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
bench/Makefile
|
||||
|
|
@ -173,7 +178,6 @@ AC_CONFIG_FILES([
|
|||
bench/spin13/Makefile
|
||||
bench/wdba/Makefile
|
||||
bench/stutter/Makefile
|
||||
debian/changelog
|
||||
doc/Doxyfile
|
||||
doc/Makefile
|
||||
doc/tl/Makefile
|
||||
|
|
|
|||
2
debian/changelog.in
vendored
2
debian/changelog.in
vendored
|
|
@ -1,4 +1,4 @@
|
|||
spot (@VERSION@-1) unstable; urgency=low
|
||||
spot (@VERSION@@GITPATCH@-1) unstable; urgency=low
|
||||
|
||||
* Initial release
|
||||
|
||||
|
|
|
|||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue