flatten 20260225
This commit is contained in:
26
resources/packages/astronomy/prepare
Executable file
26
resources/packages/astronomy/prepare
Executable file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user