summaryrefslogtreecommitdiff
path: root/prepare_debug_dir.sh
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-11 20:15:36 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-11 20:15:36 +0200
commitac182bd9bf076b4d03d4812e85b989edae32d756 (patch)
tree7d05a80a2e6e44e3fe0dbd3384bf6c18321fa2b8 /prepare_debug_dir.sh
parent505f7b1cf62c6934f5246c5e62eccb0a26cb1ce2 (diff)
downloadsowatch-ac182bd9bf076b4d03d4812e85b989edae32d756.tar.gz
sowatch-ac182bd9bf076b4d03d4812e85b989edae32d756.zip
able to navigate watchlets in liveview
Diffstat (limited to 'prepare_debug_dir.sh')
-rwxr-xr-xprepare_debug_dir.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/prepare_debug_dir.sh b/prepare_debug_dir.sh
index 7e9e18a..04dd8df 100755
--- a/prepare_debug_dir.sh
+++ b/prepare_debug_dir.sh
@@ -3,7 +3,13 @@
function make_symlink {
local src="$1"
local target="$2"
- ln -sf "$src" "$target"
+ if [ -L "$target/$(basename "$src")" ]; then
+ # Overwrite existing symlinks
+ ln -sf "$src" "$target"
+ else
+ # But nothing else
+ ln -s "$src" "$target"
+ fi
}
function make_symlinks {
@@ -23,7 +29,6 @@ SOWATCH_ROOT=$(dirname "$SCRIPT_PATH")
BUILD_ROOT=$(pwd)
rm -r drivers notifications watchlets
-
mkdir -p drivers notifications watchlets
make_symlinks $BUILD_ROOT/*/lib*driver.so drivers