File tree 2 files changed +24
-0
lines changed 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # ,mkobj -- make an objdir for the NetBSD build system
4
+ #
5
+ # usage: ,mkobj [dir]
6
+ # Defaulting to dir to "obj". Mark the directory as not to be backed up.
7
+ #
8
+ obj=${1:- obj}
9
+ mkdir ${obj}
10
+
11
+ # Mark $obj as not to be backed up.
12
+ case $( uname -s) in
13
+ NetBSD)
14
+ chflags -d nodump ${obj}
15
+ ;;
16
+ Darwin)
17
+ tmutil addexclusion ${obj}
18
+ ;;
19
+ # XXX handle Linux
20
+ esac
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ command line options to simplify often used QEMU incantations.
29
29
30
30
Run it with the ` -h ` or ` --help ` options to print the usage message.
31
31
32
+ ### ,mkobj
33
+ Create a NetBSD build system OBJDIR (default "obj") and mark it as not to be
34
+ backuped.
35
+
32
36
### ,yymmdd
33
37
Outputs the current date in YYMMDD format -- shorter and
34
38
faster to type than ` date +%y%m%d ` .
You can’t perform that action at this time.
0 commit comments