| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all |
| 4 |
DPKG_EXPORT_BUILDFLAGSscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DPKG_EXPORT_BUILDFLAGS. = 1 |
| 5 |
include /usr/share/dpkg/buildflags.mk |
| 6 |
|
| 7 |
include /usr/share/dpkg/pkg-info.mk |
| 8 |
|
| 9 |
%scip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`%`().: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG. = $(DEB_SOURCEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DEB_SOURCE.) |
| 13 |
UVERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/UVER. = $(DEB_VERSION_UPSTREAMscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DEB_VERSION_UPSTREAM.) |
| 14 |
DTYPEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DTYPE. = |
| 15 |
VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER. ?= $(substscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/subst. $(DTYPEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DTYPE.),,$(UVERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/UVER.)) |
| 16 |
|
| 17 |
|
| 18 |
.PHONYscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`.PHONY`().: get-orig-source |
| 19 |
get-orig-sourcescip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/get-orig-source().: $(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)_$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.)$(DTYPEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DTYPE.).orig.tar.xz $(infoscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/info. I: $(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)_$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.)$(DTYPEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DTYPE.)) |
| 20 |
@ |
| 21 |
|
| 22 |
|
| 23 |
UURLscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/UURL. = svn://svn.code.sf.net/p/robodude/code/bobdude/src |
| 24 |
REVscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/REV. = $(shellscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/shell. echo $(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.) | perl -ne 'print "$$1" if m/(?:git|svn|hg)(\d+)/;') |
| 25 |
$(scip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`$(PKG)_$(VER)$(DTYPE).orig.tar.xz`().PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)scip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`$(PKG)_$(VER)$(DTYPE).orig.tar.xz`()._$(scip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`$(PKG)_$(VER)$(DTYPE).orig.tar.xz`().VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.)$(scip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`$(PKG)_$(VER)$(DTYPE).orig.tar.xz`().DTYPEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DTYPE.)scip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/`$(PKG)_$(VER)$(DTYPE).orig.tar.xz`()..orig.tar.xz: $(infoscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/info. I: REV=$(REVscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/REV.)) |
| 26 |
$(if $(wildcard $(PKG)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.)),$(error $(PKG)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.) exist, aborting..)) |
| 27 |
svn checkout --config-option config:miscellany:use-commit-times=yes -r $(REVscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/REV.) \ |
| 28 |
$(UURLscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/UURL.) $(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.) \ |
| 29 |
|| $(RMscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/RM.) -r $(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.) |
| 30 |
@echo "Clean-up..." |
| 31 |
cd $(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/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 $(RMscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/RM.) -r '{}' \; |
| 36 |
@echo "# Packing..." |
| 37 |
find -L $(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.) -xdev -type f -print | LC_ALL=C sort \ |
| 38 |
| XZ_OPT="-6v" tar -caf "../$(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)_$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.)$(DTYPEscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/DTYPE.).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \ |
| 39 |
&& $(RMscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/RM.) -r "$(PKGscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/PKG.)-$(VERscip-debian debian bobdude 1.5.0+svn75-2 bobdude/rules/VER.)" |