<commit_before>.DEFAULT_GOAL := all
.PHONY:	all clean clobber check

MIRROR_PREFIX_=http://psg.mtu.edu/pub/apache/
VERSION=3.1.2
BASENAME=xerces-c-$(VERSION)
ZIPPEDFILE=../Origs-Cache/$(BASENAME).tar.gz
TARFILE=$(BASENAME).tar
EXTRACTED_DIRNAME=$(BASENAME)
SLINKDIRNAME=$(BASENAME)
USE_DIRNAME=CURRENT

TRGDIR=CURRENT

FETCHURL=$(MIRROR_PREFIX_)/xerces/c/3/sources/$(BASENAME).tar.gz

UNAME := $(shell uname)

BUILDS_ROOT=../../Builds/



all:
	@echo "Building Stroika/ThirdPartyLibs/xerces $(VERSION)..."
	@$(MAKE) --no-print-directory doCreate
	@$(MAKE) --no-print-directory doBuild
	@$(MAKE) --no-print-directory check

clean:
	@rm -rf $(EXTRACTED_DIRNAME) CURRENT

check:
	@echo -n "   ...Checking..."
ifeq (,$(findstring CYGWIN,$(UNAME)))
	@if [ ! -e $(BUILDS_ROOT)/DefaultConfiguration/ThirdPartyLibs/libxerces-c.a ]; then\
		echo "   FAILED: missing $(BUILDS_ROOT)/DefaultConfiguration/ThirdPartyLibs/libxerces-c.a;\
	else\
		echo "   Stroika/ThirdPartyLibs/Xerces - [Succeeded]";\
	fi
else
	@if [ ! -e $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs/xerces-c_static_3D.lib ]; then\
		echo "   FAILED: missing $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs/xerces-c_static_3D.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-U-32/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-U-32/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Debug-U-64/ThirdPartyLibs/xerces-c_static_3D.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Debug-U-64/ThirdPartyLibs/xerces-c_static_3D.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-U-64/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-U-64/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-Logging-U-64//ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-Logging-U-64/ThirdPartyLibs/xerces-c_static_3.lib";\
	else\
		echo "   Stroika/ThirdPartyLibs/Xerces - [Succeeded]";\
	fi
endif


