Skip to content

Commit 5b8b1b6

Browse files
committed
*: unify version numbers
1 parent ab33933 commit 5b8b1b6

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
### Changed
5+
- Versions are now for the whole of dapptools, rather than per-tool.
6+
Accordingly, the old CHANGELOG files are superseded by this one.

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

nix/solc-updates.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1. add a new `solc_X.Y.Z` in the `unreleased` section
1616
1. update `rev` and `sha256` based on the output from `nix-prefetch-git
1717
[email protected]:dapphub/nixpkgs refs/heads/solc-X.Y.Z`
18-
1. bump the version number in `dapp---version`, `src/dapp/default.nix` and the changelog
18+
1. bump the version number in `./VERSION` and populate the changelog
1919
1. commit the changes
2020
1. open a pr from `dapphub/dapptools:solc-X.Y.Z` to `dapphub/dapptools:master`
2121
1. once merged tag the commit with the new version number

src/seth/default.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
stdenv.mkDerivation rec {
55
name = "seth-${version}";
6-
version = "0.8.4";
6+
version = lib.fileContents ../../VERSION;
77
src = ./.;
88

99
nativeBuildInputs = [makeWrapper];
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
1818
else ""}
1919
'';
2020

21+
postFixup = ''
22+
sed -i s/VERSION_PLACEHOLDER/${version}/ $out/libexec/seth/seth---version
23+
'';
24+
2125
meta = {
2226
description = "Command-line client for talking to Ethereum nodes";
2327
homepage = https://github.com/dapphub/dapptools/src/seth/;

src/seth/libexec/seth/seth---version

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
2-
cat <<.
3-
seth 0.8.4
2+
cat <<EOF
3+
seth VERSION_PLACEHOLDER
44
Copyright (C) 2016, 2017 Daniel Brockman <[email protected]>
55
License: GNU GPL version 3 or later <https://gnu.org/licenses/gpl>.
66
This is free software: you are free to change and redistribute it.
77
There is NO WARRANTY, to the extent permitted by law.
8-
.
8+
EOF

0 commit comments

Comments
 (0)