Raise WARNS to 6 and fix resulting warnings.
[dragonfly.git] / etc / Makefile.usr
CommitLineData
809ae383
MD
1# Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile
2#
3# Provides simple targets to download and maintain /usr/pkgsrc.
4#
919067aa 5# $DragonFly: src/etc/Makefile.usr,v 1.8 2008/09/03 10:38:55 hasso Exp $
809ae383
MD
6
7all:
8 @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs"
9 @echo " make pkgsrc-checkout"
10 @echo " make pkgsrc-update"
11 @echo ""
aee3a86e
MS
12 @echo "These targets download/update the DragonFly git repository into"
13 @echo "/usr/src."
14 @echo " make git-clone"
15 @echo " make git-update"
809ae383 16 @echo ""
f03b7956
MS
17 @echo "Install or update /usr/pkgsrc/wip using NetBSD.se anoncvs"
18 @echo " make pkgsrc-wip-checkout"
19 @echo " make pkgsrc-wip-update"
20 @echo ""
809ae383
MD
21 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
22 @echo " make release-sys-extract"
23 @echo ""
24 @echo "If automating please restrict updates from the NetBSD anoncvs"
aee3a86e 25 @echo "server to no more than once a week and run gits no more often"
0e87bc32 26 @echo "than daily."
809ae383
MD
27
28pkgsrc-checkout:
29 cd ${.CURDIR}; \
919067aa 30 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc
809ae383
MD
31
32pkgsrc-update:
33 cd ${.CURDIR}; \
34 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
35
f03b7956
MS
36pkgsrc-wip-checkout:
37 cd ${.CURDIR}; \
38 mkdir -p pkgsrc/wip; \
39 cd pkgsrc; \
919067aa 40 cvs -d anoncvs@anoncvs.NetBSD.se:/cvsroot checkout -P wip
f03b7956
MS
41
42pkgsrc-wip-update:
43 cd ${.CURDIR}/pkgsrc; \
44 cvs -d anoncvs@anoncvs.NetBSD.se:/cvsroot update -Pd wip
45
809ae383
MD
46release-sys-extract:
47 bunzip2 < src-sys.tar.bz2 | tar xvpf -
48
aee3a86e
MS
49git-clone:
50 @cd ${.CURDIR}; \
51 if [ -z "`which git`" ]; then \
52 echo "Please install devel/scmgit from pkgsrc"; \
53 exit 1; \
54 fi; \
138f79b2
MS
55 git clone -o crater -n git://crater.dragonflybsd.org/dragonfly.git src; \
56 cd src && git checkout master
809ae383 57
aee3a86e
MS
58git-update:
59 @cd ${.CURDIR}/src; \
60 if [ -z "`which git`" ]; then \
61 echo "Please install devel/scmgit from pkgsrc"; \
62 exit 1; \
63 fi; \
64 git pull crater
809ae383 65