Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzz committed Mar 8, 2019
1 parent 8282bcf commit 655f704
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
*.sla

mep.zip
23 changes: 23 additions & 0 deletions release.sh
@@ -0,0 +1,23 @@
#!/bin/bash

set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

temp_dir=$(mktemp -d)
trap "rm -rf $temp_dir" 0 2 3 15

pushd $temp_dir

cp -r $DIR mep
rm -rf mep/.git* mep/README.md mep/release.sh mep/mep.zip
cd mep/data/languages
sleigh -a
cd ../../..
zip -r mep.zip mep
cp mep.zip $DIR

popd

echo ""
ls -la mep.zip

0 comments on commit 655f704

Please sign in to comment.