From fbc6bb0c42c3f35725fbe98db4e537e22c9a3aed Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Mon, 11 Apr 2016 09:40:00 -0600 Subject: [PATCH] Add clean_externals script --- script/clean_externals | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 script/clean_externals diff --git a/script/clean_externals b/script/clean_externals new file mode 100755 index 000000000..a25b6c530 --- /dev/null +++ b/script/clean_externals @@ -0,0 +1,22 @@ +#!/bin/bash -ex + +# +# clean_externals +# ObjectiveGit +# +# Removes the outputs from the various static library targets. +# Necessary when switching platforms/architectures as Xcode does not clean +# these for you. +# + +# A list of external static libraries included in the SwiftGit2 framework +libraries=( + External/libgit2.a + External/libgit2-ios/libgit2-ios.a + External/libssh2-ios/lib/libssh2-ios.a + External/ios-openssl/lib/libssl.a + External/ios-openssl/lib/libcrypto.a + External/ios-openssl/include +) + +rm -vrf "${libraries[@]}"