Skip to content
This repository
Browse code

Build scripts are no longer needed

  • Loading branch information...
commit 81a16dd4dd5285f1931af06a87a1f2d04d052124 1 parent 2ee48a0
authored December 08, 2009
30  Scripts/BuildScripts/buildlibetpan.py
... ...
@@ -1,30 +0,0 @@
1  
-import os, fnmatch, glob, projectutils
2  
-
3  
-# Must be run from the root of the MailCore project
4  
-
5  
-if __name__ == "__main__":
6  
-	os.system('mkdir OpenSourceProjects/build')
7  
-	
8  
-	# Build universal libetpan
9  
-	print "Expanding libetpan..."
10  
-	projectpath = projectutils.expandArchive(os.path.abspath("OpenSourceProjects/"),"libetpan")
11  
-	os.chdir(projectpath)
12  
-	print "Building libetpan i386"
13  
-	os.system('env CPPFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386" ./configure --disable-dependency-tracking --host i386')
14  
-	os.system('make')
15  
-	os.system('mkdir i386')
16  
-	os.system('mv src/.libs/*.a i386')
17  
-	print "Building libetpan PPC"
18  
-	os.system('make clean')
19  
-	os.system('env CPPFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc" ./configure --disable-dependency-tracking --host ppc')
20  
-	os.system('make')
21  
-	os.system('mkdir ppc')
22  
-	os.system('mv src/.libs/*.a ppc')
23  
-	print "Using lipo to create libetpan universal binary"
24  
-	os.system('lipo i386/libetpan.a ppc/libetpan.a -output ../build/libetpan.a -create')
25  
-	print "Creating headers"
26  
-	projectutils.searchAndReplaceInDirectory('include', r'include <libetpan/(.*?)>', r'include "\1"')
27  
-	os.system('cp -r include ../')
28  
-	
29  
-	
30  
-	
10  Scripts/BuildScripts/buildopensource.py
... ...
@@ -1,10 +0,0 @@
1  
-import os, fnmatch, glob, projectutils
2  
-
3  
-# Must be run from the root of the project
4  
-
5  
-if __name__ == "__main__":
6  
-	if(os.path.exists("OpenSourceProjects/build") == False):
7  
-		os.system('python Scripts/BuildScripts/buildlibetpan.py')
8  
-
9  
-	
10  
-	
23  Scripts/BuildScripts/buildrelease.sh
... ...
@@ -1,23 +0,0 @@
1  
-#! /usr/bin/sh
2  
-
3  
-# Run this from the root of the MailCore project
4  
-# Pass in as an arg the tag name for the release
5  
-
6  
-mkdir -p build/MailCore
7  
-xcodebuild -configuration Release
8  
-cp -R build/Release/MailCore.framework build/MailCore
9  
-cp -R Documentation/ build/MailCore/Documentation
10  
-cd Examples/InboxLister
11  
-xcodebuild clean
12  
-cd ../MessageSender
13  
-xcodebuild clean
14  
-cd ../..
15  
-cp -R Examples build/MailCore
16  
-cp Resources/GETTING_STARTED.txt build/MailCore
17  
-cp Resources/LICENSE.txt build/MailCore
18  
-cp Resources/RELEASE_NOTES.txt build/MailCore
19  
-cd build/MailCore
20  
-ln -s Documentation/index.html index.html
21  
-hg clone -r $1 https://bitbucket.org/mronge/mailcore/ src
22  
-cd ..
23  
-tar czf MailCore.tar.gz MailCore
29  Scripts/BuildScripts/projectutils.py
... ...
@@ -1,29 +0,0 @@
1  
-import os, fnmatch, glob, re
2  
-
3  
-def expandArchive(directory, archiveName):
4  
-	""" Given a directory, it will try and find an archive that 
5  
-		has name that begins with archiveName and will then expand it """
6  
-	for path, subdirs, files in os.walk(directory):
7  
-		for filename in files:
8  
-			pattern = archiveName+"*.tar.gz"
9  
-			if(fnmatch.fnmatch(filename,pattern)):
10  
-				archivePath = os.path.join(path, filename)
11  
-				os.chdir(directory)
12  
-				os.system("tar xzf \""+archivePath+"\"");
13  
-				return os.path.join(path, filename[:-7])
14  
-
15  
-def searchAndReplaceInDirectory(directory, regex, replacement):
16  
-	""" Given a directory this will go through and do a search and a replace
17  
-		with the regex and will replace with replacement """
18  
-	for path, subdirs, files in os.walk(directory):
19  
-		for name in files:
20  
-			fullPath = os.path.join(path,name)
21  
-			thefile = open(fullPath,'r+')
22  
-			lines = thefile.readlines()
23  
-			thefile.close()
24  
-			newfile = open(fullPath, 'w')
25  
-			newlines = []
26  
-			for line in lines:
27  
-				newlines.append(re.sub(regex, replacement, line))
28  
-			newfile.writelines(newlines)
29  
-			newfile.close()
8  Scripts/BuildScripts/publish.sh
... ...
@@ -1,8 +0,0 @@
1  
-#! /usr/bin/sh
2  
-
3  
-# Run this from the root of the MailCore project
4  
-# Arg 1 is the tag name
5  
-
6  
-cp -r Documentation API
7  
-scp -r API mronge.com:/var/www/mronge/m/MailCore/API
8  
-scp build/MailCore.tar.gz mronge.com:/var/www/mronge/m/MailCore/MailCore-$1.tar.gz

0 notes on commit 81a16dd

Please sign in to comment.
Something went wrong with that request. Please try again.