Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build scripts are no longer needed

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