Skip to content

Commit 61e5096

Browse files
committed
#17 Replace build.sh with Makefile
1 parent 83b0974 commit 61e5096

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# + -------------------------------------------------------
2+
# | Makefile for the datacurator-filetree
3+
# |
4+
# | Usage: make target
5+
# + -------------------------------------------------------
6+
7+
# give help message as default target
8+
default:
9+
@echo "please specify a target: { wip, master }";
10+
11+
# Make the wip-branch
12+
wip:
13+
git checkout ${@} && git pull
14+
mkdir -p {temp,target}
15+
find root/ -type d -exec mkdir -p temp/{} \;
16+
cd temp/ && zip -r0 "../target/datacurator-filetree-${@}.zip" root/ && cd -
17+
rm -rf temp/
18+
19+
# Make the master-branch
20+
master:
21+
@echo "todo"

build.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)