Skip to content
Snippets Groups Projects
Commit eec7da3d authored by Federico Fissore's avatar Federico Fissore
Browse files

Packing script

parent 00ed1c04
Branches
Tags
No related merge requests found
*.bz2
#!/bin/bash -ex
VERSION=`grep version= platform.txt | sed 's/version=//g'`
PWD=`pwd`
FOLDERNAME=`basename $PWD`
THIS_SCRIPT_NAME=`basename $0`
rm -f samd-$VERSION.tar.bz2
cd ..
tar --transform "s|$FOLDERNAME|$VERSION|g" --exclude=.git --exclude=.idea --exclude=$THIS_SCRIPT_NAME -cjf samd-$VERSION.tar.bz2 $FOLDERNAME
cd -
mv ../samd-$VERSION.tar.bz2 .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment