aboutsummaryrefslogtreecommitdiff
path: root/extra/git/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-10 13:13:01 +0300
committerCem Keylan <cem@ckyln.com>2020-09-10 13:13:01 +0300
commitd3ccac9b4db49fb493e267bef61e662eeab62f1e (patch)
treef3f928eca755c32406df634e32c3d0d4d47018ca /extra/git/build
parentfbc949c5a29ad67b7fd6180828040d9d0dd6d1ad (diff)
downloadrepository-d3ccac9b4db49fb493e267bef61e662eeab62f1e.tar.gz
git: add back to core repository
Diffstat (limited to 'extra/git/build')
-rwxr-xr-xextra/git/build46
1 files changed, 0 insertions, 46 deletions
diff --git a/extra/git/build b/extra/git/build
deleted file mode 100755
index 9d6637cc..00000000
--- a/extra/git/build
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh -e
-
-cat > config.mak <<EOF
-NO_GETTEXT=YesPlease
-NO_SVN_TESTS=YesPlease
-NO_TCLTK=YesPlease
-NO_EXPAT=YesPlease
-NO_NSEC=YesPlease
-NO_PYTHON=YesPlease
-NO_PERL=YesPlease
-NO_SYS_POLL_H=1
-NO_CROSS_DIRECTORY_HARDLINKS=1
-NO_INSTALL_HARDLINKS=1
-EOF
-
-export LDFLAGS="$LDFLAGS -static"
-
-./configure \
- --prefix=/usr \
- --with-curl \
- ac_cv_snprintf_returns_bogus=no \
- ac_cv_fread_reads_directories=yes
-
-make
-make DESTDIR="$1" install
-
-for man in man1/*.1 man5/*.5 man7/*.7; do
- install -Dm644 "$man" "$1/usr/share/man/$man"
-done
-
-
-# Build and install remote-http helper. This doesn't happen by default when
-# building static git.
-set -x
-export CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -I$PWD -I$PWD/compat/regex -I$PWD/xdiff -include config.h"
-for obj in http http-walker; do
- # shellcheck disable=2086
- "${CC:=cc}" $CFLAGS -c "$obj.c"
-done
-
-# shellcheck disable=2086,2046
-"$CC" -static $CFLAGS -o "$1/usr/libexec/git-core/git-remote-http" remote-curl.c http.o http-walker.o libgit.a common-main.o xdiff/lib.a $(pkg-config --static --libs zlib libcurl)
-
-for remote in https ftp ftps; do
- ln -sf git-remote-http "$1/usr/libexec/git-core/git-remote-$remote"
-done