mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
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:
parent
4a4b05f66c
commit
052c99c9db
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue