update.sh 541 B

123456789101112131415161718192021222324
  1. # Usage: ./update.sh <double-conversion-src-directory>
  2. #
  3. # Copies the needed files from a directory containing the original
  4. # double-conversion source that we need.
  5. # This was last updated with git rev 04cae7a8d5ef3d62ceffb03cdc3d38f258457a52.
  6. set -e
  7. cp $1/LICENSE ./
  8. cp $1/README ./
  9. # Includes
  10. cp $1/src/*.h ./
  11. # Source
  12. cp $1/src/*.cc ./
  13. patch -p3 < add-mfbt-api-markers.patch
  14. patch -p3 < use-StandardInteger.patch
  15. patch -p3 < use-mozilla-assertions.patch
  16. patch -p3 < use-static_assert.patch
  17. patch -p3 < ToPrecision-exponential.patch