Skip to content

Commit

Permalink
add osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
matus123 committed May 24, 2018
1 parent 3e75119 commit f0aa7f0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion script/buildAddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ fi
#
#

cp $(pwd)/libpg_query.a $rDIR/libpg_query/linux/
if [ "$(uname)" == "Darwin" ]; then
cp $(pwd)/libpg_query.a $rDIR/libpg_query/osx/
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
cp $(pwd)/libpg_query.a $rDIR/libpg_query/linux/
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
# Do something under 32 bits Windows NT platform
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
# Do something under 64 bits Windows NT platform
fi

cp $(pwd)/pg_query.h $rDIR/libpg_query/include/

rm -rf $rDIR/$tmpDir

0 comments on commit f0aa7f0

Please sign in to comment.