mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
26 lines
590 B
Bash
26 lines
590 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e -u
|
||
|
|
||
|
HOMELOC=~/.android/debug.keystore
|
||
|
HERELOC=$(pwd)/$(dirname $0)/debug.keystore
|
||
|
# SCRIPTS=
|
||
|
|
||
|
if [ -L $HOMELOC ]; then
|
||
|
if cmp $(readlink $HOMELOC) $HERELOC; then
|
||
|
exit 0
|
||
|
fi
|
||
|
elif [ -e $HOMELOC ]; then
|
||
|
cat << EOF
|
||
|
* You are using a different keystore from what's part of this project.
|
||
|
* You won't be able to install this over something built from a
|
||
|
* different machine. If that's not ok, remove it (i.e. run this on a
|
||
|
* commandline:
|
||
|
rm $HOMELOC
|
||
|
* and rerun ant to use the built-in keystore.
|
||
|
EOF
|
||
|
else
|
||
|
echo "$0: creating link at $HOMELOC"
|
||
|
ln -sf $HERELOC $HOMELOC
|
||
|
fi
|