Doc libgit2 build and verification steps in update script

This commit is contained in:
Kevin Sawicki
2013-01-28 09:38:01 -08:00
parent bd3493987b
commit fbfdd6ab65

View File

@@ -1,4 +1,18 @@
#!/bin/sh
# From root of libgit2 repo:
# mkdir build
# cd build
# cmake .. -DCMAKE_INSTALL_PREFIX=~/repos/atom/git2 -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" -DCMAKE_BUILD_TYPE=Release
# cmake --build . --target install
#
# From root of atom repo:
# mv git2/lib/libgit2.0.17.0.dylib git2/frameworks/libgit2.0.17.0.dylib
# rm -fr git2/lib
# script/update-libgit2
# update the id of the dylib
install_name_tool -id @executable_path/libgit2.0.17.0.dylib git2/frameworks/libgit2.0.17.0.dylib
# Verify @executable_path is in the output of:
# otool -L git2/frameworks/libgit2.0.17.0.dylib