[closure-compiler] 06/10: simplify manpage generation
Tony Mancill
tmancill at moszumanska.debian.org
Tue Apr 22 06:11:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository closure-compiler.
commit b3e7fc0eed642e9960b2593f2ac8b5feb50538c2
Author: tony mancill <tmancill at debian.org>
Date: Mon Apr 21 22:30:34 2014 -0700
simplify manpage generation
---
debian/rules | 42 +++++-------------------------------------
1 file changed, 5 insertions(+), 37 deletions(-)
diff --git a/debian/rules b/debian/rules
index 3597754..287263c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,48 +1,16 @@
#!/usr/bin/make -f
-JAVA_HOME := /usr/lib/jvm/default-java
-
-DOCUMENTATION_DIR = debian
-MANPAGE_SUFFIX = .1
-TEMPFILE_SUFFIX = .tmp
-manpage_names = closure-compiler
-manpage_tempfile_suffix = ${MANPAGE_SUFFIX}${TEMPFILE_SUFFIX}
-
-manpage_paths = $(addprefix ${DOCUMENTATION_DIR}/,${manpage_names})
-manpages = $(addsuffix ${MANPAGE_SUFFIX},${manpage_paths})
-GENERATED_FILES += ${DOCUMENTATION_DIR}/*${MANPAGE_SUFFIX}
-GENERATED_FILES += ${DOCUMENTATION_DIR}/*${manpage_tempfile_suffix}
-
-RST_SUFFIX = .txt
-
+JAVA_HOME := /usr/lib/jvm/default-java
RST2MAN = rst2man
-
%:
- dh $@ --with maven_repo_helper #,javahelper
-
-
-#.PHONY: clean
-#clean:
-# dh $@
-# $(RM) -r ${GENERATED_FILES}
-
-
-#.PHONY: build
-#build: ${manpages}
-
-#%.1: %.1${RST_SUFFIX}
-# $(RST2MAN) $< > $@${TEMPFILE_SUFFIX}
-# cat debian/manpage_encoding_declaration.UTF-8 $@${TEMPFILE_SUFFIX} > $@
-
+ dh $@ --with maven_repo_helper
override_dh_auto_build:
ant -propertyfile debian/ant.properties jar-nodeps javadoc
# build the manpage
- #$(RST2MAN) $< > $@${TEMPFILE_SUFFIX}
- #cat debian/manpage_encoding_declaration.UTF-8 $@${TEMPFILE_SUFFIX} > $@
- rst2man debian/closure-compiler.1.txt > debian/closure-compiler.1.tmp
+ $(RST2MAN) debian/closure-compiler.1.txt > debian/closure-compiler.1.tmp
cat debian/manpage_encoding_declaration.UTF-8 debian/closure-compiler.1.tmp > debian/closure-compiler.1
override_dh_auto_test:
@@ -51,5 +19,5 @@ override_dh_auto_test:
override_dh_auto_clean:
dh_testdir
ant clean
- rm -rf gen
- $(RM) -rf ${GENERATED_FILES}
+ $(RM) -rf gen
+ $(RM) -rf debian/closer-compiler.1.tmp debian/closure-compiler.1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/closure-compiler.git
More information about the pkg-java-commits
mailing list