summaryrefslogtreecommitdiff
path: root/core/git
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-04-23 22:53:56 -0700
committerMichael Forney <mforney@mforney.org>2016-04-23 22:53:56 -0700
commit0879694a4df0a930c209ba6e098ae4dd0983969c (patch)
tree5194d66376d1c453209c9dbbb15d68e4f7ee0201 /core/git
parent02897b2ffa3349da552d30a4c50c9b0057a12561 (diff)
git: Install shell scripts and libraries
Diffstat (limited to 'core/git')
-rw-r--r--core/git/gen.rc42
-rw-r--r--core/git/sh_gen.sed9
2 files changed, 47 insertions, 4 deletions
diff --git a/core/git/gen.rc b/core/git/gen.rc
index 22a2b80e..532a5cd9 100644
--- a/core/git/gen.rc
+++ b/core/git/gen.rc
@@ -18,7 +18,7 @@ let cflags '$cflags -DGIT_LOCALE_PATH=\"/share/locale\"' -- cc gettext.c
let cflags '$cflags -DETC_GITCONFIG=\"/etc/gitconfig\"' -- cc config.c
let cflags '$cflags -DGIT_EXEC_PATH=\"libexec/git-core\" -DPREFIX=\"\"' -- cc exec_cmd.c
-# src/Makefile:/^LIB_OBJS.*\.o$
+# src/Makefile:/^LIB_OBJS.\+=
deps=phony/core/^(curl libressl zlib)^/headers
lib libgit.a -d $"deps\
abspath.c\
@@ -182,7 +182,7 @@ lib libgit.a -d $"deps\
\
thread-utils.c
-# src/Makefile:/^XDIFF_OBJS.*\.o$
+# src/Makefile:/^XDIFF_OBJS.\+=
lib libxdiff.a xdiff/^(\
xdiffi.c\
xprepare.c\
@@ -210,7 +210,7 @@ extra_cflags=(\
)
let cflags '$cflags '$"extra_cflags -- cc git.c
let cflags '$cflags '$"extra_cflags -- cc builtin/help.c
-# src/Makefile:/^BUILTIN_OBJS.*\.o$
+# src/Makefile:/^BUILTIN_OBJS.\+=
exe git git.c.o builtin/^(\
add.c\
am.c\
@@ -327,7 +327,7 @@ fn x {
file libexec/git-core/git-$name '$outdir'/git-$name 755
}
-# src/Makefile:/^PROGRAM_OBJS.*\.o$
+# src/Makefile:/^PROGRAM_OBJS./+=
x credential-store
x daemon
x fast-import
@@ -342,6 +342,40 @@ x upload-pack
x remote-http remote-curl.c http.c http-walker.c
for(remote in https ftp ftps) sym libexec/git-core/git-remote-$remote git-remote-http
+rule sh_gen 'sed -f $dir/sh_gen.sed $in >$out.tmp && mv $out.tmp $out'
+fn x {
+ name=$1
+ mode=$2
+ shift
+ build '$outdir'/git-$name sh_gen '$srcdir'/git-$name.sh '|' '$dir'/sh_gen.sed
+ file libexec/git-core/git-$name '$outdir'/git-$name $mode
+}
+
+# src/Makefile:/^SCRIPT_SH.\+=
+x bisect 755
+x difftool--helper 755
+x filter-branch 755
+x merge-octopus 755
+x merge-one-file 755
+x merge-resolve 755
+x mergetool 755
+x quiltimport 755
+x rebase 755
+x remote-testgit 755
+x request-pull 755
+x stash 755
+x submodule 755
+x web--browse 755
+
+# src/Makefile:/^SCRIPT_LIB.\+=
+x mergetool--lib 644
+x parse-remote 644
+x rebase--am 644
+x rebase--interactive 644
+x rebase--merge 644
+x sh-setup 644
+x sh-i18n 644
+
# templates
dir share/git-core/templates/branches 755
file share/git-core/templates/description '$srcdir'/templates/this--description 644
diff --git a/core/git/sh_gen.sed b/core/git/sh_gen.sed
new file mode 100644
index 00000000..ceca9e25
--- /dev/null
+++ b/core/git/sh_gen.sed
@@ -0,0 +1,9 @@
+s|@SHELL_PATH@|/bin/sh|
+s|@@DIFF@@|diff|
+s|@@LOCALEDIR@@|/share/locale|g
+s|@@NO_CURL@@||g
+s|@@USE_GETTEXT_SCHEME@@||g
+/^\# @@BROKEN_PATH_FIX@@$/d
+s|@@GITWEBDIR@@|/share/gitweb|g
+s|@@PERL@@|/bin/perl|g
+s|@@SANE_TEXT_GREP@@||g \ No newline at end of file