config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit c7f02a5e480e79e6c8ff6d467c8516f658a7c342
parent 0092620cc917868cb654147adb6811553e8c3a7e
Author: Jacob R. Edwards <n/a>
Date:   Mon,  7 Feb 2022 11:37:41 -0800

Add support for git repositories in forks framework

Diffstat:
Mlocal/src/src/fork/common.mk | 3++-
Alocal/src/src/fork/git.mk | 4++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/local/src/src/fork/common.mk b/local/src/src/fork/common.mk @@ -3,7 +3,7 @@ all: build distclean: - rm -f ${arc} + rm -rf ${arc} clean: rm -rf patched ${dir} @@ -19,6 +19,7 @@ patch: ${dir} ${dir}: ${arc} case ${arc} in \ (*.gz) gunzip;; \ + (*.git) git -C ${arc} archive --format=tar --prefix=${dir}/ ${ref};; \ esac < ${arc} | pax -r .PHONY: all distclean clean patch diff --git a/local/src/src/fork/git.mk b/local/src/src/fork/git.mk @@ -0,0 +1,4 @@ +# git distribution target + +${arc}: + git clone --quiet --mirror ${url} ${arc}