File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,17 @@ if [ "$NUM_OF_FIELDS" -eq 0 ]; then
1717 export DEB_JRI_MAJOR=$DEB_JRI_PREFIX
1818 export DEB_JRI_MINOR=0
1919 export DEB_JRI_PATCH=0
20+ export DEB_JRI_SUBPATCH=" "
2021elif [ " $NUM_OF_FIELDS " -eq 2 ]; then
2122 export DEB_JRI_MAJOR=$( echo " $DEB_JRI_PREFIX " | cut -d . -f 1)
2223 export DEB_JRI_MINOR=$( echo " $DEB_JRI_PREFIX " | cut -d . -f 2)
2324 export DEB_JRI_PATCH=$( echo " $DEB_JRI_PREFIX " | cut -d . -f 3)
25+ export DEB_JRI_SUBPATCH=" "
26+ elif [ " $NUM_OF_FIELDS " -eq 3 ]; then
27+ export DEB_JRI_MAJOR=$( echo " $DEB_JRI_PREFIX " | cut -d . -f 1)
28+ export DEB_JRI_MINOR=$( echo " $DEB_JRI_PREFIX " | cut -d . -f 2)
29+ export DEB_JRI_PATCH=$( echo " $DEB_JRI_PREFIX " | cut -d . -f 3)
30+ export DEB_JRI_SUBPATCH=" .$( echo " $DEB_JRI_PREFIX " | cut -d . -f 4) "
2431else
2532 echo " Unsupported version string: $JAVA_VERSION " 1>&2
2633 exit 1
@@ -38,7 +45,7 @@ if [ -z "$DEB_JRI_PATCH" ]; then
3845fi
3946
4047PKG=" jri-${DEB_JRI_MAJOR} -${DEB_JRI_PLATFORM} "
41- PKGVER=" ${DEB_JRI_MAJOR} .${DEB_JRI_MINOR} .${DEB_JRI_PATCH} ~${DEB_JRI_BUILD} "
48+ PKGVER=" ${DEB_JRI_MAJOR} .${DEB_JRI_MINOR} .${DEB_JRI_PATCH}${DEB_JRI_SUBPATCH} ~${DEB_JRI_BUILD} "
4249PKGNAME=" ${PKG} _${PKGVER} "
4350DATE=$( LC_ALL=C date -R)
4451if [ -z " $DISTRO " ]; then
You can’t perform that action at this time.
0 commit comments