Skip to content

Commit

Permalink
*: unify version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric committed Jun 9, 2020
1 parent ab33933 commit 204d8a2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

## [Unreleased]
### Changed
- Versions are now for the whole of dapptools, rather than per-tool.
Accordingly, the old CHANGELOG files are superseded by this one.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
2 changes: 1 addition & 1 deletion nix/solc-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
1. add a new `solc_X.Y.Z` in the `unreleased` section
1. update `rev` and `sha256` based on the output from `nix-prefetch-git
[email protected]:dapphub/nixpkgs refs/heads/solc-X.Y.Z`
1. bump the version number in `dapp---version`, `src/dapp/default.nix` and the changelog
1. bump the version number in `VERSION` and populate the changelog
1. commit the changes
1. open a pr from `dapphub/dapptools:solc-X.Y.Z` to `dapphub/dapptools:master`
1. once merged tag the commit with the new version number
Expand Down
6 changes: 5 additions & 1 deletion src/seth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

stdenv.mkDerivation rec {
name = "seth-${version}";
version = "0.8.4";
version = lib.fileContents ../../VERSION;
src = ./.;

nativeBuildInputs = [makeWrapper];
Expand All @@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
else ""}
'';

postFixup = ''
sed -i s/VERSION_PLACEHOLDER/${version}/ $out/libexec/seth/seth---version
'';

meta = {
description = "Command-line client for talking to Ethereum nodes";
homepage = https://github.com/dapphub/dapptools/src/seth/;
Expand Down
6 changes: 3 additions & 3 deletions src/seth/libexec/seth/seth---version
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
cat <<.
seth 0.8.4
cat <<EOF
seth VERSION_PLACEHOLDER
Copyright (C) 2016, 2017 Daniel Brockman <[email protected]>
License: GNU GPL version 3 or later <https://gnu.org/licenses/gpl>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.
EOF

0 comments on commit 204d8a2

Please sign in to comment.