Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/default.mk
4 include /usr/share/java/java_defaults.mk
5
6 %:
7 dh $@
8
9 execute_after_dh_auto_configure:
10 # Maven fails if the module version has ${revision} and the parent POM
11 # has an actual version number instead of "${revision}"; misfeature?
12 sed -i -e '/<version>.*<\/version>/ { s/>[^<]\+</>$${revision}</ ; ta } ; p ; d ; :a { n ; s/.*\n// ; ba }' \
13 pom.xml
14
15 override_dh_auto_install:
16 # And now Maven fails even with both module and parent in sync
17 sed -i -e '/<version>.*<\/version>/ { s/>[^<]\+</>$(DEB_VERSION_UPSTREAM)</ ; ta } ; p ; d ; :a { n ; s/.*\n// ; ba }' \
18 pom.xml
19 sed -i -e '/<version>.*<\/version>/ { s/>[^<]\+</>$(DEB_VERSION_UPSTREAM)</ ; ta } ; p ; d ; :a { n ; /<version>.*<\/version>/ { s/>[^<]\+</>$(DEB_VERSION_UPSTREAM)</ ; tb } ; s/.*\n// ; ba } ; :b { n ; s/.*\n// ; bb }' \
20 fastdoubleparser-java8/pom.xml \
21 fastdoubleparser-java11/pom.xml \
22 fastdoubleparser-java17/pom.xml \
23 fastdoubleparser-java21/pom.xml \
24 fastdoubleparser/pom.xml
25 dh_auto_install
26
27 # could not figure out how to build these but not install them
28 find debian/libfastdoubleparser-java/ -regex '.*/fastdoubleparser-java[0-9].*' -delete