<commit_before># $FreeBSD$

.include <bsd.own.mk>

.if ${MK_BSD_SORT} == "yes"
PROG=	sort
.else
PROG=	bsdsort
CLEANFILES+= bsdsort.1

bsdsort.1: sort.1
	cp ${.ALLSRC} ${.TARGET}
.endif

SRCS=	bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c

WARNS=	6

sort.1: sort.1.in
	/usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}

CLEANFILES+= sort.1

.if !defined(WITHOUT_THREADS)
CFLAGS+= -DSORT_THREADS
LDFLAGS+= -lpthread -lmd
MAN_SUB+= -e 's|%%THREADS%%||g'
.else
LDFLAGS+= -lmd
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
.endif

.if !defined(WITHOUT_NLS)
NLS+=	hu_HU.ISO8859-2
NLSSRCFILES= ${NLS:S@$@.msg@}
MAN_SUB+= -e 's|%%NLS%%||g'
.for lang in ${NLS}
NLSSRCDIR_${lang}= ${.CURDIR}/nls
.endfor
.else
CFLAGS+= -DWITHOUT_NLS
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
.endif

.include <bsd.prog.mk><commit_msg>- Disable threaded sort by default - Fix typo in the NLS support<commit_after># $FreeBSD$

.include <bsd.own.mk>

.if ${MK_BSD_SORT} == "yes"
PROG=	sort
.else
PROG=	bsdsort
CLEANFILES+= bsdsort.1

bsdsort.1: sort.1
	cp ${.ALLSRC} ${.TARGET}
.endif

SRCS=	bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c

WARNS=	6

sort.1: sort.1.in
	/usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}

CLEANFILES+= sort.1

.if defined(WITH_THREADS)
CFLAGS+= -DSORT_THREADS
LDFLAGS+= -lpthread -lmd
MAN_SUB+= -e 's|%%THREADS%%||g'
.else
LDFLAGS+= -lmd
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
.endif

.if !defined(WITHOUT_NLS)
NLS+=	hu_HU.ISO8859-2
NLSSRCFILES= ${NLS:S@$@.msg@}
MAN_SUB+= -e 's|%%NLS%%||g'
.for lang in ${NLS}
NLSSRCDIR_${lang}= ${.CURDIR}/nls
.endfor
.else
CFLAGS+= -DWITHOUT_NLS
MAN_SUB+= -e 's|%%NLS%%|\.\\"|g'
.endif

.include <bsd.prog.mk>
{'fraction_non_alphanumeric': 0.22404371584699453, 'fraction_numerical': 0.014571948998178506, 'mean_word_length': 4.16614420062696, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3789366', 'n_tokens_mistral': 841, 'n_tokens_neox': 809, 'n_words': 170}