From f8d1e985972b6d788fc8d5b7da7b95fa993d5c1f Mon Sep 17 00:00:00 2001 From: Vincent Danjean <Vincent.Danjean@ens-lyon.org> Date: Fri, 13 Dec 2013 23:08:19 +0100 Subject: [PATCH] New release * update MANIFEST * fix make-release --- MANIFEST | 3 +++ make-release | 9 +++++++-- progs/altree | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/MANIFEST b/MANIFEST index 4114f3b..d7dd542 100644 --- a/MANIFEST +++ b/MANIFEST @@ -30,6 +30,7 @@ CUtils/c_sources/fisher.h CUtils/c_sources/Makefile.PL CUtils/c_sources/mt19937ar.c CUtils/c_sources/mt19937ar.h +CUtils/c_sources/MYMETA.json CUtils/c_sources/myrand.c CUtils/c_sources/myrand.h CUtils/c_sources/resampling.c @@ -47,6 +48,7 @@ CUtils/fallback/const-c.inc CUtils/fallback/const-xs.inc CUtils/lib/ALTree/CUtils.pm CUtils/Makefile.PL +CUtils/MYMETA.json CUtils/ppport.h CUtils/t/ALTree-CUtils.t CUtils/t/double_permutation.t @@ -67,6 +69,7 @@ Documentation/manual.tex Documentation/stage.bib Makefile.PL MANIFEST This list of files +MYMETA.json progs/altree progs/altree-add-S progs/altree-convert diff --git a/make-release b/make-release index 5b33136..a3c674e 100755 --- a/make-release +++ b/make-release @@ -2,8 +2,13 @@ set -e -VERSION=$(cat Makefile.PL | \ - sed -e '/VERSION/s/.*'"'"'\([0-9a-ZA-Z._-]\+\)'"'"'.*/\1/p;d') +VERSION=$(cat progs/altree | \ + sed -e '/our.*VERSION/s/.*qv(\([0-9.]\+\)).*/\1/p;d') + +if [ "$VERSION" = "" ]; then + echo "Unable to read current version. Aborting." + exit 1 +fi FORCE="" diff --git a/progs/altree b/progs/altree index e105330..c4d8c05 100755 --- a/progs/altree +++ b/progs/altree @@ -10,7 +10,7 @@ use Data::Dumper; srand(654321); -use version; our $VERSION = qv(1.3.0); +use version; our $VERSION = qv(1.3.1); # Positionner la variable PERL5LIB si besoin -- GitLab