<commit_before>#!/bin/bash

# Bash script for deploying built libraries and headers to Pod

if [ $# -lt 1 ]
then
	echo Usage: $0 path-to-pod-root 
	exit
else
	echo Checking if folder $1 actually exists...

	if [ ! -e "$1" ]; then
		echo Pod path $1 doesnot exist! Exiting... .
		exit
	fi
fi

##### Build XCode project if it doesn't exist
bash buildXCodeProject.sh 

##### Build iphoneos and iphonesimulator

libname="/libmusicxml2.a"
iphonebuildpath="$(pwd)/lib/Release/iphoneos$libname"
simulatorbuildpath="$(pwd)/lib/Release/iphonesimulator$libname"
universalpath="$(pwd)/lib/Release$libname"

xcodebuild -project iosdir/libmusicxml2.xcodeproj  -target musicxml2static -configuration Release -sdk iphoneos clean build CONFIGURATION_BUILD_DIR="lib/Release/iphoneos"
xcodebuild -project iosdir/libmusicxml2.xcodeproj  -target musicxml2static -configuration Release -arch x86_64 only_active_arch=no -sdk iphonesimulator clean build CONFIGURATION_BUILD_DIR="lib/Release/iphonesimulator"


##### Move to Pod location
# pod paths
podlibpath="$1/GuidoKit/Classes/Libs/libmusicxml$libname"
podsrcpath="$1/GuidoKit/Classes/Libs/libmusicxml"

##### Make Universal Lib and copy to Pod
# Check if Release-iphoneos and Release-iphonesimulator libraries exists

if [ -f "$iphonebuildpath" ]
then
	echo iPhoneOS lib exists!
else
	echo Build the iPhoneOS library in $iphonebuildpath ! Exiting... .
	exit
fi

if [ -f $simulatorbuildpath ]
then
	echo iPhoneSimulator lib exists!
else
	echo Build the simulator library in ./Release-iphonesimulator ! Exiting... .
	exit
fi

# Lipo them together
lipo -create $iphonebuildpath $simulatorbuildpath -output $universalpath

if [ $? -eq 0 ]; then
	echo Lipo built the Universal library! Copying to Pod.
else
	echo Lipo failed! Exiting... .
	exit
fi

cp -v $universalpath $podlibpath
if [ $? -eq 0 ]; then
	echo Universal Library copied to Pod $podlibpath
else
	echo Copy failed! Exiting... .
	exit
fi

##### Update src
localsrcpath="$(pwd)/../src"
rsync -avz --exclude 'antescofo' --exclude '.DS_Store' --exclude 'lilypond' $localsrcpath $podsrcpath


<commit_msg>xml2guido: minor change to antescofo script<commit_after>#!/bin/bash

# Bash script for deploying built libraries and headers to Pod

if [ $# -lt 1 ]
then
	echo Usage: $0 path-to-pod-root 
	exit
else
	echo Checking if folder $1 actually exists...

	if [ ! -e "$1" ]; then
		echo Pod path $1 doesnot exist! Exiting... .
		exit
	fi
fi

##### Build XCode project if it doesn't exist
bash buildXCodeProject.sh 

##### Build iphoneos and iphonesimulator

libname="/libmusicxml2.a"
iphonebuildpath="$(pwd)/lib/Release/iphoneos$libname"
simulatorbuildpath="$(pwd)/lib/Release/iphonesimulator$libname"
universalpath="$(pwd)/lib/Release$libname"

xcodebuild -project iosdir/libmusicxml2.xcodeproj  -target musicxml2static -configuration Release -sdk iphoneos clean build CONFIGURATION_BUILD_DIR="lib/Release/iphoneos"
xcodebuild -project iosdir/libmusicxml2.xcodeproj  -target musicxml2static -configuration Release -arch x86_64 only_active_arch=no -sdk iphonesimulator clean build CONFIGURATION_BUILD_DIR="lib/Release/iphonesimulator"


##### Move to Pod location
# pod paths
podlibpath="$1/GuidoKit/Classes/Libs/libmusicxml$libname"
podsrcpath="$1/GuidoKit/Classes/Libs/libmusicxml"

##### Make Universal Lib and copy to Pod
# Check if Release-iphoneos and Release-iphonesimulator libraries exists

if [ -f "$iphonebuildpath" ]
then
	echo iPhoneOS lib exists!
else
	echo Build the iPhoneOS library in $iphonebuildpath ! Exiting... .
	exit
fi

if [ -f $simulatorbuildpath ]
then
	echo iPhoneSimulator lib exists!
else
	echo Build the simulator library in ./Release-iphonesimulator ! Exiting... .
	exit
fi

# Lipo them together
lipo -create $iphonebuildpath $simulatorbuildpath -output $universalpath

if [ $? -eq 0 ]; then
	echo Lipo built the Universal library! Copying to Pod.
else
	echo Lipo failed! Exiting... .
	exit
fi

cp -v $universalpath $podlibpath
if [ $? -eq 0 ]; then
	echo Universal Library copied to Pod $podlibpath
else
	echo Copy failed! Exiting... .
	exit
fi

##### Update src
localsrcpath="$(pwd)/../src"
rsync -avz --exclude 'antescofo' --exclude '.DS_Store' --exclude 'Makefile' --exclude 'lilypond' $localsrcpath $podsrcpath



{'fraction_non_alphanumeric': 0.10895769321673364, 'fraction_numerical': 0.008744977546679272, 'mean_word_length': 4.553805774278215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 15}, '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': '2533815', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1395, 'n_words': 427}