We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b03f68 commit c5e7b7bCopy full SHA for c5e7b7b
1 file changed
sj-version.sh
@@ -20,6 +20,18 @@ props() {
20
sort
21
}
22
23
+if [ -z "$version" ]
24
+then
25
+ # try to extract version from pom.xml in this directory
26
+ if [ -e pom.xml ]
27
+ then
28
+ version=$(grep -A 1 pom-scijava pom.xml | \
29
+ grep '<version>' | \
30
+ sed 's/<\/.*//' | \
31
+ sed 's/.*>//')
32
+ fi
33
+fi
34
+
35
if [ -z "$version" ]
36
then
37
echo "Usage: sj-version.sh version [version-to-diff]"
0 commit comments