Skip to content

Commit

Permalink
Add script for building new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Apr 3, 2019
1 parent 8d33314 commit 976a33c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bin/rocksdb*
# Generated files
log/
data/
dist/

# IntelliJ
.idea/
Expand Down
15 changes: 15 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

version=`git rev-parse HEAD`
name=rocksdb-server-`echo $version | cut -c1-8`

echo "Building: ${name}"
mvn install || exit 1

dir=dist/${name}
mkdir -p ${dir} || exit 2
cp -r lib ${dir} || exit 3
cp -r bin ${dir} || exit 3
cp -r conf ${dir} || exit 3

(cd dist; tar -cvzf ${name}.tar.gz ${name})

0 comments on commit 976a33c

Please sign in to comment.