Skip to content

Commit

Permalink
Add build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
roboyoshi committed Dec 9, 2018
1 parent 5208092 commit 3c012ca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
target/
21 changes: 21 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

# + -------------------------------------------------------
# | Build Script for the datacurator-filetree
# |
# | Usage: ./build.sh
# + -------------------------------------------------------

# TODO: Make customizable for a more precise build pipeline
# --> MAKEFILE?

VERSION=beta

# Sanity Check
if [[ $(basename $(pwd)) != "datacurator-filetree" ]]; then exit 1; fi

rm -rf target/*
find root/ -type d -exec mkdir -p target/{} \;
zip -r0 "datacurator-filetree-[${VERSION}].zip" target/
rm -rf target/*
mv "datacurator-filetree-[${VERSION}].zip" target/

0 comments on commit 3c012ca

Please sign in to comment.