Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 DPKG_EXPORT_BUILDFLAGS = 1
5 include /usr/share/dpkg/buildflags.mk
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 %:
10 dh $@
11
12 PKG = $(DEB_SOURCE)
13 UVER = $(DEB_VERSION_UPSTREAM)
14 DTYPE =
15 VER ?= $(subst $(DTYPE),,$(UVER))
16
17 ## http://wiki.debian.org/onlyjob/get-orig-source
18 .PHONY: get-orig-source
19 get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
20 @
21
22 ## checkout from subversion (add "subversion, svn2cl | subversion-tools (<< 1.7.5)" to Build-Depends)
23 UURL = svn://svn.code.sf.net/p/robodude/code/bobdude/src
24 REV = $(shell echo $(VER) | perl -ne 'print "$$1" if m/(?:git|svn|hg)(\d+)/;')
25 $(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: REV=$(REV))
26 $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
27 svn checkout --config-option config:miscellany:use-commit-times=yes -r $(REV) \
28 $(UURL) $(PKG)-$(VER) \
29 || $(RM) -r $(PKG)-$(VER)
30 @echo "Clean-up..."
31 cd $(PKG)-$(VER) \
32 && [ -s ChangeLog ] || ( echo "# Generating ChangeLog..." \
33 ; svn2cl --break-before-msg --include-rev \
34 | perl -0pi -e 's{(\d+\])[^:]+?:\s+}{$$1 }sgm;' ChangeLog) \
35 && find . -depth -name ".svn" -exec $(RM) -r '{}' \;
36 @echo "# Packing..."
37 find -L $(PKG)-$(VER) -xdev -type f -print | LC_ALL=C sort \
38 | XZ_OPT="-6v" tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
39 && $(RM) -r "$(PKG)-$(VER)"