File: rules

package info (click to toggle)
maven-debian-helper 2.3.2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,388 kB
  • sloc: java: 3,965; xml: 1,724; sh: 543; perl: 120; makefile: 38
file content (36 lines) | stat: -rwxr-xr-x 1,760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export CLASSPATH=/usr/share/java/commons-io.jar\
                :/usr/share/java/maven-artifact-3.x.jar\
                :/usr/share/java/maven-core-3.x.jar\
                :/usr/share/java/maven-embedder-3.x.jar\
                :/usr/share/java/maven-model-3.x.jar\
                :/usr/share/java/maven-plugin-api-3.x.jar\
                :/usr/share/java/maven-plugin-annotations.jar\
                :/usr/share/java/maven-resolver-api.jar\
                :/usr/share/java/maven-resolver-util.jar\
                :/usr/share/java/maven-repo-helper.jar\
                :/usr/share/java/plexus-utils2.jar\
                :/usr/share/java/velocity.jar

%:
	dh $@ --buildsystem=ant --with maven-repo-helper

override_dh_auto_build:
	# Generation of man pages
	mkdir -p debian/.mh/doc
	help2man -N -o debian/.mh/doc/mh_genrules.1             bin/mh_genrules
	help2man -N -o debian/.mh/doc/mh_lspoms.1               bin/mh_lspoms
	help2man -N -o debian/.mh/doc/mh_make.1                 bin/mh_make
	help2man -N -o debian/.mh/doc/mh_resolve_dependencies.1 bin/mh_resolve_dependencies

	dh_auto_build -- package -Dpackage=$(DEB_SOURCE) -Dbin.package=$(DEB_SOURCE)
	mh_unpatchpoms -pmaven-debian-helper

# Helper target, to use when updating the version of this package
update-package-version:
	perl -p -i -e "s/^    <version>([0-9\.]+<)/    <version>${DEB_VERSION}</" pom.xml
	perl -p -i -e "s/^        <version>([0-9\.]+<)/        <version>${DEB_VERSION}</" maven-debian-helper/pom.xml debian-maven-plugin/pom.xml
	perl -p -i -e "s/maven-debian-helper \(>= ([0-9\.]+)\)/maven-debian-helper \(>= ${DEB_VERSION})/" share/cdbs/1/class/maven-vars.mk maven-packager-utils/src/main/resources/control.vm