<commit_before>#
# WEB: http://www.uclibc.org/downloads/
#
#
# Original url: http://www.uclibc.org/downloads/
#

COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)

url               = ftp://ftp.radix.pro/sources/uClinux/uClibc

versions          = 0.9.33.1 0.9.33.2
locale_versions   = 030818

tarballs          = $(addsuffix .tar.bz2, $(addprefix uClibc-, $(versions)))
sha1s             = $(addsuffix .sha1sum, $(tarballs))

locale_tarballs   = $(addsuffix .tgz, $(addprefix uClibc-locale-, $(locale_versions)))
locale_sha1s      = $(addsuffix .sha1sum, $(locale_tarballs))


BUILD_TARGETS     = $(tarballs) $(locale_tarballs) $(sha1s) $(locale_sha1s)


include ../../../build-system/core.mk


.PHONY: downloads_clean


$(tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for tarball in $(tarballs) ; do \
	  wget $(WGET_OPTIONS) -N $(url)/$$tarball ; \
	done
	@echo -e "\n======= Create Patches =======\n"
	@( cd create-patch-0.9.33.2-pth-spinlock && ./create.patch.sh )
	@( cd create-patch-0.9.33.2-out-of-tree && ./create.patch.sh )
	@( cd create-patch-0.9.33.2-030818-locale && ./create.patch.sh )

$(locale_tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for tarball in $(locale_tarballs) ; do \
	  wget $(WGET_OPTIONS) -N $(url)/$$tarball ; \
	done

$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
	@for sha in $@ ; do \
	  echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
	  wget $(WGET_OPTIONS) -N $(url)/$$sha ; \
	  touch $$sha ; \
	  echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
	  sha1sum --check $$sha ; ret="$$?" ; \
	  if [ "$$ret" == "1" ]; then \<commit_msg>Patching sequence is changed<commit_after>#
# WEB: http://www.uclibc.org/downloads/
#
#
# Original url: http://www.uclibc.org/downloads/
#

COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)

url               = ftp://ftp.radix.pro/sources/uClinux/uClibc

versions          = 0.9.33.1 0.9.33.2
locale_versions   = 030818

tarballs          = $(addsuffix .tar.bz2, $(addprefix uClibc-, $(versions)))
sha1s             = $(addsuffix .sha1sum, $(tarballs))

locale_tarballs   = $(addsuffix .tgz, $(addprefix uClibc-locale-, $(locale_versions)))
locale_sha1s      = $(addsuffix .sha1sum, $(locale_tarballs))


BUILD_TARGETS     = $(tarballs) $(locale_tarballs) $(sha1s) $(locale_sha1s)


include ../../../build-system/core.mk


.PHONY: downloads_clean


$(tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for tarball in $(tarballs) ; do \
	  wget $(WGET_OPTIONS) -N $(url)/$$tarball ; \
	done

$(locale_tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for tarball in $(locale_tarballs) ; do \
	  wget $(WGET_OPTIONS) -N $(url)/$$tarball ; \
	done
	@echo -e "\n======= Create Patches =======\n"
	@( cd create-patch-0.9.33.2-pth-spinlock && ./create.patch.sh )
	@( cd create-patch-0.9.33.2-out-of-tree && ./create.patch.sh )
	@( cd create-patch-0.9.33.2-030818-locale && ./create.patch.sh )

$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
	@for sha in $@ ; do \
	  echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
	  wget $(WGET_OPTIONS) -N $(url)/$$sha ; \
	  touch $$sha ; \
	  echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
	  sha1sum --check $$sha ; ret="$$?" ; \
	  if [ "$$ret" == "1" ]; then \
{'fraction_non_alphanumeric': 0.23228944968075402, 'fraction_numerical': 0.031012465795074492, 'mean_word_length': 3.031862745098039, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 10, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5877089', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1291, 'n_words': 265}