git: use hardlinks for /usr/lib/git-core/git{,-shell,-upload-pack}
Signed-off-by: Peter Wagner <tripolar@gmx.at>
This commit is contained in:
parent
47df65608f
commit
c57adab9f1
1 changed files with 7 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=git
|
||||
PKG_VERSION:=2.16.1
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@KERNEL/software/scm/git/
|
||||
|
@ -110,7 +110,9 @@ define Package/git/install
|
|||
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/usr/lib/git-core
|
||||
$(LN) /usr/bin/git $(1)/usr/lib/git-core/git
|
||||
ln $(1)/usr/bin/git $(1)/usr/lib/git-core/git
|
||||
ln $(1)/usr/bin/git-shell $(1)/usr/lib/git-core/git-shell
|
||||
ln $(1)/usr/bin/git-upload-pack $(1)/usr/lib/git-core/git-upload-pack
|
||||
$(INSTALL_DIR) $(1)/usr/share/git-core/templates
|
||||
( cd $(PKG_INSTALL_DIR); $(TAR) \
|
||||
--exclude=usr/lib/git-core/git-http-backend \
|
||||
|
@ -119,6 +121,9 @@ define Package/git/install
|
|||
--exclude=usr/lib/git-core/git-remote-ftps \
|
||||
--exclude=usr/lib/git-core/git-remote-http \
|
||||
--exclude=usr/lib/git-core/git-remote-https \
|
||||
--exclude=usr/lib/git-core/git \
|
||||
--exclude=usr/lib/git-core/git-shell \
|
||||
--exclude=usr/lib/git-core/git-upload-pack \
|
||||
-cf - \
|
||||
usr/lib/git-core \
|
||||
usr/share/git-core/templates \
|
||||
|
|
Loading…
Reference in a new issue