rosehill/build.sh

18 lines
294 B
Bash
Raw Normal View History

#!/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