[Pkg-owncloud-commits] [php-sabre-vobject] 64/65: Install vendor and generate_vcards CLIs
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:57:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 77825d7773b1e5227bcf6c68aa845a0bb829a8a0
Author: David Prévot <taffit at debian.org>
Date: Tue Feb 24 17:15:16 2015 -0400
Install vendor and generate_vcards CLIs
---
debian/control | 1 +
debian/generate_vcards.1.in | 2 ++
debian/install | 4 +++-
debian/manpages | 2 ++
debian/rules | 25 +++++++++++++++++++++++++
debian/vobject.1.in | 2 ++
6 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index fdd8f64..7520786 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
Maintainer: ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>
Uploaders: David Prévot <taffit at debian.org>
Build-Depends: debhelper (>= 9),
+ help2man,
php-codesniffer,
php-symfony-class-loader (>= 2.5),
phpab,
diff --git a/debian/generate_vcards.1.in b/debian/generate_vcards.1.in
new file mode 100644
index 0000000..c64cfdc
--- /dev/null
+++ b/debian/generate_vcards.1.in
@@ -0,0 +1,2 @@
+[name]
+generate_vcards \- generate random vcards
diff --git a/debian/install b/debian/install
index 4dbcccf..b0aed59 100644
--- a/debian/install
+++ b/debian/install
@@ -1 +1,3 @@
-lib/* usr/share/php/Sabre/VObject
+bin/generate_vcards usr/share/bin
+bin/vobject usr/share/bin
+lib/* usr/share/php/Sabre/VObject
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..29dd1e2
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1,2 @@
+debian/tmp/vobject.1
+debian/tmp/generate_vcards.1
diff --git a/debian/rules b/debian/rules
index 0701379..681958f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,7 @@
#!/usr/bin/make -f
+
+UPSTREAM := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*//')
+
%:
dh $@ --with phpcomposer
@@ -18,5 +21,27 @@ else
@echo "** tests disabled"
endif
+override_dh_installman:
+ mkdir --parent $(CURDIR)/debian/tmp
+ help2man \
+ --help-option=\ \
+ --version-string=$(UPSTREAM) \
+ --no-info \
+ --include=$(CURDIR)/debian/vobject.1.in \
+ "echo -n Usage: && $(CURDIR)/bin/vobject 2>&1 \
+ | tail -n+3 | sed -re 's:\x1B\[[0-9;]*[mK]::g' \
+ -e 's/inputformat If/inputformat If/' -e 's/must/ must/' \
+ -e 's/] C/] C/' \
+ -e 's/ vobject/\n vobject/'" \
+ > $(CURDIR)/debian/tmp/vobject.1
+ help2man \
+ --help-option=\ \
+ --version-string=$(UPSTREAM) \
+ --no-info \
+ --include=$(CURDIR)/debian/generate_vcards.1.in \
+ "echo -n Usage: && $(CURDIR)/bin/generate_vcards 2>&1 | tail -n+3" \
+ > $(CURDIR)/debian/tmp/generate_vcards.1
+ dh_installman
+
get-orig-source:
uscan --verbose --rename --force
diff --git a/debian/vobject.1.in b/debian/vobject.1.in
new file mode 100644
index 0000000..f1cab36
--- /dev/null
+++ b/debian/vobject.1.in
@@ -0,0 +1,2 @@
+[name]
+vobject \- sabre/vobject command line interface
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list