Sha256: d12f7f7d949f46397cc14035d0afcd7852fdb9e77a30ce2003d9bf40ace8dca7

Contents?: true

Size: 781 Bytes

Versions: 3

Compression:

Stored size: 781 Bytes

Contents

#!/bin/sh -e

mkdir include

(
  echo x86
  echo unknown
) | (
  while read n
  do
    okabi | (
      while read abi
      do
        okc-$abi | (
          while read c
          do
            echo "=== `date` === Trying $n.c with $c..." >&2
            rm -f cpuid.c
	    cp $n.c cpuid.c || continue
            $c -o cpuid cpuid.c || continue
            $c -o cbytes cbytes.c || continue
	    ./cpuid > cpuid.out || continue
	    echo 'static const char cpuid[] = {' > cpuid.h || continue
	    ./cbytes < cpuid.out >> cpuid.h || continue
	    echo '} ;' >> cpuid.h || continue
	    cp cpuid.h include/cpuid.h || continue
	    cat cpuid.out
            exit 0
          done
          exit 111
        ) && exit 0
      done
      exit 111
    ) && exit 0
  done
  exit 111
)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/cpuid/do
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/cpuid/do
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/cpuid/do