Sync photos before creating the gallery
This commit is contained in:
parent
891a019ed4
commit
49291170de
6
Makefile
6
Makefile
@ -10,6 +10,10 @@ all: build-and-upload-all
|
|||||||
|
|
||||||
# Create the photo galleries and create the index and preview html pages.
|
# Create the photo galleries and create the index and preview html pages.
|
||||||
PHOTODIRS != find photos/* -maxdepth 0 -mindepth 0 -type d
|
PHOTODIRS != find photos/* -maxdepth 0 -mindepth 0 -type d
|
||||||
|
get-photos:
|
||||||
|
[ ! -d "photos" ] \
|
||||||
|
&& git clone sdk@home.codevoid.de:.photos.git photos \
|
||||||
|
|| cd photos && git pull
|
||||||
photos: ${PHOTODIRS}
|
photos: ${PHOTODIRS}
|
||||||
mkdir -p ${SITE}/photos
|
mkdir -p ${SITE}/photos
|
||||||
cd photos && sh ${SCRIPTS}/mkphotoindex.sh > index.html
|
cd photos && sh ${SCRIPTS}/mkphotoindex.sh > index.html
|
||||||
@ -20,7 +24,7 @@ photos: ${PHOTODIRS}
|
|||||||
find photos -type f \( -name "*.html" \
|
find photos -type f \( -name "*.html" \
|
||||||
-o -name "*.meta" \
|
-o -name "*.meta" \
|
||||||
\) -exec install -D {} site/{} \;
|
\) -exec install -D {} site/{} \;
|
||||||
${PHOTODIRS}:
|
${PHOTODIRS}: get-photos
|
||||||
cd "$@" && sh ${SCRIPTS}/mkphotos.sh > index.html
|
cd "$@" && sh ${SCRIPTS}/mkphotos.sh > index.html
|
||||||
|
|
||||||
# (manual step) - it takes some time to optimize all images and it's not really necessary.
|
# (manual step) - it takes some time to optimize all images and it's not really necessary.
|
||||||
|
Loading…
Reference in New Issue
Block a user