mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
3c4221bc40
Suppose we have 3 files with version in their names: * file-2.1.tgz * file-2.2.tgz * file-2.10.tgz It is impossible to see them in natural order using standard facilities, they will be sorted in alphabet order: * file-2.1.tgz * file-2.10.tgz * file-2.2.tgz There was some attempts to fix this. I've picked up the patch by Roland Illig <roland illig gmx de> (http://mail.gnome.org/archives/mc-devel/2004-July/msg00016.html) and adopted it for today's git snapshot. It adds "version" option to the sort menu, which uses copy of strverscmp function from glibc. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
14 lines
219 B
Makefile
14 lines
219 B
Makefile
noinst_LTLIBRARIES = libmcstrutil.la
|
|
|
|
libmcstrutil_la_SOURCES = \
|
|
strescape.c \
|
|
strutil8bit.c \
|
|
strutilascii.c \
|
|
strutil.c \
|
|
strutilutf8.c \
|
|
strverscmp.c
|
|
|
|
|
|
|
|
libmcstrutil_la_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS)
|