<commit_before>include config.mak
-include omi-1.0.8/output/config.mak
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_P),x86_64)
 PF_ARCH := x64
else
 PF_ARCH := x86
endif

all:
	mkdir -p intermediate/Scripts
ifeq ($(BUILD_LOCAL),1)
	make local
else
	cd ../pal/build; ./configure --enable-ulinux
	for f in Providers/Scripts/InstalledScripts/*.py; do \
	  cat $$f | \
	  sed "s@<CONFIG_BINDIR>@/opt/omi/bin@" | \
	  sed "s@<CONFIG_LIBDIR>@/opt/omi/lib@" | \
	  sed "s@<CONFIG_SYSCONFDIR>@/etc/opt/omi/conf@" | \
	  sed "s@<DSC_PATH>@/opt/microsoft/dsc@" > intermediate/Scripts/`basename $$f`; \
	  chmod a+x intermediate/Scripts/`basename $$f`; \
	done
 ifeq ($(BUILD_SSL_098),1)
	rm -rf omi-1.0.8/output_openssl_0.9.8/lib/libdsccore.so
	make kit098 
 endif
 ifeq ($(BUILD_SSL_100),1)
	rm -rf omi-1.0.8/output_openssl_1.0.0/lib/libdsccore.so
	make kit100 
 endif
	make nxNetworking
	make nxComputerManagement
	mkdir -p release; \
	rm -rf release/*.{rpm,deb}; \
	mv omi-1.0.8/output_openssl_0.9.8/release/*.{rpm,deb} omi-1.0.8/output_openssl_1.0.0/release/*.{rpm,deb} output/release/*.{rpm,deb} release/
endif

kit098: omi098 dsc098

kit100: omi100 dsc100

dsc098: lcm098 providers
	make -C installbuilder SSL_VERSION=098 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

dsc100: lcm100 providers
	make -C installbuilder SSL_VERSION=100 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

omi098:
	make configureomi098
	rm -rf omi-1.0.8/output
	ln -s output_openssl_0.9.8 omi-1.0.8/output
	make -C omi-1.0.8
	make -C omi-1.0.8/installbuilder SSL_VERSION=098 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

omi100:
	make configureomi100
	rm -rf omi-1.0.8/output
	ln -s output_openssl_1.0.0 omi-1.0.8/output
	make -C omi-1.0.8
	make -C omi-1.0.8/installbuilder SSL_VERSION=100 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

configureomi098:
	(cd omi-1.0.8; chmod +x ./scripts/fixdist; ./scripts/fixdist; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_0.9.8 --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags=$(openssl098_cflags) --openssllibs=$(openssl098_libs) --openssllibdir=$(openssl098_libdir))

configureomi100:
	(cd omi-1.0.8; chmod +x ./scripts/fixdist; ./scripts/fixdist; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_1.0.0 --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags=$(openssl100_cflags) --openssllibs=$(openssl100_libs) --openssllibdir=$(openssl100_libdir))
<commit_msg>Fix to bring DSC's configure of OMI to be the same as SCX's<commit_after>include config.mak
-include omi-1.0.8/output/config.mak
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_P),x86_64)
 PF_ARCH := x64
else
 PF_ARCH := x86
endif

all:
	mkdir -p intermediate/Scripts
ifeq ($(BUILD_LOCAL),1)
	make local
else
	cd ../pal/build; ./configure --enable-ulinux
	for f in Providers/Scripts/InstalledScripts/*.py; do \
	  cat $$f | \
	  sed "s@<CONFIG_BINDIR>@/opt/omi/bin@" | \
	  sed "s@<CONFIG_LIBDIR>@/opt/omi/lib@" | \
	  sed "s@<CONFIG_SYSCONFDIR>@/etc/opt/omi/conf@" | \
	  sed "s@<DSC_PATH>@/opt/microsoft/dsc@" > intermediate/Scripts/`basename $$f`; \
	  chmod a+x intermediate/Scripts/`basename $$f`; \
	done
 ifeq ($(BUILD_SSL_098),1)
	rm -rf omi-1.0.8/output_openssl_0.9.8/lib/libdsccore.so
	make kit098 
 endif
 ifeq ($(BUILD_SSL_100),1)
	rm -rf omi-1.0.8/output_openssl_1.0.0/lib/libdsccore.so
	make kit100 
 endif
	make nxNetworking
	make nxComputerManagement
	mkdir -p release; \
	rm -rf release/*.{rpm,deb}; \
	mv omi-1.0.8/output_openssl_0.9.8/release/*.{rpm,deb} omi-1.0.8/output_openssl_1.0.0/release/*.{rpm,deb} output/release/*.{rpm,deb} release/
endif

kit098: omi098 dsc098

kit100: omi100 dsc100

dsc098: lcm098 providers
	make -C installbuilder SSL_VERSION=098 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

dsc100: lcm100 providers
	make -C installbuilder SSL_VERSION=100 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

omi098:
	make configureomi098
	rm -rf omi-1.0.8/output
	ln -s output_openssl_0.9.8 omi-1.0.8/output
	make -C omi-1.0.8
	make -C omi-1.0.8/installbuilder SSL_VERSION=098 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

omi100:
	make configureomi100
	rm -rf omi-1.0.8/output
	ln -s output_openssl_1.0.0 omi-1.0.8/output
	make -C omi-1.0.8
	make -C omi-1.0.8/installbuilder SSL_VERSION=100 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG)

configureomi098:
	(cd omi-1.0.8; chmod +x ./scripts/fixdist; ./scripts/fixdist; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_0.9.8 --localstatedir=/var/opt/omi --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags=$(openssl098_cflags) --openssllibs=$(openssl098_libs) --openssllibdir=$(openssl098_libdir))

configureomi100:
	(cd omi-1.0.8; chmod +x ./scripts/fixdist; ./scripts/fixdist; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_1.0.0 --localstatedir=/var/opt/omi --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags=$(openssl100_cflags) --openssllibs=$(openssl100_libs) --openssllibdir=$(openssl100_libdir))

{'fraction_non_alphanumeric': 0.16524105754276827, 'fraction_numerical': 0.0660964230171073, 'mean_word_length': 4.233977619532045, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1927314', 'n_tokens_mistral': 2420, 'n_tokens_neox': 2165, 'n_words': 372}