forked from FZJ-JSC/tutorial-multi-gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.archive.mk
More file actions
executable file
·19 lines (17 loc) · 933 Bytes
/
.archive.mk
File metadata and controls
executable file
·19 lines (17 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# For JSC Courses
# Generates a tar from all top-level directory in this current folder, without hidden files
# -Andreas Herten, 2021 April 27
.PHONY: all
all: tut138-multi-gpu.tar.gz
SOURCES=$(shell gfind . -maxdepth 1 -mindepth 1 -not -path "./.*" -not -name "tut138-multi-gpu.tar.gz" -not -name "*-H_*" -printf '%P\n' | sort -h)
tut138-multi-gpu.tar.gz: $(shell find . -not -name "tut138-multi-gpu.tar.gz")
# if ! grep -q "Please check Github"; then \
sed -i '1 i***Please check GitHub repo for latest version of slides: https://github.com/FZJ-JSC/tutorial-multi-gpu/ ***\n' README.md; \
fi;
sed -i '1 i***Please check GitHub repo for latest version of slides: https://github.com/FZJ-JSC/tutorial-multi-gpu/ ***\n' README.md
tar czf $@ --transform 's,^,SC21-tut138-Multi-GPU/,' --exclude=".*" $(SOURCES)
# if grep -q "Please check Github"; then \
sed -i '2d' README.md; \
fi
sed -i '1,2d' README.md