-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
24 lines (21 loc) · 754 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PRECIOUS: gnome-backgrounds
gnome-backgrounds:
git clone --config http.postBuffer=4096M https://gitlab.gnome.org/GNOME/gnome-backgrounds.git
.SECONDARY: gnome-backgrounds.rev
gnome-backgrounds.rev: gnome-backgrounds
git -C gnome-backgrounds rev-parse main | tr -d '\n' > newrev.rev
if [ "`cat newrev.rev`" != "`cat gnome-backgrounds.rev`" ]; then \
echo "New revision of gnome-backgrounds"; \
cp newrev.rev gnome-backgrounds.rev; \
fi ; \
rm newrev.rev
.SECONDARY: results
results: gnome-backgrounds.rev
bash collect-backgrounds.sh
bash doublehash.sh results/images
.PRECIOUS: data
data: results
mkdir -p data
mkdir -p data/images
find results/images -mindepth 1 | grep -v source | xargs -I {} cp {} data/images
cp results/*.json data