1#!/bin/bash
 2
 3# cleanupdate.sh
 4
 5printf "Clean up all Xcode files which are not needed\n"
 6
 7# You only need /Primpoly/Primpoly.xcodeproj which is the Xcode project 
 8# and /Primpoly which contains a duplicate copy of the source code.
 9
10printf "Removing /Build /ModuleCache.noindex /CompilationCache.noindex /Primpoly-RANDOMLETTERS /SymbolCache.noindex / SDKStatCaches.noindex\n"
11rm -rf Build
12rm -rf ModuleCache.noindex
13rm -rf CompilationCache.noindex
14rm -rf Primpoly-*
15rm -rf SymbolCache.noindex
16rm -rf SDKStatCaches.noindex
17
18printf "Copying over the source files to XCode's local copy of the source code.\n"
19
20cp -rf ../../SourceCode/Primpoly/*.cpp Primpoly/Primpoly
21cp -rf ../../SourceCode/Primpoly/*.hpp Primpoly/Primpoly
22
23printf "Removing syntax highlighted source files\n"
24rm -rf Primpoly/Primpoly/*.html
25
26printf "Done!\n"