2011-09-10 08:19:06 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-07-03 05:15:40 +08:00
|
|
|
MAKE=make
|
|
|
|
gmake --help >/dev/null 2>&1
|
|
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
|
2011-09-10 08:19:06 +08:00
|
|
|
# find root
|
|
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
|
|
|
|
# update
|
|
|
|
if [ -d .hg ]; then
|
|
|
|
hg pull -u
|
|
|
|
elif [ -d .git ]; then
|
|
|
|
git pull
|
|
|
|
fi
|
|
|
|
|
2011-07-03 05:15:40 +08:00
|
|
|
./sys/build.sh && sudo ${MAKE} symstall
|