clobber:
	@rm -rf $(EXTRACTED_DIRNAME) CURRENT $(BUILDS_ROOT)*/ThirdPartyLibs/*xerces*

$(ZIPPEDFILE):
	@echo -n "   ..."
	wget --quiet --tries=10 --no-check-certificate -O $(ZIPPEDFILE) $(FETCHURL) || (rm -f $(ZIPPEDFILE) && false)


doCreate:	$(ZIPPEDFILE)
	@if [ -e  CURRENT/src/xercesc/dom/impl/DOMLocatorImpl.hpp ]; then\
		echo "   ...CURRENT dir already exists";\
	else\
		echo "   ...Creating $(TRGDIR)...";\
		rm -rf $(USE_DIRNAME) CURRENT;\
		tar xf $(ZIPPEDFILE) --no-same-owner;\
		mv $(EXTRACTED_DIRNAME) $(TRGDIR);\
		#ln -s CURRENT $(SLINKDIRNAME);\
		echo "   ...Patching Xerces...";\
		(cd CURRENT; tar xf ../Patches/VC11Projects.tar.gz --no-same-owner);\
		(cd CURRENT; tar xf ../Patches/VC12Projects.tar.gz --no-same-owner);\
		chmod --recursive +rwx CURRENT/projects;\
	fi

doBuild:
	@echo "   ...Compiling REDIRECT to BUILD.OUT..."
	@./buildall_.pl build > BUILD.OUT 2>&1
	@echo "   ...Copying builds to ... $(BUILDS_ROOT)"
ifeq (,$(findstring CYGWIN,$(shell uname)))
	@mkdir -p $(BUILDS_ROOT)DefaultConfiguration/ThirdPartyLibs && cp CURRENT/src/.libs/libxerces-c.a $(BUILDS_ROOT)DefaultConfiguration/ThirdPartyLibs/
else
	@mkdir -p $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Debug"/xerces-c_static_3D* $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Debug-U-64/ThirdPartyLibs && cp "CURRENT/Build/Win64/VC12/Static Debug"/xerces-c_static_3D* $(BUILDS_ROOT)Debug-U-64/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-U-64/ThirdPartyLibs && cp "CURRENT/Build/Win64/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-U-64/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-Logging-U-64/ThirdPartyLibs && cp "CURRENT/Build/Win64/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-Logging-U-64/ThirdPartyLibs/
endif<commit_msg>minir fix to copy/xerces libs to Builds/ThirdPartyProducts<commit_after>.DEFAULT_GOAL := all
.PHONY:	all clean clobber check

MIRROR_PREFIX_=http://psg.mtu.edu/pub/apache/
VERSION=3.1.2
BASENAME=xerces-c-$(VERSION)
ZIPPEDFILE=../Origs-Cache/$(BASENAME).tar.gz
TARFILE=$(BASENAME).tar
EXTRACTED_DIRNAME=$(BASENAME)
SLINKDIRNAME=$(BASENAME)
USE_DIRNAME=CURRENT

TRGDIR=CURRENT

FETCHURL=$(MIRROR_PREFIX_)/xerces/c/3/sources/$(BASENAME).tar.gz

UNAME := $(shell uname)

BUILDS_ROOT=../../Builds/



all:
	@echo "Building Stroika/ThirdPartyLibs/xerces $(VERSION)..."
	@$(MAKE) --no-print-directory doCreate
	@$(MAKE) --no-print-directory doBuild
	@$(MAKE) --no-print-directory check

clean:
	@rm -rf $(EXTRACTED_DIRNAME) CURRENT

check:
	@echo -n "   ...Checking..."
ifeq (,$(findstring CYGWIN,$(UNAME)))
	@if [ ! -e $(BUILDS_ROOT)/DefaultConfiguration/ThirdPartyLibs/libxerces-c.a ]; then\
		echo "   FAILED: missing $(BUILDS_ROOT)/DefaultConfiguration/ThirdPartyLibs/libxerces-c.a;\
	else\
		echo "   Stroika/ThirdPartyLibs/Xerces - [Succeeded]";\
	fi
else
	@if [ ! -e $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs/xerces-c_static_3D.lib ]; then\
		echo "   FAILED: missing $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs/xerces-c_static_3D.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-U-32/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-U-32/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Debug-U-64/ThirdPartyLibs/xerces-c_static_3D.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Debug-U-64/ThirdPartyLibs/xerces-c_static_3D.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-U-64/ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-U-64/ThirdPartyLibs/xerces-c_static_3.lib";\
	elif [ ! -e $(BUILDS_ROOT)Release-Logging-U-64//ThirdPartyLibs/xerces-c_static_3.lib ]; then\
		echo "   FAILED: missing (BUILDS_ROOT)Release-Logging-U-64/ThirdPartyLibs/xerces-c_static_3.lib";\
	else\
		echo "   Stroika/ThirdPartyLibs/Xerces - [Succeeded]";\
	fi
endif


clobber:
	@rm -rf $(EXTRACTED_DIRNAME) CURRENT $(BUILDS_ROOT)*/ThirdPartyLibs/*xerces*

$(ZIPPEDFILE):
	@echo -n "   ..."
	wget --quiet --tries=10 --no-check-certificate -O $(ZIPPEDFILE) $(FETCHURL) || (rm -f $(ZIPPEDFILE) && false)


doCreate:	$(ZIPPEDFILE)
	@if [ -e  CURRENT/src/xercesc/dom/impl/DOMLocatorImpl.hpp ]; then\
		echo "   ...CURRENT dir already exists";\
	else\
		echo "   ...Creating $(TRGDIR)...";\
		rm -rf $(USE_DIRNAME) CURRENT;\
		tar xf $(ZIPPEDFILE) --no-same-owner;\
		mv $(EXTRACTED_DIRNAME) $(TRGDIR);\
		#ln -s CURRENT $(SLINKDIRNAME);\
		echo "   ...Patching Xerces...";\
		(cd CURRENT; tar xf ../Patches/VC11Projects.tar.gz --no-same-owner);\
		(cd CURRENT; tar xf ../Patches/VC12Projects.tar.gz --no-same-owner);\
		chmod --recursive +rwx CURRENT/projects;\
	fi

doBuild:
	@echo "   ...Compiling REDIRECT to BUILD.OUT..."
	@./buildall_.pl build > BUILD.OUT 2>&1
	@echo "   ...Copying builds to ... $(BUILDS_ROOT)"
ifeq (,$(findstring CYGWIN,$(shell uname)))
	@mkdir -p $(BUILDS_ROOT)DefaultConfiguration/ThirdPartyLibs && cp CURRENT/src/.libs/libxerces-c.a $(BUILDS_ROOT)DefaultConfiguration/ThirdPartyLibs/
else
	@mkdir -p $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Debug"/xerces-c_static_3* $(BUILDS_ROOT)Debug-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-DbgMemLeaks-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs && cp "CURRENT/Build/Win32/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-Logging-U-32/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Debug-U-64/ThirdPartyLibs && cp "CURRENT/Build/Win64/VC12/Static Debug"/xerces-c_static_3* $(BUILDS_ROOT)Debug-U-64/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-U-64/ThirdPartyLibs && cp "CURRENT/Build/Win64/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-U-64/ThirdPartyLibs/
	@mkdir -p $(BUILDS_ROOT)Release-Logging-U-64/ThirdPartyLibs && cp "CURRENT/Build/Win64/VC12/Static Release"/xerces-c_static_3* $(BUILDS_ROOT)Release-Logging-U-64/ThirdPartyLibs/
endif
{'fraction_non_alphanumeric': 0.16987685506788758, 'fraction_numerical': 0.024628986422481843, 'mean_word_length': 4.495662232504338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1439254', 'n_tokens_mistral': 4387, 'n_tokens_neox': 3965, 'n_words': 543}