done
}
+test_symlink()
+{
+ if [ ! -h "$ROOTDIR/tests/testsymlink" ]
+ then
+ echo "'emulator-library-pool' should be zipped with storing symbolic links"
+ exit 1
+ fi
+}
+
verify_swt()
{
TMP_SWT_DIR="$SRCDIR/swt"
verify_common()
{
+ test_symlink
verify_swt "$LIB_PACKAGE_DIR/$SWT_FILE"
verify_swt "$DEV_PACKAGE_DIR/$SWT_FILE"
}
{
. $SRCDIR/package/build.common
if [ "$(contains_string "$1" ".dll")" = "$RESULT_CONTAINS" ];then
- FILE_RESULT="$(/usr/bin/file "$1")"
+ FILE_RESULT="$(/usr/bin/file $(readlink -f "$1"))"
ARCH_OK=0
if [ "$(contains_string "$FILE_RESULT" "32-bit")" = "$RESULT_CONTAINS" ];then
echo "$1 has the supported architecture"
{
. $SRCDIR/package/build.common
if [ "$(contains_string "$1" ".dll")" = "$RESULT_CONTAINS" ];then
- FILE_RESULT="$(/usr/bin/file "$1")"
+ FILE_RESULT="$(/usr/bin/file $(readlink -f "$1"))"
ARCH_OK=0
if [ "$(contains_string "$FILE_RESULT" "32-bit")" = "$RESULT_CONTAINS" ];then
echo "$1 has the supported architecture"
{
. $SRCDIR/package/build.common
if [ "$(contains_string "$1" ".so")" = "$RESULT_CONTAINS" ];then
- FILE_RESULT="$(/usr/bin/file "$1")"
+ FILE_RESULT="$(/usr/bin/file $(readlink -f "$1"))"
if [ "$(contains_string "$FILE_RESULT" "32-bit")" = "$RESULT_NOT_CONTAINS" ];then
echo "$1 has not the supported architecture"
exit 1
{
. $SRCDIR/package/build.common
if [ "$(contains_string "$1" ".so")" = "$RESULT_CONTAINS" ];then
- FILE_RESULT="$(/usr/bin/file "$1")"
+ FILE_RESULT="$(/usr/bin/file $(readlink -f "$1"))"
if [ "$(contains_string "$FILE_RESULT" "64-bit")" = "$RESULT_NOT_CONTAINS" ];then
echo "$1 has not the supported architecture"
exit 1
check_archi_macos_64()
{
. $SRCDIR/package/build.common
+
+ if [ -h "$1" ]; then
+ return
+ fi
+
FILE_RESULT="$(/usr/bin/file "$1")"
- if [ "$(contains_string "$FILE_RESULT" "dynamically linked shared library")" == "$RESULT_CONTAINS" ];then
+ if [ "$(contains_string "$FILE_RESULT" "dynamically linked shared library")" == "$RESULT_CONTAINS" ]; then
if [ "$(contains_string "$FILE_RESULT" $BUILD_ARCH)" == "$RESULT_NOT_CONTAINS" ];then
echo "$1 has not the supported architecture"
exit 1