mirror of
https://github.com/git/git.git
synced 2024-11-19 05:44:04 +01:00
Make git-cherry-pick in target "all"
Since git-cherry-pick is simply a copy of git-revert, it can be created before installing (so that it can be used without installing, too). Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
2c674191d5
commit
4eba0f3763
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,7 @@ git-check-ref-format
|
|||||||
git-checkout
|
git-checkout
|
||||||
git-checkout-index
|
git-checkout-index
|
||||||
git-cherry
|
git-cherry
|
||||||
|
git-cherry-pick
|
||||||
git-clone
|
git-clone
|
||||||
git-clone-pack
|
git-clone-pack
|
||||||
git-commit
|
git-commit
|
||||||
|
6
Makefile
6
Makefile
@ -310,7 +310,7 @@ DEFINES += -DSHA1_HEADER=$(call shellquote,$(SHA1_HEADER))
|
|||||||
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
|
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
|
||||||
$(patsubst %.perl,%,$(SCRIPT_PERL)) \
|
$(patsubst %.perl,%,$(SCRIPT_PERL)) \
|
||||||
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
||||||
gitk
|
gitk git-cherry-pick
|
||||||
|
|
||||||
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
|
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
|
||||||
### Build rules
|
### Build rules
|
||||||
@ -351,6 +351,9 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py
|
|||||||
$@.py >$@
|
$@.py >$@
|
||||||
chmod +x $@
|
chmod +x $@
|
||||||
|
|
||||||
|
git-cherry-pick: git-revert
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
|
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
|
||||||
%.o: %.S
|
%.o: %.S
|
||||||
@ -410,7 +413,6 @@ check:
|
|||||||
install: $(PROGRAMS) $(SCRIPTS)
|
install: $(PROGRAMS) $(SCRIPTS)
|
||||||
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(bindir))
|
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(bindir))
|
||||||
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(call shellquote,$(DESTDIR)$(bindir))
|
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(call shellquote,$(DESTDIR)$(bindir))
|
||||||
$(INSTALL) git-revert $(call shellquote,$(DESTDIR)$(bindir)/git-cherry-pick)
|
|
||||||
sh ./cmd-rename.sh $(call shellquote,$(DESTDIR)$(bindir))
|
sh ./cmd-rename.sh $(call shellquote,$(DESTDIR)$(bindir))
|
||||||
$(MAKE) -C templates install
|
$(MAKE) -C templates install
|
||||||
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
|
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
|
||||||
|
Loading…
Reference in New Issue
Block a user