Sha256: 83a31ce2bcdeef92437bff3ae0fe25408fb47e6a1627420ffdbd86a2a288e2fe

Contents?: true

Size: 764 Bytes

Versions: 4

Compression:

Stored size: 764 Bytes

Contents

#! /bin/sh

if [ "x$1" = "x--sumo" ]; then
  SUMO=yes
fi

{
while read symbol standard sumo; do
  found="$standard"
  if [ "x$SUMO" != "x" ]; then
    found="$sumo"
  fi
  if [ "$found" = "1" ]; then
    eval "defined_${symbol}=yes"
  else
    eval "defined_${symbol}=no"
  fi
done < emscripten-symbols.def

nm /usr/local/lib/libsodium.18.dylib | \
fgrep ' T _' | \
cut -d' ' -f3 | {
    while read symbol; do
      eval "found=\$defined_${symbol}"
      if [ "$found" = "yes" ]; then
        echo "$symbol"
      elif [ "$found" != "no" ]; then
        echo >&2
        echo "*** [$symbol] was not expected ***" >&2
        echo >&2
        exit 1
      fi
    done
  }
} | \
sort | \
{
out=''
while read symbol ; do
  out="${out},\"${symbol}\""
done
echo $out
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.13 vendor/libsodium/dist-build/generate-emscripten-symbols.sh
rbnacl-libsodium-1.0.11 vendor/libsodium/dist-build/generate-emscripten-symbols.sh
rbnacl-libsodium-1.0.10 vendor/libsodium/dist-build/generate-emscripten-symbols.sh
rbnacl-libsodium-1.0.9 vendor/libsodium/dist-build/generate-emscripten-symbols.sh