27 lines
426 B
Plaintext
Executable File
27 lines
426 B
Plaintext
Executable File
set -x
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
mkdir -p sdk/include
|
|
|
|
LIB=astronomy
|
|
|
|
pushd sdk/include
|
|
rm astronomy
|
|
ln -fs ../../$LIB/astronomy/source/c astronomy
|
|
popd
|
|
|
|
mkdir $LIB
|
|
pushd $LIB
|
|
|
|
git clone -b v2.1.19 https://github.com/cosinekitty/astronomy astronomy
|
|
|
|
cp -av $DIR/Makefile.project astronomy
|
|
ln -s $DIR/../../Makefile-template astronomy/Makefile
|
|
|
|
pushd astronomy
|
|
make
|
|
popd
|
|
|
|
popd
|
|
|