Skip to content

Commit ae4816c

Browse files
committed
Trying to fix cp of war without git revision
1 parent cb3cb62 commit ae4816c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

debian/rules

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
M2_REPO = $(CURDIR)/debian/maven-repo-local
1515
CURVERSION = $(shell grep -oPm2 "(?<=<version>)[^<]+" "pom.xml" | tail -1)
16+
# Previously:
17+
# CURVERSION = $(shell mvn -Dmaven.repo.local=$(M2_REPO) -q -Dexec.executable=echo -Dexec.args='$${project.version}' --non-recursive exec:exec)-r$(shell git rev-parse HEAD | cut -c1-7)
18+
# but we don't have the git revision in a debian build from sources without .git directory
1619

1720
%:
1821
dh $@
@@ -27,7 +30,7 @@ endif
2730

2831
override_dh_auto_install:
2932
# install don't allow to rename files (like wars), so we copy here the file we want to install with the package
30-
cp $(CURDIR)/target/ipt-$(CURVERSION).war $(CURDIR)/target/ipt.war
33+
cp $(CURDIR)/target/ipt-$(CURVERSION)-rnull.war $(CURDIR)/target/ipt.war
3134

3235
override_dh_fixperms:
3336
dh_fixperms

0 commit comments

Comments
 (0)