Create an install script

This commit is contained in:
Manuel Thalmann 2019-03-25 14:25:09 +01:00
parent ef4aa81041
commit 599bb7bd6d

8
scripts/install.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
cd $(dirname $0)
cd ..
tempDir=$(mktemp -d)
find . -name "*" -and -not -name "." -and -not -path "./src/*" -and -not -path "./src" -exec rm -rf {} +
rsync -a --delete ./src/ $tempDir
rsync -a --delete $tempDir/ .
rm -rf $tempDir