From 8bec962cff659d686b1379f482a3f7390597be0f Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Tue, 9 Jun 2020 17:02:45 +0200 Subject: [PATCH] *: unify version numbers --- CHANGELOG.md | 6 ++++++ VERSION | 1 + src/seth/default.nix | 6 +++++- src/seth/libexec/seth/seth---version | 6 +++--- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..720f85dab --- /dev/null +++ b/CHANGELOG.md @@ -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. diff --git a/VERSION b/VERSION new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1 diff --git a/src/seth/default.nix b/src/seth/default.nix index f99c9e7b4..2ece3e04a 100644 --- a/src/seth/default.nix +++ b/src/seth/default.nix @@ -3,7 +3,7 @@ stdenv.mkDerivation rec { name = "seth-${version}"; - version = "0.8.4"; + version = lib.fileContents ../../VERSION; src = ./.; nativeBuildInputs = [makeWrapper]; @@ -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/; diff --git a/src/seth/libexec/seth/seth---version b/src/seth/libexec/seth/seth---version index 1153d72c1..43231e1e7 100755 --- a/src/seth/libexec/seth/seth---version +++ b/src/seth/libexec/seth/seth---version @@ -1,8 +1,8 @@ #!/usr/bin/env bash -cat <<. -seth 0.8.4 +cat < License: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. -. +EOF