From 599bb7bd6db21eef4b09704a69ec995b55a35874 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 25 Mar 2019 14:25:09 +0100 Subject: [PATCH] Create an install script --- scripts/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/install.sh diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 0000000..666d294 --- /dev/null +++ b/scripts/install.sh @@ -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 \ No newline at end of file