Skip to content

Commit 3c012ca

Browse files
committed
Add build.sh
1 parent 5208092 commit 3c012ca

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
target/

build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
3+
# + -------------------------------------------------------
4+
# | Build Script for the datacurator-filetree
5+
# |
6+
# | Usage: ./build.sh
7+
# + -------------------------------------------------------
8+
9+
# TODO: Make customizable for a more precise build pipeline
10+
# --> MAKEFILE?
11+
12+
VERSION=beta
13+
14+
# Sanity Check
15+
if [[ $(basename $(pwd)) != "datacurator-filetree" ]]; then exit 1; fi
16+
17+
rm -rf target/*
18+
find root/ -type d -exec mkdir -p target/{} \;
19+
zip -r0 "datacurator-filetree-[${VERSION}].zip" target/
20+
rm -rf target/*
21+
mv "datacurator-filetree-[${VERSION}].zip" target/

0 commit comments

Comments
 (0)