<commit_before># $Id: xeno-fetch.mk,v 1.1 2007/03/08 09:23:09 tho Exp $
#
# xeno helper for just fetching a package from a given set of locations
# to a local XENO_DIST_DIR.
# NOTE: when using multiple XENO_FETCH_URIs set XENO_TARBALL explicitly
#
# Available Targets:
# - all, clean (and fetch hooks)

XENO_NO_UNZIP = true
XENO_NO_CONF = true
XENO_NO_BUILD = true
XENO_NO_PATCH = true
XENO_NO_INSTALL = true

include xeno.mk<commit_msg>[makl] added XENO_FETCH_MULTI_URI to xeno-fetch.mk to allow multiple different tarballs download<commit_after># $Id: xeno-fetch.mk,v 1.2 2008/03/04 16:49:59 tho Exp $
#
# xeno helper for just fetching a package from a given set of locations
# to a local XENO_DIST_DIR.
# NOTE: when using multiple XENO_FETCH_URIs set XENO_TARBALL explicitly
# XENO_FETCH_MULTI_URI can be used instead of XENO_FETCH_URI for fetching
# multiple different tarballs from different locations into XENO_DIST_DIR.
#
# Available Targets:
# - all, clean (and fetch hooks)

XENO_NO_UNZIP = true
XENO_NO_CONF = true
XENO_NO_BUILD = true
XENO_NO_PATCH = true
XENO_NO_INSTALL = true

include xeno.mk

ifdef XENO_FETCH_MULTI_URI

##
## rewrite .realfetch and fetch-{clean,purge}
##
XENO_NO_FETCH = true

XENO_FETCH_MULTI_CLEANFILES ?= $(addprefix $(XENO_DIST_DIR)/, \
        $(foreach cf, $(XENO_FETCH_MULTI_URI), $(notdir $(cf))))

.realfetch:
	[ -d $(XENO_DIST_DIR) ] || mkdir -p $(XENO_DIST_DIR) ; \
    ( \
        cd $(XENO_DIST_DIR) ; \
        set $(XENO_FETCH_MULTI_URI) ; \
        while [ $$# -gt 0 ]; do \
            echo "now fetching $$1 into $(XENO_DIST_DIR)" ; \
            $(XENO_FETCH) $(XENO_FETCH_FLAGS) $$1 ; \
            [ $$? = 0 ] || exit 1 ; \
            shift; \
        done \
    ) && touch .realfetch

fetch-clean fetch-purge: fetch-clean-pre
	@rm -f $(XENO_FETCH_MULTI_CLEANFILES)
	@-rmdir $(XENO_DIST_DIR) 2>/dev/null
	@rm -f .realfetch

endif   # XENO_FETCH_MULTI_URI
{'fraction_non_alphanumeric': 0.10895756940806706, 'fraction_numerical': 0.01990570979570456, 'mean_word_length': 3.580335731414868, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2683484', 'n_tokens_mistral': 793, 'n_tokens_neox': 733, 'n_words': 190}