.
This commit is contained in:
20
Makefile.rootgit
Normal file
20
Makefile.rootgit
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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.rootcpull
|
||||||
|
|
||||||
|
setup-dirs:
|
||||||
|
-(/zz/zzShare/share/rGitClone)
|
||||||
|
-(/zz/zzShare/share/rGitPull)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#####
|
||||||
|
load-all: setup-dirs mark-complete
|
||||||
24
shared/rGitClone
Executable file
24
shared/rGitClone
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
echo "SCRIPT $0 starting"
|
||||||
|
|
||||||
|
MYNAME=`uname -n`
|
||||||
|
|
||||||
|
ZPC=/zz
|
||||||
|
REPO='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
|
||||||
19
shared/rGitPull
Executable file
19
shared/rGitPull
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
echo "SCRIPT $0 starting"
|
||||||
|
|
||||||
|
MYNAME=`uname -n`
|
||||||
|
|
||||||
|
ZPC=/zz
|
||||||
|
REPO='zPublicConfig zShared'
|
||||||
|
|
||||||
|
|
||||||
|
if [ -d ${ZPC} ]
|
||||||
|
then
|
||||||
|
for i in `ls -d ${ZPC}/z*`
|
||||||
|
do
|
||||||
|
echo $i
|
||||||
|
(cd $i; git pull)
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user