Skip to content

Commit

Permalink
Merge pull request #35 from nsoperations/fix/performance-improvement
Browse files Browse the repository at this point in the history
Added caching for commonly used commands
  • Loading branch information
werner77 authored Nov 6, 2019
2 parents bedb17e + c1e0ea5 commit b0d1c82
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 131 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/xcrun make -f

CARTHAGE_TEMPORARY_FOLDER?=/tmp/Carthage.dst
CARTHAGE_TEMPORARY_FOLDER?=/tmp/Carthage++.dst
PREFIX?=/usr/local
CONFIGURATION?=release

INTERNAL_PACKAGE=CarthageApp.pkg
OUTPUT_PACKAGE=Carthage.pkg
OUTPUT_PACKAGE=Carthage++.pkg

CARTHAGE_EXECUTABLE=./.build/$(CONFIGURATION)/carthage
BINARIES_FOLDER=/usr/local/bin
Expand Down Expand Up @@ -58,10 +58,10 @@ installables:

package: installables
$(MKDIR) "$(CARTHAGE_TEMPORARY_FOLDER)$(BINARIES_FOLDER)"
$(CP) "$(CARTHAGE_EXECUTABLE)" "$(CARTHAGE_TEMPORARY_FOLDER)$(BINARIES_FOLDER)"
$(CP) "$(CARTHAGE_EXECUTABLE)" "$(CARTHAGE_TEMPORARY_FOLDER)$(BINARIES_FOLDER)/carthage++"

pkgbuild \
--identifier "org.carthage.carthage" \
--identifier "org.carthage.carthage++" \
--install-location "/" \
--root "$(CARTHAGE_TEMPORARY_FOLDER)" \
--version "$(VERSION_STRING)" \
Expand All @@ -74,13 +74,13 @@ package: installables

prefix_install: installables
$(MKDIR) "$(PREFIX)/bin"
$(CP) -f "$(CARTHAGE_EXECUTABLE)" "$(PREFIX)/bin/"
$(CP) -f "$(CARTHAGE_EXECUTABLE)" "$(PREFIX)/bin/carthage++"

install: installables
$(SUDO) $(CP) -f "$(CARTHAGE_EXECUTABLE)" "$(BINARIES_FOLDER)"
$(SUDO) $(CP) -f "$(CARTHAGE_EXECUTABLE)" "$(BINARIES_FOLDER)/carthage++"

uninstall:
$(RM) "$(BINARIES_FOLDER)/carthage"
$(RM) "$(BINARIES_FOLDER)/carthage++"

.build/libSwiftPM.xcconfig:
mkdir -p .build
Expand Down
Loading

0 comments on commit b0d1c82

Please sign in to comment.