-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea18b99
commit ba866c7
Showing
7 changed files
with
286 additions
and
297 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
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
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
const path = require('path') | ||
const fs = require('fs') | ||
|
||
const root = path.join(__dirname, '..') | ||
|
||
const libsodium = path.join(root, 'vendor/libsodium/src/libsodium') | ||
const [sodium] = process.argv.slice(2) | ||
|
||
const version = '1.0.18' | ||
|
||
const file = fs.readFileSync(path.join(libsodium, 'include/sodium/version.h.in'), 'utf-8') | ||
const file = fs.readFileSync(path.join(sodium, 'src/libsodium/include/sodium/version.h.in'), 'utf-8') | ||
.replace('@VERSION@', version) | ||
.replace('@SODIUM_LIBRARY_VERSION_MAJOR@', 10) | ||
.replace('@SODIUM_LIBRARY_VERSION_MINOR@', 3) | ||
.replace('@SODIUM_LIBRARY_VERSION_MAJOR@', 26) | ||
.replace('@SODIUM_LIBRARY_VERSION_MINOR@', 2) | ||
.replace('@SODIUM_LIBRARY_MINIMAL_DEF@', '') | ||
|
||
fs.writeFileSync(path.join(libsodium, 'include/sodium/version.h'), file) | ||
fs.writeFileSync(path.join(sodium, 'src/libsodium/include/sodium/version.h'), file) | ||
|
||
process.stdout.write(version) |
Submodule libsodium
deleted from
8855e8