Create an install script
This commit is contained in:
parent
ef4aa81041
commit
599bb7bd6d
1 changed files with 8 additions and 0 deletions
8
scripts/install.sh
Normal file
8
scripts/install.sh
Normal 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
|
Loading…
Reference in a new issue