summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-29 17:53:34 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-29 17:53:34 +0800
commit7cd9d8c0160458163e6ab24308168c9b74df0836 (patch)
tree8ffd43f6ca4d2bec17051572280caeaa96ca5b14 /util
parenta2011320f6e1417cb997bb63e2cd7d5b8bfd96c4 (diff)
downloadpttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.tar
pttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.tar.gz
pttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.tar.bz2
pttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.tar.lz
pttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.tar.xz
pttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.tar.zst
pttbbs-7cd9d8c0160458163e6ab24308168c9b74df0836.zip
add installdiskstat
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@747 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/Makefile b/util/Makefile
index 6babd188..5dfe6c19 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.26 2003/03/29 08:01:49 in2 Exp $
+# $Id: Makefile,v 1.27 2003/03/29 09:53:34 in2 Exp $
BBSHOME?=$(HOME)
OSTYPE!=uname
@@ -169,6 +169,11 @@ shmctl: shmctl.c $(OBJS)
diskstat: diskstat.c
$(CC) $(CFLAGS) -o diskstat diskstat.c -ldevstat -lkvm
+installdiskstat: diskstat
+ cp -f diskstat /usr/local/bin/
+ chgrp kmem /usr/local/bin/diskstat
+ chmod 2755 /usr/local/bin/diskstat
+
install: $(PROGS)
install -d $(BBSHOME)/bin/
install -c -m 755 $(PROGS) $(BBSHOME)/bin/