bison-patches
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]