Added release.sh to master branch
This commit is contained in:
parent
dda08f05b7
commit
a4963c51e6
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sh ./clean.sh
|
||||||
|
|
||||||
|
TODAY=`date +%F`
|
||||||
|
SCION="scion-1.0-$TODAY"
|
||||||
|
|
||||||
|
if [ ! -d "release" ];
|
||||||
|
then
|
||||||
|
mkdir release
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
DIR="release/$SCION"
|
||||||
|
mkdir $DIR
|
||||||
|
|
||||||
|
for dir in 'base' 'core' 'extra' 'scion' 'install.sh'
|
||||||
|
do
|
||||||
|
cp -r $dir $DIR
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
cd release
|
||||||
|
tar -cvf "$SCION.tar.gz" $SCION
|
||||||
|
rm -r $SCION
|
Loading…
Reference in New Issue