about summary refs log tree commit diff
path: root/users/edef/depot-scan/depot-scan.pl
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2020-08-05T01·52+0000
committeredef <edef@edef.eu>2020-08-05T02·05+0000
commit68ab0a0705ec08eea3259e957fbd4db5107ee6a6 (patch)
treeefe34b7632b2dc0223b0da892961b505c9bbcc5b /users/edef/depot-scan/depot-scan.pl
parentfcffacf8c9246c7b83d90164bedb50f488ca5baa (diff)
chore(edef/users/depot-scan): move to a subdir r/1591
Change-Id: If202b466aa0874048e89e0dc270ff14883510131
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1652
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/edef/depot-scan/depot-scan.pl')
-rwxr-xr-xusers/edef/depot-scan/depot-scan.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/edef/depot-scan/depot-scan.pl b/users/edef/depot-scan/depot-scan.pl
new file mode 100755
index 000000000000..8808e2eb0023
--- /dev/null
+++ b/users/edef/depot-scan/depot-scan.pl
@@ -0,0 +1,11 @@
+#! /usr/bin/env -S perl -ln
+use strict;
+
+if (/^evaluating file '(.*)'$/ or
+    /^copied source '(.*)' -> '.*'$/ or
+    /^trace: depot-scan '(.*)'$/) {
+    print $1;
+    next;
+}
+
+print STDERR unless /^instantiated '.*' -> '.*'$/;