diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-09-17 06:29:58 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-09-17 06:29:58 +0000 |
commit | d0cae7cd7fefa852931d6b82e44c1532ed5efb2d (patch) | |
tree | 39c18a7f4d321e7bbba3efcae884f1fb29ee7ca4 /libs | |
parent | Remove deprecated and undocumented function. (diff) | |
download | eselect-d0cae7cd7fefa852931d6b82e44c1532ed5efb2d.tar.gz eselect-d0cae7cd7fefa852931d6b82e44c1532ed5efb2d.tar.bz2 eselect-d0cae7cd7fefa852931d6b82e44c1532ed5efb2d.zip |
Remove also slashes from date string in svn_date_to_version.
svn path=/trunk/; revision=651
Diffstat (limited to 'libs')
-rw-r--r-- | libs/manip.bash.in | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/manip.bash.in b/libs/manip.bash.in index 995e8fb..8466e7c 100644 --- a/libs/manip.bash.in +++ b/libs/manip.bash.in @@ -16,13 +16,12 @@ # eselect. If not, see <http://www.gnu.org/licenses/>. # svn_date_to_version PUBLIC -# Turn an svn date string into a nice version number, for those of us who -# are too lazy to manually update VERSION in modules. Safe to use in global -# scope. +# Turn an SVN or CVS date string into a nice version number, for those +# of us who are too lazy to manually update VERSION in modules. Safe to +# use in global scope. svn_date_to_version() { local s=${1} s=${s#* } s=${s%% *} - s=${s//-} - echo "${s}" + echo "${s//[-\/]}" } |