Github user rsafonseca commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/626#discussion_r35627314
--- Diff: debian/rules ---
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# -*- makefile -*-
-VERSION := $(shell mvn
org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
-Dexpression=project.version | grep -v "\[")
+VERSION := $(shell cat pom.xml |sed '22!d'| cut -d'>' -f2 |cut -d'<' -f1)
--- End diff --
I proposed a similar solution before that was not merged on master, but was
merged on 4.4 . It doesn't use line number. just check the 4.4 file :-)
On Jul 28, 2015 8:24 AM, "koushik-das" <[email protected]> wrote:
> In debian/rules
> <https://github.com/apache/cloudstack/pull/626#discussion_r35620265>:
>
> > @@ -1,6 +1,6 @@
> > #!/usr/bin/make -f
> > # -*- makefile -*-
> > -VERSION := $(shell mvn
org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
-Dexpression=project.version | grep -v "\[")
> > +VERSION := $(shell cat pom.xml |sed '22!d'| cut -d'>' -f2 |cut -d'<'
-f1)
>
> Is it possible to avoid using the line number (22)? If the line number
> changes for some reason then it won't work.
>
> â
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/cloudstack/pull/626/files#r35620265>.
>
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---