summaryrefslogtreecommitdiff
path: root/script
AgeCommit message (Collapse)Author
2020-02-22Update CI configurationlhchavez
This change: * Updates the GitHub actions so that they run different commands for the dynamic and static flavors of libgit2. * Updates the .travis.yml file so that it does roughly the same as the GitHub actions. * Adds the release-* branches to the CI configurations.
2020-02-12Merge pull request #503 from jonEbird/static-build-script-cleanuplhchavez
script/build-libgit2-static.sh: correctly set ROOT
2019-08-13script: tell libgit2 to use the builtin regex backendCarlos Martín Nieto
2019-05-07script/build-libgit2-static.sh: correctly set ROOTJon Miller
The ROOT variable is not being set correctly. Need to use dirname against $0 as well as only go up one directory instead of two.
2019-01-05Improve the static build scriptlhchavez
This change: * Uses the installed version of both the library and the pkgconfig file, which fixes path resolution on Ubuntu Xenial. * Uses quoting liberally so that paths with spaces in them are correctly handled. * Moves the build+install directories to static-build/ in the git2go repository to avoid having a dirty vendor/libgit2 checkout.
2018-08-23static: use pkg-config exclusively when using itRyan Graham
When using the static linking option on platforms that use pkg-config, use ONLY pkg-config to get the CFLAGS and LDFLAGS. This prevents pulling in dependencies and flags for any non-vendored version that may be present on the host. The main practical effect of this is that if someone doesn't need/want any sort of remote access support at all they can completely disable libcurl, libssh2, libssl, etc and produce a smaller/simpler binary and greatly simplify their build-time dependencies. When done properly, the generated pkg-config file will tell cgo everything it needs to know. This also prevents confusion if there is a system copy of libgit2 that is being given priority over the vendored build. Signed-off-by: Ryan Graham <[email protected]>
2016-11-01Get rid of the with-static.sh scriptCarlos Martín Nieto
CGO can perform variable substitution in the directives, so we don't need to use a script to set up the variables; we can let the go tool do it for us.
2016-03-07Update libgit2 version to install on Travis to 24Carlos Martín Nieto
2015-08-31Install v23 on TravisCarlos Martín Nieto
2015-06-28travis: make the script executableCarlos Martín Nieto
2015-06-28travis: don't install libgit2 for 'next' branchCarlos Martín Nieto
We have our own libgit2 in a submodule, so this is unnecessary. While in the area, update which version of libgit2 would be downloaded and remove unnecessary CMake flags.
2015-04-16Avoid installing script binary to user's $GOPATH/bin.Dmitri Shuralyov
2014-12-31Revert "Make the cgo tool do more linking work"Carlos Martín Nieto
2014-12-27Make the cgo tool do more linking workCarlos Martín Nieto
The cgo directives let us do a lot more than I previously thought, so we can use this to make the building process of git2go go through the go tool directly rather than via the script. libgit2 still needs to be built manually, so we do still require make, but only for building libgit2. Once that's built, any modifications to git2go's own code can be built with go build
2014-12-08only check Go source files for non-thread-locked MakeGitError callsQuinn Slack
2014-12-08add script for checking thread locks in funcs that call MakeGitErrorQuinn Slack
2014-08-26Exit when pkg-config isn't foundCarlos Martín Nieto
We run pkg-config in a subshell, so our 'set -e' does not take effect there. Explicitly error out if there was an error running pkg-config.
2014-08-06Make sure install/lib dir exists. Fixes #104Matthias Kadenbach
2014-06-07Tighten up the buildCarlos Martín Nieto
Build as release, and there is no need to install the library, we know where the files are.
2014-06-07Move the settings into the main git2goCarlos Martín Nieto
2014-06-07Really build staticallyCarlos Martín Nieto
2014-06-07hack for travisCarlos Martín Nieto
2014-06-07Use a submodule for libgit2Carlos Martín Nieto
This makes building the static version easier as we know where the repo is and that it's has a known-good version.
2014-06-03Move some logic into the MakefileCarlos Martín Nieto
This should provide a nice compromise between the scripts and comon commands.
2014-06-03Add scripts to build and use a static libgit2Carlos Martín Nieto
2014-03-25Add a settings packageCarlos Martín Nieto
This lets us modify the libgit2-wide options/settings.
2014-02-28Add a travis scriptCarlos Martín Nieto
Add a build script and ask Travis to run it. It downloads the tip of libgit2's dev branch and tests against that.