src/main/cpp/linux/build.sh in embulk-output-oracle-0.2.4 vs src/main/cpp/linux/build.sh in embulk-output-oracle-0.3.0

- old
+ new

@@ -1,21 +1,21 @@ -# gcc, g++ and Oracle Instant Client Basic and SDK are requred. -# -# ln libocci.so.x.x libocci.so -# ln libclntsh.so.x.x libclntsh.so -# - -if [ "$JAVA_HOME" = "" ] -then - echo "You should set the environment variable 'JAVA_HOME'." - exit 1 -fi - -if [ "$OCI_PATH" = "" ] -then - echo "You should set the environment variable 'OCI_PATH'." - exit 1 -fi - -mkdir -p ../../../../lib/embulk/linux_x64 - -gcc -fPIC -I. -I"$JAVA_HOME/include" -I"$OCI_PATH/sdk/include" -I../../../main/cpp/common -L"$OCI_PATH" -shared ../../../main/cpp/common/embulk-output-oracle.cpp ../../../main/cpp/common/dir-path-load.cpp -locci -lclntsh -lstdc++ -o ../../../../lib/embulk/linux_x64/libembulk-output-oracle.so +# gcc, g++ and Oracle Instant Client Basic and SDK are requred. +# +# ln libocci.so.x.x libocci.so +# ln libclntsh.so.x.x libclntsh.so +# + +if [ "$JAVA_HOME" = "" ] +then + echo "You should set the environment variable 'JAVA_HOME'." + exit 1 +fi + +if [ "$OCI_PATH" = "" ] +then + echo "You should set the environment variable 'OCI_PATH'." + exit 1 +fi + +mkdir -p ../../../../lib/embulk/linux_x64 + +gcc -fPIC -I. -I"$JAVA_HOME/include" -I"$OCI_PATH/sdk/include" -I../../../main/cpp/common -L"$OCI_PATH" -shared ../../../main/cpp/common/embulk-output-oracle.cpp ../../../main/cpp/common/dir-path-load.cpp -locci -lclntsh -lstdc++ -o ../../../../lib/embulk/linux_x64/libembulk-output-oracle.so