remove symlinks if they're not back to us -- so that more than one

copy of the tree can be active.
This commit is contained in:
ehouse 2010-01-04 05:50:12 +00:00
parent 4a4b05f66c
commit 052c99c9db

View file

@ -18,11 +18,17 @@ fi
cd $(dirname $0) cd $(dirname $0)
cd ../ cd ../
if [ -h $NDK_ROOT/sources/$APP -a $(readlink $NDK_ROOT/sources/$APP) != $(pwd) ]; then
rm $NDK_ROOT/sources/$APP
fi
if [ ! -h $NDK_ROOT/sources/$APP ]; then if [ ! -h $NDK_ROOT/sources/$APP ]; then
echo "adding symlink to sources" echo "adding symlink to sources"
ln -sf $(pwd) $NDK_ROOT/sources/$APP ln -sf $(pwd) $NDK_ROOT/sources/$APP
fi fi
if [ -h $NDK_ROOT/apps/$APP -a $(readlink $NDK_ROOT/apps/$APP) != $(pwd) ]; then
rm $NDK_ROOT/apps/$APP
fi
if [ ! -h $NDK_ROOT/apps/$APP ]; then if [ ! -h $NDK_ROOT/apps/$APP ]; then
echo "adding symlink to apps" echo "adding symlink to apps"
ln -sf $(pwd) $NDK_ROOT/apps/$APP ln -sf $(pwd) $NDK_ROOT/apps/$APP