-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkrelease.sh
executable file
·26 lines (19 loc) · 984 Bytes
/
mkrelease.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
VERSION=$(echo "$(./convmlv.sh -v)" | sed -e 's/\./\_/g')
#HOW TO USE (Linux and Mac):
# 1. Update version above.
# 2. Put mlv2badpixels.sh, mlv_dump, raw2dng, and cr2hdr into a "binaries" folder in the repository.
# 3. Run this script, with one argument representing the path to the binaries.
# 4. A release tarball will automatically be created in "release" in the repository.
## It's reccommended that BINPATH is a folder in REP_PATH.
REP_PATH="$(pwd)"
RELEASE="${REP_PATH}/release"
mkdir -p "$RELEASE"
if [[ $OSTYPE == "linux-gnu" ]]; then
PLATFORM="linux"
elif [[ $OSTYPE == "darwin11" || $OSTYPE == "darwin15" ]]; then
PLATFORM="mac"
else
echo "Platform not yet supported! Contact me at contact@sofusrose.com."
fi
tar -czvf $RELEASE/convmlv-${VERSION}-${PLATFORM}.tar.gz balance.py mlv2badpixels.sh mlv_dump raw2dng cr2hdr sRange.py CHANGELOG licence convmlv.sh color-core/ color-ext DEPENDENCIES docs/MANPAGE docs/docs.pdf docs/workflow.txt configs/*