18 lines
294 B
Bash
Executable File
18 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
BUILD=./build
|
|
DIST=./dist
|
|
|
|
if [ ! -d $BUILD ]
|
|
then mkdir $BUILD
|
|
else rm -Rf $BUILD/*
|
|
fi
|
|
|
|
if [ ! -d $DIST ]
|
|
then mkdir $DIST
|
|
else rm -Rf $DIST/*
|
|
fi
|
|
|
|
rsync -rlv --exclude-from=./buildignore --delete ./ ./build/
|
|
|
|
tar czvf $DIST/rosehill.tar.gz --transform=s/build/rosehill/ $BUILD
|