Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export JAVA_HOME := /usr/lib/jvm/default-java
4
5 %:
6 dh $@ --with javahelper
7
8 override_dh_auto_build:
9 rm -Rf debian/maven-repo/org/eclipse/jetty
10 dh_auto_build -- install -DskipTests --projects !jetty-distribution
11 dh_auto_build -- package -DskipTests --projects jetty-distribution
12
13 override_dh_auto_install:
14 dh_auto_install
15 rm -Rf debian/libjetty9-java/usr/share/maven-repo/org/eclipse/jetty/jetty-distribution/
16 rm -Rf debian/libjetty9-java/usr/share/maven-repo/org/eclipse/jetty/jetty-home/
17
18 override_dh_link:
19 VERSION=$(shell grep '<version>' pom.xml | head -1 | tail -1 | sed -e 's/.*<version>\(.*\)<\/version>.*/\1/') \
20 dh_link
21
22 override_dh_installchangelogs:
23 dh_installchangelogs VERSION.txt