Hi,

Can we install the btrace scripts to /usr/share/btrace/ ?  The
directory already exists, only the Makefile is not linked to the
build.

And I would like to use #! to make them executable.

ok?

bluhm

Index: share/Makefile
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/share/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- share/Makefile      9 Oct 2014 03:46:15 -0000       1.18
+++ share/Makefile      30 Apr 2022 19:22:32 -0000
@@ -1,5 +1,5 @@
 #      $OpenBSD: Makefile,v 1.18 2014/10/09 03:46:15 tedu Exp $
 
-SUBDIR=        dict locale man misc mk snmp tabset termtypes zoneinfo
+SUBDIR=        btrace dict locale man misc mk snmp tabset termtypes zoneinfo
 
 .include <bsd.subdir.mk>
Index: share/btrace/Makefile
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/share/btrace/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- share/btrace/Makefile       23 Oct 2021 19:37:35 -0000      1.1
+++ share/btrace/Makefile       30 Apr 2022 19:18:25 -0000
@@ -4,7 +4,7 @@ FILES=  kprofile.bt runqlat.bt
 NOOBJ= noobj
 
 install:
-       ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
+       ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 555 ${FILES} \
            ${DESTDIR}${BINDIR}/btrace
 
 .include <bsd.prog.mk>
Index: share/btrace/kprofile.bt
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/share/btrace/kprofile.bt,v
retrieving revision 1.1
diff -u -p -r1.1 kprofile.bt
--- share/btrace/kprofile.bt    23 Oct 2021 19:37:35 -0000      1.1
+++ share/btrace/kprofile.bt    30 Apr 2022 19:20:32 -0000
@@ -1,3 +1,6 @@
+#!/usr/sbin/btrace
+/*     $OpenBSD$       */
+
 /*
  * kprofile.bt Kernel profiling (stack sampling) at 100Hz.
  *
Index: share/btrace/runqlat.bt
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/share/btrace/runqlat.bt,v
retrieving revision 1.2
diff -u -p -r1.2 runqlat.bt
--- share/btrace/runqlat.bt     24 Oct 2021 08:42:38 -0000      1.2
+++ share/btrace/runqlat.bt     30 Apr 2022 19:20:38 -0000
@@ -1,3 +1,6 @@
+#!/usr/sbin/btrace
+/*     $OpenBSD$       */
+
 /*
  * runqlat.bt  Measure run queue latency (aka scheduler latency). OpenBSD.
  *

Reply via email to