From 09faffbf4097fc995af6a0d015df4d43fccb070b Mon Sep 17 00:00:00 2001 From: USER Date: Tue, 7 Feb 2023 22:40:45 +0000 Subject: [PATCH] . --- Makefile.rootsgit | 24 ++++++++++++++++++++++++ shared/rsGitClone | 24 ++++++++++++++++++++++++ shared/rsGitPull | 19 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 Makefile.rootsgit create mode 100755 shared/rsGitClone create mode 100755 shared/rsGitPull diff --git a/Makefile.rootsgit b/Makefile.rootsgit new file mode 100644 index 0000000..cc3ca5f --- /dev/null +++ b/Makefile.rootsgit @@ -0,0 +1,24 @@ +SHELL := /bin/sh +ZPC = /zz +DIGICONFIG = /home/${LOGNAME}/.config/digikamrc + +.PHONY: help +help: ## Show this help + @egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' + +##### +mark-complete: + -touch /var/tmp/Makefile.rootsgit + +setup: + -(./shared/rsGitClone) + -(./shared/rsGitPull) + +update: + -(${ZPC}/zShared/shared/rsGitClone) + -(${ZPC}/zShared/shared/rsGitPull) + + + +##### +load-all: mark-complete diff --git a/shared/rsGitClone b/shared/rsGitClone new file mode 100755 index 0000000..7da646d --- /dev/null +++ b/shared/rsGitClone @@ -0,0 +1,24 @@ +#!/bin/sh +# +echo "SCRIPT $0 starting" + +MYNAME=`uname -n` + +ZPC=/zz +REPO='zPublic zPublicConfig zShared' + + +if [ ! -d ${ZPC} ] +then + mkdir ${ZPC} +fi + +for i in ${REPO} +do + echo $i + if [ ! -d ${ZPC}/$i ] + then + cd ${ZPC} + git clone https://github.com/spongle70/${i}.git + fi +done diff --git a/shared/rsGitPull b/shared/rsGitPull new file mode 100755 index 0000000..d916c23 --- /dev/null +++ b/shared/rsGitPull @@ -0,0 +1,19 @@ +#!/bin/sh +# +echo "SCRIPT $0 starting" + +MYNAME=`uname -n` + +ZPC=/zz +REPO='zPublic zPublicConfig zShared' + + +if [ -d ${ZPC} ] +then + for i in `ls -d ${ZPC}/z*` + do + echo $i + (cd $i; git pull) + done +fi +exit 0