mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
git: simplify install code
Signed-off-by: Peter Wagner <tripolar@gmx.at>
This commit is contained in:
+4
-8
@@ -106,14 +106,11 @@ define Build/Compile
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/git/install
|
define Package/git/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git $(1)/usr/bin
|
|
||||||
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
|
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
|
||||||
|
$(RM) $(PKG_INSTALL_DIR)/usr/bin/git-shell
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/git-core
|
$(INSTALL_DIR) $(1)/usr/lib/git-core
|
||||||
ln $(1)/usr/bin/git $(1)/usr/lib/git-core/git
|
|
||||||
ln $(1)/usr/bin/git $(1)/usr/lib/git-core/git-upload-pack
|
|
||||||
ln $(1)/usr/bin/git-shell $(1)/usr/lib/git-core/git-shell
|
|
||||||
$(INSTALL_DIR) $(1)/usr/share/git-core/templates
|
$(INSTALL_DIR) $(1)/usr/share/git-core/templates
|
||||||
( cd $(PKG_INSTALL_DIR); $(TAR) \
|
( cd $(PKG_INSTALL_DIR); $(TAR) \
|
||||||
--exclude=usr/lib/git-core/git-http-backend \
|
--exclude=usr/lib/git-core/git-http-backend \
|
||||||
@@ -122,13 +119,12 @@ define Package/git/install
|
|||||||
--exclude=usr/lib/git-core/git-remote-ftps \
|
--exclude=usr/lib/git-core/git-remote-ftps \
|
||||||
--exclude=usr/lib/git-core/git-remote-http \
|
--exclude=usr/lib/git-core/git-remote-http \
|
||||||
--exclude=usr/lib/git-core/git-remote-https \
|
--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 - \
|
-cf - \
|
||||||
usr/lib/git-core \
|
usr/lib/git-core \
|
||||||
usr/share/git-core/templates \
|
usr/share/git-core/templates \
|
||||||
) | ( cd $(1); $(TAR) -xf - )
|
) | ( cd $(1); $(TAR) -xf - )
|
||||||
|
ln $(1)/usr/lib/git-core/git $(1)/usr/bin/git
|
||||||
|
ln $(1)/usr/lib/git-core/git-shell $(1)/usr/bin/git-shell
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/git-http/install
|
define Package/git-http/install
|
||||||
|
|||||||
Reference in New Issue
Block a user