[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] bench: add a "latest" symlink
From: |
Akim Demaille |
Subject: |
[PATCH 4/6] bench: add a "latest" symlink |
Date: |
Sun, 22 Mar 2020 16:02:09 +0100 |
* etc/bench.pl.in: here.
---
etc/bench.pl.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/etc/bench.pl.in b/etc/bench.pl.in
index d49742f1..023c2b01 100755
--- a/etc/bench.pl.in
+++ b/etc/bench.pl.in
@@ -1228,6 +1228,11 @@ my $count = 1;
my $dir = "benches/$count";
mkdir $dir
or die "cannot create $dir";
+unlink "benches/latest"
+ or die "cannot unlink benches/latest"
+ if -l "benches/latest";
+symlink $count, "benches/latest"
+ or die "cannot create symlink";
chdir $dir
or die "cannot chdir $dir";
--
2.25.1
- [PATCH 0/6] Bench: improvements, Akim Demaille, 2020/03/22
- [PATCH 1/6] bench: create a README file with benches, Akim Demaille, 2020/03/22
- [PATCH 3/6] bench: use the same prefix in both bench methods, Akim Demaille, 2020/03/22
- [PATCH 2/6] bench: use a C++-11 compiler, Akim Demaille, 2020/03/22
- [PATCH 4/6] bench: add a "latest" symlink,
Akim Demaille <=
- [PATCH 6/6] bench: calc: no need for super long inputs, Akim Demaille, 2020/03/22
- [PATCH 5/6] bench: calc: work on a string instead of a file, Akim Demaille, 2020/03/22