Last active
October 23, 2015 16:25
-
-
Save SjB/dfc296cd49995d3926b7 to your computer and use it in GitHub Desktop.
fetch an archive and extract it in the path specified
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Action<string, string> FetchDependent = delegate(string file, string path) { | |
| var dslmioLibDir = thirdPartyLibDir + Directory(path); | |
| if (!DirectoryExists(dslmioLibDir)) { | |
| Information(file); | |
| var tempFile = DownloadFile(file); | |
| Information(tempFile.ToString()); | |
| if (file.EndsWith("zip")) { | |
| Unzip(tempFile, thirdPartyLibDir); | |
| } else { | |
| Tar(tempFile, thirdPartyLibDir); | |
| } | |
| DeleteFile(tempFile); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment