Added Makefile for jsonAlbum
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
include Makefile.cfg
|
||||||
|
|
||||||
|
galDirName=$(VID_GAL_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
mkGalGenPath="/home/marko/keeper/judo/homepage/redesign2018/markdownExperiment/src/tools/mkGalGen"
|
||||||
|
imgDirBase="./photos"
|
||||||
|
galDirBase="/home/marko/keeper/judo/cwsvJudo/photoalben/photoalben.2018"
|
||||||
|
|
||||||
|
logoFileName="/home/marko/keeper/judo/graphiken/logos/cwsvJudoLogoWappen.100x.png"
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: jsonAlbum
|
||||||
|
|
||||||
|
photos/jpegAlbum.json:
|
||||||
|
mkdir -p $(galDirBase)
|
||||||
|
# Des Erzeugen der json
|
||||||
|
python3 $(mkGalGenPath)/jpgSelector.py $(imgDirBase)
|
||||||
|
|
||||||
|
.PHONY: jsonAlbum
|
||||||
|
jsonAlbum: photos/jpegAlbum.json
|
||||||
|
# das Erzeugen des Makefiles
|
||||||
|
#python3 $(mkGalGenPath)/jsonJpgList2Makefile.py $(imgDirBase)/jpegAlbum.json --imgDirBase=$(imgDirBase) --galName="$(galName)" --galDirBase="$(galDirBase)" --galDirName="$(galDirName)" --logoFileName="$(logoFileName)" > ../Makefile.$(galDirName)
|
||||||
|
python3 $(mkGalGenPath)/jsonJpgList2Makefile.py $(imgDirBase)/jpegAlbum.json --imgDirBase=$(imgDirBase) --galName="$(galName)" --galDirBase="$(galDirBase)" --galDirName="$(galDirName)" --logoFileName="$(logoFileName)" --compressHard="true" > ../Makefile.$(galDirName)
|
||||||
|
|
||||||
|
#das aufrufen des makefiles
|
||||||
|
make --file=../Makefile.$(galDirName)
|
||||||
|
|
||||||
|
# upload des ganzen
|
||||||
|
lftp -e "set ftp:ssl-allow no; mirror -R $(galDirBase)/$(galDirName) www/photoalben/photoalben.2018/$(galDirName); exit;" -u cwsvjudo,***REMOVED*** ftp://cwsvjudo.bplaced.net
|
||||||
Reference in New Issue
Block a user