Skip to content

Commit eec7da3

Browse files
committed
Packing script
1 parent 00ed1c0 commit eec7da3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.bz2

pack.bash

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash -ex
2+
3+
VERSION=`grep version= platform.txt | sed 's/version=//g'`
4+
5+
PWD=`pwd`
6+
FOLDERNAME=`basename $PWD`
7+
THIS_SCRIPT_NAME=`basename $0`
8+
9+
rm -f samd-$VERSION.tar.bz2
10+
11+
cd ..
12+
tar --transform "s|$FOLDERNAME|$VERSION|g" --exclude=.git --exclude=.idea --exclude=$THIS_SCRIPT_NAME -cjf samd-$VERSION.tar.bz2 $FOLDERNAME
13+
cd -
14+
15+
mv ../samd-$VERSION.tar.bz2 .
16+

0 commit comments

Comments
 (0)