[Bug 757854] Review Request: kcalc - Scientific calculator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=757854

--- Comment #10 from Kevin Kofler <kevin@xxxxxxxxxxxxxxxx> 2011-12-01 22:23:12 EST ---
> %global revision %(echo %{version} | sed 's/^.*\.\([^.]*\)$/\1/g')

We found that the backslashes need to be escaped, as in:

%global revision %(echo %{version} | sed 's/^.*\\.\\([^.]*\\)$/\\1/g')

This always takes the last component of the version. Alternatively, this also
works, assuming that the version has 3 components (it always takes the 3rd
component):

%global revision %(echo %{version} | cut -d. -f3)

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]