Skip to content

Commit

Permalink
gen_release accepts OS name
Browse files Browse the repository at this point in the history
  • Loading branch information
pimentel committed May 6, 2015
1 parent 084fdea commit 578c90d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions gen_release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

if [ "$#" -ne 1 ]; then
echo "Usage: ./gen_release.sh OS_NAME"
exit 1
fi

OS=$1

RELEASE=release
if [ -d "$RELEASE" ]; then
rm -rf $RELEASE
Expand All @@ -9,7 +16,7 @@ mkdir $RELEASE

cd $RELEASE
cmake ..
make
make VERBOSE=1
mkdir kallisto

cp src/kallisto kallisto
Expand All @@ -18,5 +25,7 @@ cp -r ../test kallisto
cp ../license.txt kallisto
cp ../README.md kallisto

tar -cvvf kallisto.tar kallisto
gzip kallisto.tar
TAR_NAME="kallisto_${OS}.tar"

tar -cvvf $TAR_NAME kallisto
gzip $TAR_NAME

0 comments on commit 578c90d

Please sign in to comment.