Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 4ec9156

Browse files
committed
fix man permissions
1 parent 1efb9eb commit 4ec9156

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

build.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@ mkdir -p git_build
1717

1818
DOWNLOAD_LOCATION="http://git-core.googlecode.com/files"
1919

20+
export CFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK_PATH -arch i386 -arch x86_64"
21+
export LDFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK_PATH -arch i386 -arch x86_64"
22+
23+
export C_INCLUDE_PATH=/usr/include
24+
export CPLUS_INCLUDE_PATH=/usr/include
25+
export LD_LIBRARY_PATH=/usr/lib
26+
2027
pushd git_build
2128
[ ! -f git-$GIT_VERSION.tar.gz ] && curl -O $DOWNLOAD_LOCATION/git-$GIT_VERSION.tar.gz
2229
[ ! -d git-$GIT_VERSION ] && tar zxvf git-$GIT_VERSION.tar.gz
2330
pushd git-$GIT_VERSION
2431

25-
CFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK_PATH -arch i386 -arch x86_64"
26-
LDFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK_PATH -arch i386 -arch x86_64"
27-
make -j32 NO_GETTEXT=1 NO_DARWIN_PORTS=1 CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" prefix="$PREFIX" all strip install
32+
make -j32 NO_GETTEXT=1 NO_DARWIN_PORTS=1 prefix="$PREFIX" all strip install
2833
# $SUDO make -j32 CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" prefix="$PREFIX"
2934

3035
# contrib
@@ -38,7 +43,7 @@ pushd git_build
3843

3944
# git-credential-osxkeychain
4045
pushd contrib/credential/osxkeychain
41-
make
46+
CFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK_PATH -arch x86_64" LDFLAGS="-mmacosx-version-min=10.6 -isysroot $SDK_PATH -arch x86_64" make
4247
$SUDO cp git-credential-osxkeychain $PREFIX/bin/git-credential-osxkeychain
4348
popd
4449
popd
@@ -50,6 +55,7 @@ pushd git_build
5055
echo "Error extracting manpages!!! Maybe download location has changed / failed? Look at `pwd`/$git_man_archive. Remove it and re-run build to attempt redownload."
5156
exit 1
5257
fi
58+
$SUDO chmod -R go+rx $PREFIX/share/man
5359
popd
5460

5561
# Copy assets (e.g. system gitconfig)

0 commit comments

Comments
 (0)