File: rules

package info (click to toggle)
polyglot-maven 0.8~tobrien%2Bgit20120905-9
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,940 kB
  • sloc: java: 19,134; xml: 1,604; ruby: 542; sh: 86; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 900 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export JAVA_HOME := /usr/lib/jvm/default-java
export ANT_ARGS := -f debian/build.xml
VERSION=$(shell dpkg-parsechangelog | sed -n '/^Version/s/Version: \(.*\)-[^-]*$$/\1/p')

%:
	dh $@ --buildsystem=ant --with maven_repo_helper

override_dh_auto_build:
	mkdir -p build/common/META-INF/plexus
	cp -p debian/common-plexus-components.xml build/common/META-INF/plexus/components.xml
	mkdir -p build/groovy/META-INF/plexus
	cp -p debian/groovy-plexus-components.xml build/groovy/META-INF/plexus/components.xml
	dh_auto_build

get-orig-source:
	git clone git://github.com/tobrien/polyglot-maven.git polyglot-maven-$(VERSION)
	# Remove files under "Sonatype Maven Shell (TM) Commercial Version"
	rm -rf polyglot-maven-$(VERSION)/pmaven-commands polyglot-maven-$(VERSION)/.git
	tar czf ../polyglot-maven_$(VERSION).orig.tar.gz polyglot-maven-$(VERSION)
	rm -rf polyglot-maven-$(VERSION)