2015-10-09 07:24:12 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-01-06 22:45:54 +08:00
|
|
|
while [[ $# > 1 ]]
|
|
|
|
do
|
|
|
|
key="$1"
|
|
|
|
case $key in
|
|
|
|
-t|--target)
|
|
|
|
target="$2"
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
if [[ -z $target ]]; then
|
|
|
|
target="all"
|
|
|
|
fi
|
|
|
|
|
2016-05-08 17:33:07 +08:00
|
|
|
cd src/api && python link_resources.py && cd ../..
|
2016-01-06 22:45:54 +08:00
|
|
|
make clean && make $target
|