-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: sap nw rfc sdk build and installation utilities added
- Loading branch information
Showing
5 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
#!/bin/bash | ||
|
||
ICUV="50" | ||
|
||
if [ -z "$SAPNWRFC_HOME" ]; then | ||
echo "SAPNWRFC_HOME env variable not set. Should point to SAP NWRFC SDK library root" | ||
exit 1 | ||
fi | ||
|
||
# run from sap nwrfc sdk root folder | ||
|
||
# | ||
# lib folder fix | ||
# | ||
|
||
cd lib | ||
RPATH="$SAPNWRFC_HOME/lib" | ||
for filename in *.dylib; do | ||
# LC_RPATH | ||
install_name_tool -add_rpath $RPATH $filename | ||
# LC_ID_DYLIB | ||
install_name_tool -id @rpath/$filename $filename | ||
done | ||
|
||
# LC_LOAD_DYLIB | ||
install_name_tool -change @loader_path/libicuuc.$ICUV.dylib @rpath/libicuuc.$ICUV.dylib libicui18n.$ICUV.dylib | ||
install_name_tool -change @loader_path/libicudata.$ICUV.dylib @rpath/libicudata.$ICUV.dylib libicui18n.$ICUV.dylib | ||
install_name_tool -change @loader_path/libicudata.$ICUV.dylib @rpath/libicudata.$ICUV.dylib libicuuc.$ICUV.dylib | ||
cd .. | ||
|
||
# | ||
# bin folder fix | ||
# | ||
|
||
BINFILES="rfcexec startrfc" | ||
|
||
cd bin | ||
for filename in ${BINFILES}; do | ||
chmod +x $filename | ||
# LC_RPATH | ||
install_name_tool -add_rpath $RPATH $filename | ||
# LC_ID_DYLIB | ||
install_name_tool -id @rpath/$filename $filename | ||
# LC_LOAD_DYLIB | ||
install_name_tool -change @loader_path/libsapnwrfc.dylib @rpath/libsapnwrfc.dylib $filename | ||
install_name_tool -change @loader_path/libsapucum.dylib @rpath/libsapucum.dylib $filename | ||
done | ||
install_name_tool -change @loader_path/libsapucum.dylib @rpath/libsapucum.dylib ./startrfc | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
#!/bin/bash | ||
ARG1=${1:--D} | ||
for filename in lib/*.dylib; do | ||
otool "$ARG1" $filename | ||
printf "\n" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-FileCopyrightText: 2014 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
echo `strings $SAPNWRFC_HOME/lib/libsapnwrfc.dylib | grep "Patch Level"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-FileCopyrightText: 2014 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
echo `strings $SAPNWRFC_HOME/lib/libsapnwrfc.so | grep "Patch Level"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:: SPDX-FileCopyrightText: 2014 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com> | ||
:: | ||
:: SPDX-License-Identifier: Apache-2.0 | ||
|
||
@echo off | ||
findstr Patch $env:SAPNWRFC_HOME\lib\sapnwrfc.dll |